{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7737","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7737\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7737\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7737\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7737","id":3318670801,"node_id":"PR_kwDODunzps6jf5io","number":7737,"title":"docs: Add column overwrite example to batch mapping guide","user":{"login":"Sanjaykumar030","id":183703408,"node_id":"U_kgDOCvMXcA","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/183703408?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Sanjaykumar030","html_url":"https:\/\/github.com\/Sanjaykumar030","followers_url":"https:\/\/api.github.com\/users\/Sanjaykumar030\/followers","following_url":"https:\/\/api.github.com\/users\/Sanjaykumar030\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Sanjaykumar030\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Sanjaykumar030\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Sanjaykumar030\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Sanjaykumar030\/orgs","repos_url":"https:\/\/api.github.com\/users\/Sanjaykumar030\/repos","events_url":"https:\/\/api.github.com\/users\/Sanjaykumar030\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Sanjaykumar030\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-08-13T14:20:19Z","updated_at":"2025-08-13T14:20:19Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7737","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7737","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7737.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7737.patch","merged_at":null},"body":"This PR adds a complementary example showing the **column-overwriting** pattern, which is both more direct and more flexible for many transformations.\r\n\r\n### Proposed Change\r\n\r\nThe original `remove_columns` example remains untouched. Below it, this PR introduces an alternative approach that overwrites an existing column during batch mapping.\r\n\r\nThis teaches users a core `.map()` capability for in-place transformations without extra intermediate steps.\r\n\r\n**New Example:**\r\n\r\n> ```python\r\n> >>> from datasets import Dataset\r\n> >>> dataset = Dataset.from_dict({\"a\": [0, 1, 2]})\r\n> # Overwrite \"a\" directly to duplicate each value\r\n> >>> duplicated_dataset = dataset.map(\r\n> ... lambda batch: {\"a\": [x for x in batch[\"a\"] for _ in range(2)]},\r\n> ... batched=True\r\n> ... )\r\n> >>> duplicated_dataset\r\n> Dataset({\r\n> features: ['a'],\r\n> num_rows: 6\r\n> })\r\n> >>> duplicated_dataset[\"a\"]\r\n> [0, 0, 1, 1, 2, 2]\r\n> ```\r\n","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7737\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7737\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7736","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7736\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7736\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7736\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7736","id":3311618096,"node_id":"PR_kwDODunzps6jIWQ3","number":7736,"title":"Fix type hint `train_test_split`","user":{"login":"qgallouedec","id":45557362,"node_id":"MDQ6VXNlcjQ1NTU3MzYy","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/45557362?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/qgallouedec","html_url":"https:\/\/github.com\/qgallouedec","followers_url":"https:\/\/api.github.com\/users\/qgallouedec\/followers","following_url":"https:\/\/api.github.com\/users\/qgallouedec\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/qgallouedec\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/qgallouedec\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/qgallouedec\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/qgallouedec\/orgs","repos_url":"https:\/\/api.github.com\/users\/qgallouedec\/repos","events_url":"https:\/\/api.github.com\/users\/qgallouedec\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/qgallouedec\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-08-11T20:46:53Z","updated_at":"2025-08-13T13:13:50Z","closed_at":"2025-08-13T13:13:48Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7736","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7736","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7736.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7736.patch","merged_at":"2025-08-13T13:13:48Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7736\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7736\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7735","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7735\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7735\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7735\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7735","id":3310514828,"node_id":"PR_kwDODunzps6jEq5w","number":7735,"title":"fix largelist repr","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-08-11T15:17:42Z","updated_at":"2025-08-11T15:39:56Z","closed_at":"2025-08-11T15:39:54Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7735","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7735","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7735.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7735.patch","merged_at":"2025-08-11T15:39:54Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7735\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7735\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7734","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7734\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7734\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7734\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7734","id":3306519239,"node_id":"PR_kwDODunzps6i4pmA","number":7734,"title":"Fixing __getitem__ of datasets which behaves inconsistent to documentation when setting _format_type to None","user":{"login":"awagen","id":40367113,"node_id":"MDQ6VXNlcjQwMzY3MTEz","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/40367113?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/awagen","html_url":"https:\/\/github.com\/awagen","followers_url":"https:\/\/api.github.com\/users\/awagen\/followers","following_url":"https:\/\/api.github.com\/users\/awagen\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/awagen\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/awagen\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/awagen\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/awagen\/orgs","repos_url":"https:\/\/api.github.com\/users\/awagen\/repos","events_url":"https:\/\/api.github.com\/users\/awagen\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/awagen\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-08-09T15:52:54Z","updated_at":"2025-08-13T13:10:14Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7734","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7734","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7734.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7734.patch","merged_at":null},"body":"Setting _format_type to None, should return plain python object but as of 4.0.0 returns Column. This fails in libs such as sentencetransformers (such as in generation of hard negatives) where plain python is expected.","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7734\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7734\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7733","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7733\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7733\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7733\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7733","id":3304979299,"node_id":"I_kwDODunzps7E_ftj","number":7733,"title":"Dataset Repo Paths to Locally Stored Images Not Being Appended to Image Path","user":{"login":"dennys246","id":27898715,"node_id":"MDQ6VXNlcjI3ODk4NzE1","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/27898715?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/dennys246","html_url":"https:\/\/github.com\/dennys246","followers_url":"https:\/\/api.github.com\/users\/dennys246\/followers","following_url":"https:\/\/api.github.com\/users\/dennys246\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/dennys246\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/dennys246\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/dennys246\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/dennys246\/orgs","repos_url":"https:\/\/api.github.com\/users\/dennys246\/repos","events_url":"https:\/\/api.github.com\/users\/dennys246\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/dennys246\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-08-08T19:10:58Z","updated_at":"2025-08-12T00:54:58Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI\u2019m not sure if this is a bug or a feature and I just don\u2019t fully understand how dataset loading is to work, but it appears there may be a bug with how locally stored Image() are being accessed. I\u2019ve uploaded a new dataset to hugging face (rmdig\/rocky_mountain_snowpack) but I\u2019ve come into a ton of trouble trying to have the images handled properly (at least in the way I\u2019d expect them to be handled). \n\nI find that I cannot use relative paths for loading images remotely from the Hugging Face repo or from a local repository. Any time I do it always simply appends my current working directory to the dataset. As a result to use the datasets library with my dataset I have to change my working directory to the dataset folder or abandon the dataset object structure, which I cannot imagine you intended. As a result I have to use URL\u2019s since an absolute path on my system obviously wouldn\u2019t work for others. The URL works ok, but despite me having it locally downloaded, it appears to be redownloading the dataset every time I train my snowGAN model on it (and often times I\u2019m coming into HTTPS errors for over requesting the data).\n\nOr maybe image relative paths aren't intended to be loaded directly through your datasets library as images and should be kept as strings for the user to handle? If so I feel like you\u2019re missing out on some pretty seamless functionality\n\n### Steps to reproduce the bug\n\n1. Download a local copy of the dataset (rmdig\/rocky_mountain_snowpack) through git or whatever you prefer.\n2. Alter the README.md YAML for file_path (the relative path to each image) to be type Image instead of type string\n\n`\n---\ndataset_info:\n features:\n - name: image\n dtype: Image\n - name: file_path\n dtype: Image\n`\n\n3. Initialize the dataset locally, make sure your working directory is not the dataset directory root \n\n`dataset = datasets.load_dataset(\u2018path\/to\/local\/rocky_mountain_snowpack\/\u2018)`\n \n4. Call to one of the samples and you\u2019ll get an error that the image was not found in current\/working\/directory\/preprocessed\/cores\/image_1.png. Showing that it\u2019s simply looking in the current working directory + relative path\n\n`\n>>> dataset['train'][0]\nTraceback (most recent call last):\n File \"\", line 1, in \n File \"\/Users\/dennyschaedig\/miniconda3\/lib\/python3.12\/site-packages\/datasets\/arrow_dataset.py\", line 2859, in __getitem__\n return self._getitem(key)\n ^^^^^^^^^^^^^^^^^^\n File \"\/Users\/dennyschaedig\/miniconda3\/lib\/python3.12\/site-packages\/datasets\/arrow_dataset.py\", line 2841, in _getitem\n formatted_output = format_table(\n ^^^^^^^^^^^^^\n File \"\/Users\/dennyschaedig\/miniconda3\/lib\/python3.12\/site-packages\/datasets\/formatting\/formatting.py\", line 657, in format_table\n return formatter(pa_table, query_type=query_type)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"\/Users\/dennyschaedig\/miniconda3\/lib\/python3.12\/site-packages\/datasets\/formatting\/formatting.py\", line 410, in __call__\n return self.format_row(pa_table)\n ^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"\/Users\/dennyschaedig\/miniconda3\/lib\/python3.12\/site-packages\/datasets\/formatting\/formatting.py\", line 459, in format_row\n row = self.python_features_decoder.decode_row(row)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"\/Users\/dennyschaedig\/miniconda3\/lib\/python3.12\/site-packages\/datasets\/formatting\/formatting.py\", line 223, in decode_row\n return self.features.decode_example(row, token_per_repo_id=self.token_per_repo_id) if self.features else row\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"\/Users\/dennyschaedig\/miniconda3\/lib\/python3.12\/site-packages\/datasets\/features\/features.py\", line 2093, in decode_example\n column_name: decode_nested_example(feature, value, token_per_repo_id=token_per_repo_id)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"\/Users\/dennyschaedig\/miniconda3\/lib\/python3.12\/site-packages\/datasets\/features\/features.py\", line 1405, in decode_nested_example\n return schema.decode_example(obj, token_per_repo_id=token_per_repo_id) if obj is not None else None\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"\/Users\/dennyschaedig\/miniconda3\/lib\/python3.12\/site-packages\/datasets\/features\/image.py\", line 171, in decode_example\n image = PIL.Image.open(path)\n ^^^^^^^^^^^^^^^^^^^^\n File \"\/Users\/dennyschaedig\/miniconda3\/lib\/python3.12\/site-packages\/PIL\/Image.py\", line 3277, in open\n fp = builtins.open(filename, \"rb\")\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nFileNotFoundError: [Errno 2] No such file or directory: '\/Users\/dennyschaedig\/Datasets\/preprocessed\/cores\/image_1.png'\n`\n\n### Expected behavior\n\nI expect the datasets and Image() to load the locally hosted data using path\/to\/local\/rocky_mountain_snowpack\/ (that I pass in with my datasets.load_dataset() or the you all handle on the backend) call + relative path. \n\nInstead it appears to load from my current working directory + relative path.\n\n### Environment info\n\nTested on\u2026\n\nWindows 11, Ubuntu Linux 22.04 and Mac Sequoia 15.5 Silicone M2\n\ndatasets version 4.0.0\n\nPython 3.12 and 3.13","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7733\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7733\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7732","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7732\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7732\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7732\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7732","id":3304673383,"node_id":"I_kwDODunzps7E-VBn","number":7732,"title":"webdataset: key errors when `field_name` has upper case characters","user":{"login":"YassineYousfi","id":29985433,"node_id":"MDQ6VXNlcjI5OTg1NDMz","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/29985433?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/YassineYousfi","html_url":"https:\/\/github.com\/YassineYousfi","followers_url":"https:\/\/api.github.com\/users\/YassineYousfi\/followers","following_url":"https:\/\/api.github.com\/users\/YassineYousfi\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/YassineYousfi\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/YassineYousfi\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/YassineYousfi\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/YassineYousfi\/orgs","repos_url":"https:\/\/api.github.com\/users\/YassineYousfi\/repos","events_url":"https:\/\/api.github.com\/users\/YassineYousfi\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/YassineYousfi\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-08-08T16:56:42Z","updated_at":"2025-08-08T16:56:42Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nWhen using a webdataset each sample can be a collection of different \"fields\" \nlike this:\n```\nimages17\/image194.left.jpg\nimages17\/image194.right.jpg\nimages17\/image194.json\nimages17\/image12.left.jpg\nimages17\/image12.right.jpg\nimages17\/image12.json\n```\n\nif the field_name contains upper case characters, the HF webdataset integration throws a key error when trying to load the dataset:\ne.g. from a dataset (now updated so that it doesn't throw this error)\n\n```\n---------------------------------------------------------------------------\nKeyError Traceback (most recent call last)\nCell In[1], line 2\n 1 from datasets import load_dataset\n----> 2 ds = load_dataset(\"commaai\/comma2k19\", data_files={'train': ['data-00000.tar.gz']}, num_proc=1)\n\nFile ~\/xx\/.venv\/lib\/python3.11\/site-packages\/datasets\/load.py:1412, in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, verification_mode, keep_in_memory, save_infos, revision, token, streaming, num_proc, storage_options, **config_kwargs)\n 1409 return builder_instance.as_streaming_dataset(split=split)\n 1411 # Download and prepare data\n-> 1412 builder_instance.download_and_prepare(\n 1413 download_config=download_config,\n 1414 download_mode=download_mode,\n 1415 verification_mode=verification_mode,\n 1416 num_proc=num_proc,\n 1417 storage_options=storage_options,\n 1418 )\n 1420 # Build dataset for splits\n 1421 keep_in_memory = (\n 1422 keep_in_memory if keep_in_memory is not None else is_small_dataset(builder_instance.info.dataset_size)\n 1423 )\n\nFile ~\/xx\/.venv\/lib\/python3.11\/site-packages\/datasets\/builder.py:894, in DatasetBuilder.download_and_prepare(self, output_dir, download_config, download_mode, verification_mode, dl_manager, base_path, file_format, max_shard_size, num_proc, storage_options, **download_and_prepare_kwargs)\n 892 if num_proc is not None:\n 893 prepare_split_kwargs[\"num_proc\"] = num_proc\n--> 894 self._download_and_prepare(\n 895 dl_manager=dl_manager,\n 896 verification_mode=verification_mode,\n 897 **prepare_split_kwargs,\n 898 **download_and_prepare_kwargs,\n 899 )\n 900 # Sync info\n 901 self.info.dataset_size = sum(split.num_bytes for split in self.info.splits.values())\n\nFile ~\/xx\/.venv\/lib\/python3.11\/site-packages\/datasets\/builder.py:1609, in GeneratorBasedBuilder._download_and_prepare(self, dl_manager, verification_mode, **prepare_splits_kwargs)\n 1608 def _download_and_prepare(self, dl_manager, verification_mode, **prepare_splits_kwargs):\n-> 1609 super()._download_and_prepare(\n 1610 dl_manager,\n 1611 verification_mode,\n 1612 check_duplicate_keys=verification_mode == VerificationMode.BASIC_CHECKS\n 1613 or verification_mode == VerificationMode.ALL_CHECKS,\n 1614 **prepare_splits_kwargs,\n 1615 )\n\nFile ~\/xx\/.venv\/lib\/python3.11\/site-packages\/datasets\/builder.py:948, in DatasetBuilder._download_and_prepare(self, dl_manager, verification_mode, **prepare_split_kwargs)\n 946 split_dict = SplitDict(dataset_name=self.dataset_name)\n 947 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)\n--> 948 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)\n 950 # Checksums verification\n 951 if verification_mode == VerificationMode.ALL_CHECKS and dl_manager.record_checksums:\n\nFile ~\/xx\/.venv\/lib\/python3.11\/site-packages\/datasets\/packaged_modules\/webdataset\/webdataset.py:81, in WebDataset._split_generators(self, dl_manager)\n 78 if not self.info.features:\n 79 # Get one example to get the feature types\n 80 pipeline = self._get_pipeline_from_tar(tar_paths[0], tar_iterators[0])\n---> 81 first_examples = list(islice(pipeline, self.NUM_EXAMPLES_FOR_FEATURES_INFERENCE))\n 82 if any(example.keys() != first_examples[0].keys() for example in first_examples):\n 83 raise ValueError(\n 84 \"The TAR archives of the dataset should be in WebDataset format, \"\n 85 \"but the files in the archive don't share the same prefix or the same types.\"\n 86 )\n\nFile ~\/xx\/.venv\/lib\/python3.11\/site-packages\/datasets\/packaged_modules\/webdataset\/webdataset.py:55, in WebDataset._get_pipeline_from_tar(cls, tar_path, tar_iterator)\n 53 data_extension = field_name.split(\".\")[-1]\n 54 if data_extension in cls.DECODERS:\n---> 55 current_example[field_name] = cls.DECODERS[data_extension](current_example[field_name])\n 56 if current_example:\n 57 yield current_example\n\nKeyError: 'processed_log_IMU_magnetometer_value.npy'\n```\n\n### Steps to reproduce the bug\n\nunit test was added in: https:\/\/github.com\/huggingface\/datasets\/pull\/7726\nit fails without the fixed proposed in the same PR\n\n### Expected behavior\n\nNot throwing a key error. \n\n\n### Environment info\n\n```\n- `datasets` version: 4.0.0\n- Platform: Linux-6.8.0-51-generic-x86_64-with-glibc2.39\n- Python version: 3.11.4\n- `huggingface_hub` version: 0.33.4\n- PyArrow version: 21.0.0\n- Pandas version: 2.3.1\n- `fsspec` version: 2025.7.0\n```","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7732\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7732\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7731","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7731\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7731\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7731\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7731","id":3303637075,"node_id":"I_kwDODunzps7E6YBT","number":7731,"title":"Add the possibility of a backend for audio decoding","user":{"login":"intexcor","id":142020129,"node_id":"U_kgDOCHcOIQ","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/142020129?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/intexcor","html_url":"https:\/\/github.com\/intexcor","followers_url":"https:\/\/api.github.com\/users\/intexcor\/followers","following_url":"https:\/\/api.github.com\/users\/intexcor\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/intexcor\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/intexcor\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/intexcor\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/intexcor\/orgs","repos_url":"https:\/\/api.github.com\/users\/intexcor\/repos","events_url":"https:\/\/api.github.com\/users\/intexcor\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/intexcor\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-08-08T11:08:56Z","updated_at":"2025-08-08T11:08:56Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nAdd the possibility of a backend for audio decoding. Before version 4.0.0, soundfile was used, and now torchcodec is used, but the problem is that torchcodec requires ffmpeg, which is problematic to install on the same colab. Therefore, I suggest adding a decoder selection when loading the dataset.\n\n### Motivation\n\nI use a service for training models in which ffmpeg cannot be installed.\n\n### Your contribution\n\nI use a service for training models in which ffmpeg cannot be installed.","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7731\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7731\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7730","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7730\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7730\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7730\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7730","id":3301907242,"node_id":"PR_kwDODunzps6iqTZI","number":7730,"title":"Grammar fix: correct \"showed\" to \"shown\" in fingerprint.py","user":{"login":"brchristian","id":2460418,"node_id":"MDQ6VXNlcjI0NjA0MTg=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/2460418?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/brchristian","html_url":"https:\/\/github.com\/brchristian","followers_url":"https:\/\/api.github.com\/users\/brchristian\/followers","following_url":"https:\/\/api.github.com\/users\/brchristian\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/brchristian\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/brchristian\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/brchristian\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/brchristian\/orgs","repos_url":"https:\/\/api.github.com\/users\/brchristian\/repos","events_url":"https:\/\/api.github.com\/users\/brchristian\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/brchristian\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-08-07T21:22:56Z","updated_at":"2025-08-13T18:34:30Z","closed_at":"2025-08-13T13:12:56Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7730","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7730","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7730.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7730.patch","merged_at":"2025-08-13T13:12:56Z"},"body":"This PR corrects a small grammatical issue in the outputs of fingerprint.py:\r\n\r\n```diff\r\n- \"This warning is only showed once. Subsequent hashing failures won't be showed.\"\r\n+ \"This warning is only shown once. Subsequent hashing failures won't be shown.\"\r\n```\r\n","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7730\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7730\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7729","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7729\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7729\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7729\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7729","id":3300672954,"node_id":"I_kwDODunzps7EvEW6","number":7729,"title":"OSError: libcudart.so.11.0: cannot open shared object file: No such file or directory","user":{"login":"SaleemMalik632","id":115183904,"node_id":"U_kgDOBt2RIA","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/115183904?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/SaleemMalik632","html_url":"https:\/\/github.com\/SaleemMalik632","followers_url":"https:\/\/api.github.com\/users\/SaleemMalik632\/followers","following_url":"https:\/\/api.github.com\/users\/SaleemMalik632\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/SaleemMalik632\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/SaleemMalik632\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/SaleemMalik632\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/SaleemMalik632\/orgs","repos_url":"https:\/\/api.github.com\/users\/SaleemMalik632\/repos","events_url":"https:\/\/api.github.com\/users\/SaleemMalik632\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/SaleemMalik632\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-08-07T14:07:23Z","updated_at":"2025-08-07T14:07:23Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"> Hi is there any solution for that eror i try to install this one \npip install torch==1.12.1+cpu torchaudio==0.12.1+cpu -f https:\/\/download.pytorch.org\/whl\/torch_stable.html \nthis is working fine but tell me how to install pytorch version that is fit for gpu ","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7729\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7729\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7728","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7728\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7728\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7728\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7728","id":3298854904,"node_id":"I_kwDODunzps7EoIf4","number":7728,"title":"NonMatchingSplitsSizesError and ExpectedMoreSplitsError","user":{"login":"efsotr","id":104755879,"node_id":"U_kgDOBj5ypw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/104755879?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/efsotr","html_url":"https:\/\/github.com\/efsotr","followers_url":"https:\/\/api.github.com\/users\/efsotr\/followers","following_url":"https:\/\/api.github.com\/users\/efsotr\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/efsotr\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/efsotr\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/efsotr\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/efsotr\/orgs","repos_url":"https:\/\/api.github.com\/users\/efsotr\/repos","events_url":"https:\/\/api.github.com\/users\/efsotr\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/efsotr\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-08-07T04:04:50Z","updated_at":"2025-08-07T07:31:47Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nWhen loading dataset, the info specified by `data_files` did not overwrite the original info.\n\n\n### Steps to reproduce the bug\n\n```python\nfrom datasets import load_dataset\n\ntraindata = load_dataset(\n \"allenai\/c4\",\n \"en\",\n data_files={\"train\": \"en\/c4-train.00000-of-01024.json.gz\", \n \"validation\": \"en\/c4-validation.00000-of-00008.json.gz\"},\n )\n```\n\n\n```log\nNonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=828589180707, num_examples=364868892, shard_lengths=None, dataset_name=None), 'recorded': SplitInfo(name='train', num_bytes=809262831, num_examples=356317, shard_lengths=[223006, 133311], dataset_name='c4')}, {'expected': SplitInfo(name='validation', num_bytes=825767266, num_examples=364608, shard_lengths=None, dataset_name=None), 'recorded': SplitInfo(name='validation', num_bytes=102199431, num_examples=45576, shard_lengths=None, dataset_name='c4')}]\n```\n\n```python\nfrom datasets import load_dataset\n\ntraindata = load_dataset(\n \"allenai\/c4\",\n \"en\",\n data_files={\"train\": \"en\/c4-train.00000-of-01024.json.gz\"},\n split=\"train\"\n )\n```\n\n```log\nExpectedMoreSplitsError: {'validation'}\n```\n\n### Expected behavior\n\nNo error\n\n### Environment info\n\ndatasets 4.0.0","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7728\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7728\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7727","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7727\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7727\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7727\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7727","id":3295718578,"node_id":"I_kwDODunzps7EcKyy","number":7727,"title":"config paths that start with .\/ are not valid as hf:\/\/ accessed repos, but are valid when accessed locally","user":{"login":"doctorpangloss","id":2229300,"node_id":"MDQ6VXNlcjIyMjkzMDA=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/2229300?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/doctorpangloss","html_url":"https:\/\/github.com\/doctorpangloss","followers_url":"https:\/\/api.github.com\/users\/doctorpangloss\/followers","following_url":"https:\/\/api.github.com\/users\/doctorpangloss\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/doctorpangloss\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/doctorpangloss\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/doctorpangloss\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/doctorpangloss\/orgs","repos_url":"https:\/\/api.github.com\/users\/doctorpangloss\/repos","events_url":"https:\/\/api.github.com\/users\/doctorpangloss\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/doctorpangloss\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-08-06T08:21:37Z","updated_at":"2025-08-06T08:21:37Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\n```\n- config_name: some_config\n data_files:\n - split: train\n path:\n - images\/xyz\/*.jpg\n```\nwill correctly download but\n\n```\n- config_name: some_config\n data_files:\n - split: train\n path:\n - .\/images\/xyz\/*.jpg\n```\nwill error with `FileNotFoundError` due to improper url joining. `load_dataset` on the same directory locally works fine.\n\n### Steps to reproduce the bug\n\n1. create a README.md with the front matter of the form\n\n```\n- config_name: some_config\n data_files:\n - split: train\n path:\n - .\/images\/xyz\/*.jpg\n```\n\n2. `touch .\/images\/xyz\/1.jpg`\n3. Observe this directory loads with `load_dataset(\"filesystem_path\", \"some_config\")` correctly.\n4. Observe exceptions when you load this with `load_dataset(\"repoid\/filesystem_path\", \"some_config\")`\n\n### Expected behavior\n\n`.\/` prefix should be interpreted correctly\n\n### Environment info\n\ndatasets 4.0.0\ndatasets 3.4.0\n\nreproduce","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7727\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7727\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7726","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7726\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7726\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7726\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7726","id":3293789832,"node_id":"PR_kwDODunzps6iO_oF","number":7726,"title":"fix(webdataset): don't .lower() field_name","user":{"login":"YassineYousfi","id":29985433,"node_id":"MDQ6VXNlcjI5OTg1NDMz","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/29985433?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/YassineYousfi","html_url":"https:\/\/github.com\/YassineYousfi","followers_url":"https:\/\/api.github.com\/users\/YassineYousfi\/followers","following_url":"https:\/\/api.github.com\/users\/YassineYousfi\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/YassineYousfi\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/YassineYousfi\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/YassineYousfi\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/YassineYousfi\/orgs","repos_url":"https:\/\/api.github.com\/users\/YassineYousfi\/repos","events_url":"https:\/\/api.github.com\/users\/YassineYousfi\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/YassineYousfi\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-08-05T16:57:09Z","updated_at":"2025-08-13T13:12:22Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7726","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7726","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7726.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7726.patch","merged_at":null},"body":"This fixes cases where keys have upper case identifiers","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7726\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7726\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7724","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7724\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7724\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7724\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7724","id":3292315241,"node_id":"I_kwDODunzps7EPL5p","number":7724,"title":"Can not stepinto load_dataset.py?","user":{"login":"micklexqg","id":13776012,"node_id":"MDQ6VXNlcjEzNzc2MDEy","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/13776012?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/micklexqg","html_url":"https:\/\/github.com\/micklexqg","followers_url":"https:\/\/api.github.com\/users\/micklexqg\/followers","following_url":"https:\/\/api.github.com\/users\/micklexqg\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/micklexqg\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/micklexqg\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/micklexqg\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/micklexqg\/orgs","repos_url":"https:\/\/api.github.com\/users\/micklexqg\/repos","events_url":"https:\/\/api.github.com\/users\/micklexqg\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/micklexqg\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-08-05T09:28:51Z","updated_at":"2025-08-05T09:28:51Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"I set a breakpoint in \"load_dataset.py\" and try to debug my data load codes, but it does not stop at any breakpoints, so \"load_dataset.py\" can not be stepped into ?\n\n","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7724\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7724\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7723","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7723\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7723\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7723\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7723","id":3289943261,"node_id":"I_kwDODunzps7EGIzd","number":7723,"title":"Don't remove `trust_remote_code` arg!!!","user":{"login":"autosquid","id":758925,"node_id":"MDQ6VXNlcjc1ODkyNQ==","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/758925?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/autosquid","html_url":"https:\/\/github.com\/autosquid","followers_url":"https:\/\/api.github.com\/users\/autosquid\/followers","following_url":"https:\/\/api.github.com\/users\/autosquid\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/autosquid\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/autosquid\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/autosquid\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/autosquid\/orgs","repos_url":"https:\/\/api.github.com\/users\/autosquid\/repos","events_url":"https:\/\/api.github.com\/users\/autosquid\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/autosquid\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-08-04T15:42:07Z","updated_at":"2025-08-04T15:42:07Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\ndefaulting it to False is nice balance. we need manully setting it to True in certain scenarios!\n\nAdd `trust_remote_code` arg back please!\n\n### Motivation\n\ndefaulting it to False is nice balance. we need manully setting it to True in certain scenarios!\n\n\n### Your contribution\n\ndefaulting it to False is nice balance. we need manully setting it to True in certain scenarios!\n","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7723\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7723\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7722","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7722\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7722\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7722\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7722","id":3289741064,"node_id":"I_kwDODunzps7EFXcI","number":7722,"title":"Out of memory even though using load_dataset(..., streaming=True)","user":{"login":"padmalcom","id":3961950,"node_id":"MDQ6VXNlcjM5NjE5NTA=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/3961950?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/padmalcom","html_url":"https:\/\/github.com\/padmalcom","followers_url":"https:\/\/api.github.com\/users\/padmalcom\/followers","following_url":"https:\/\/api.github.com\/users\/padmalcom\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/padmalcom\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/padmalcom\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/padmalcom\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/padmalcom\/orgs","repos_url":"https:\/\/api.github.com\/users\/padmalcom\/repos","events_url":"https:\/\/api.github.com\/users\/padmalcom\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/padmalcom\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-08-04T14:41:55Z","updated_at":"2025-08-04T14:41:55Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI am iterating over a large dataset that I load using streaming=True to avoid running out of memory. Unfortunately, I am observing that memory usage increases over time and I'm finally running in an oom.\n\n### Steps to reproduce the bug\n\n```\n ds = load_dataset(\"openslr\/librispeech_asr\", split=\"train.clean.360\", streaming=True)\n for i,sample in enumerate(tqdm(ds)):\n target_file = os.path.join(NSFW_TARGET_FOLDER, f'audio{i}.wav')\n try:\n sf.write(target_file, sample['audio']['array'], samplerate=sample['audio']['sampling_rate'])\n except Exception as e:\n print(f\"Could not write audio {i} in ds: {e}\")\n```\n\n\n### Expected behavior\n\nI'd expect to have a small memory footprint and memory being freed after each iteration of the for loop. Instead the memory usage is increasing. I tried to remove the logic to write the sound file and just print the sample but the issue remains the same.\n\n### Environment info\n\nPython 3.12.11\nUbuntu 24\ndatasets 4.0.0 and 3.6.0","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7722\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7722\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7721","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7721\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7721\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7721\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7721","id":3289426104,"node_id":"I_kwDODunzps7EEKi4","number":7721,"title":"Bad split error message when using percentages","user":{"login":"padmalcom","id":3961950,"node_id":"MDQ6VXNlcjM5NjE5NTA=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/3961950?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/padmalcom","html_url":"https:\/\/github.com\/padmalcom","followers_url":"https:\/\/api.github.com\/users\/padmalcom\/followers","following_url":"https:\/\/api.github.com\/users\/padmalcom\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/padmalcom\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/padmalcom\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/padmalcom\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/padmalcom\/orgs","repos_url":"https:\/\/api.github.com\/users\/padmalcom\/repos","events_url":"https:\/\/api.github.com\/users\/padmalcom\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/padmalcom\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-08-04T13:20:25Z","updated_at":"2025-08-14T14:42:24Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nHi, I'm trying to download a dataset. To not load the entire dataset in memory, I split it as described [here](https:\/\/huggingface.co\/docs\/datasets\/v4.0.0\/loading#slice-splits) in 10% steps.\n\nWhen doing so, the library returns this error:\n raise ValueError(f\"Bad split: {split}. Available splits: {list(splits_generators)}\")\nValueError: Bad split: train[0%:10%]. Available splits: ['train']\n\nEdit: Same happens with a split like _train[:90000]_\n### Steps to reproduce the bug\n\n```\n for split in range(10):\n split_str = f\"train[{split*10}%:{(split+1)*10}%]\"\n print(f\"Processing split {split_str}...\")\n ds = load_dataset(\"user\/dataset\", split=split_str, streaming=True)\n```\n\n\n### Expected behavior\n\nI'd expect the library to split my dataset in 10% steps.\n\n### Environment info\n\npython 3.12.11\nubuntu 24\ndataset 4.0.0","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7721\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7721\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7720","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7720\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7720\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7720\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7720","id":3287150513,"node_id":"I_kwDODunzps7D7e-x","number":7720,"title":"Datasets 4.0 map function causing column not found","user":{"login":"Darejkal","id":55143337,"node_id":"MDQ6VXNlcjU1MTQzMzM3","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/55143337?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Darejkal","html_url":"https:\/\/github.com\/Darejkal","followers_url":"https:\/\/api.github.com\/users\/Darejkal\/followers","following_url":"https:\/\/api.github.com\/users\/Darejkal\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Darejkal\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Darejkal\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Darejkal\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Darejkal\/orgs","repos_url":"https:\/\/api.github.com\/users\/Darejkal\/repos","events_url":"https:\/\/api.github.com\/users\/Darejkal\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Darejkal\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2025-08-03T12:52:34Z","updated_at":"2025-08-07T19:23:34Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nColumn returned after mapping is not found in new instance of the dataset.\n\n### Steps to reproduce the bug\n\nCode for reproduction. After running get_total_audio_length, it is errored out due to `data` not having `duration`\n```\ndef compute_duration(x):\n return {\"duration\": len(x[\"audio\"][\"array\"]) \/ x[\"audio\"][\"sampling_rate\"]}\n\n\ndef get_total_audio_length(dataset):\n data = dataset.map(compute_duration, num_proc=NUM_PROC)\n print(data)\n durations=data[\"duration\"]\n total_seconds = sum(durations)\n return total_seconds\n```\n\n### Expected behavior\n\nNew datasets.Dataset instance should have new columns attached.\n\n### Environment info\n\n- `datasets` version: 4.0.0\n- Platform: Linux-5.4.0-124-generic-x86_64-with-glibc2.31\n- Python version: 3.10.13\n- `huggingface_hub` version: 0.33.2\n- PyArrow version: 20.0.0\n- Pandas version: 2.3.0\n- `fsspec` version: 2023.12.2","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7720\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7720\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7719","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7719\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7719\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7719\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7719","id":3285928491,"node_id":"I_kwDODunzps7D20or","number":7719,"title":"Specify dataset columns types in typehint","user":{"login":"Samoed","id":36135455,"node_id":"MDQ6VXNlcjM2MTM1NDU1","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/36135455?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Samoed","html_url":"https:\/\/github.com\/Samoed","followers_url":"https:\/\/api.github.com\/users\/Samoed\/followers","following_url":"https:\/\/api.github.com\/users\/Samoed\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Samoed\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Samoed\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Samoed\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Samoed\/orgs","repos_url":"https:\/\/api.github.com\/users\/Samoed\/repos","events_url":"https:\/\/api.github.com\/users\/Samoed\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Samoed\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-08-02T13:22:31Z","updated_at":"2025-08-02T13:22:31Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nMake dataset optionaly generic to datasets usage with type annotations like it was done in `torch.Dataloader` https:\/\/github.com\/pytorch\/pytorch\/blob\/134179474539648ba7dee1317959529fbd0e7f89\/torch\/utils\/data\/dataloader.py#L131\n\n### Motivation\n\nIn MTEB we're using a lot of datasets objects, but they're a bit poor in typehints. E.g. we can specify this for dataloder\n\n```python\nfrom typing import TypedDict\nfrom torch.utils.data import DataLoader\n\nclass CorpusInput(TypedDict):\n title: list[str]\n body: list[str]\n\n\nclass QueryInput(TypedDict):\n query: list[str]\n instruction: list[str]\n\ndef queries_loader() -> DataLoader[QueryInput]:\n ...\n\ndef corpus_loader() -> DataLoader[CorpusInput]:\n ...\n```\nBut for datasets we can only specify columns in type in comments \n```python\nfrom datasets import Dataset\n\nQueryDataset = Dataset\n\"\"\"Query dataset should have `query` and `instructions` columns as `str` \"\"\"\n```\n\n### Your contribution\n\nI can create draft implementation","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7719\/reactions","total_count":2,"+1":2,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7719\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7718","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7718\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7718\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7718\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7718","id":3284221177,"node_id":"PR_kwDODunzps6hvJ6R","number":7718,"title":"add support for pyarrow string view in features","user":{"login":"onursatici","id":5051569,"node_id":"MDQ6VXNlcjUwNTE1Njk=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/5051569?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/onursatici","html_url":"https:\/\/github.com\/onursatici","followers_url":"https:\/\/api.github.com\/users\/onursatici\/followers","following_url":"https:\/\/api.github.com\/users\/onursatici\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/onursatici\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/onursatici\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/onursatici\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/onursatici\/orgs","repos_url":"https:\/\/api.github.com\/users\/onursatici\/repos","events_url":"https:\/\/api.github.com\/users\/onursatici\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/onursatici\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-08-01T14:58:39Z","updated_at":"2025-08-13T13:09:44Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7718","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7718","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7718.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7718.patch","merged_at":null},"body":null,"closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7718\/reactions","total_count":3,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":3,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7718\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7717","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7717\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7717\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7717\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7717","id":3282855127,"node_id":"I_kwDODunzps7DrGTX","number":7717,"title":"Cached dataset is not used when explicitly passing the cache_dir parameter","user":{"login":"padmalcom","id":3961950,"node_id":"MDQ6VXNlcjM5NjE5NTA=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/3961950?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/padmalcom","html_url":"https:\/\/github.com\/padmalcom","followers_url":"https:\/\/api.github.com\/users\/padmalcom\/followers","following_url":"https:\/\/api.github.com\/users\/padmalcom\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/padmalcom\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/padmalcom\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/padmalcom\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/padmalcom\/orgs","repos_url":"https:\/\/api.github.com\/users\/padmalcom\/repos","events_url":"https:\/\/api.github.com\/users\/padmalcom\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/padmalcom\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-08-01T07:12:41Z","updated_at":"2025-08-05T19:19:36Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nHi, we are pre-downloading a dataset using snapshot_download(). When loading this exact dataset with load_dataset() the cached snapshot is not used. In both calls, I provide the cache_dir parameter.\n\n### Steps to reproduce the bug\n\n```\nfrom datasets import load_dataset, concatenate_datasets\nfrom huggingface_hub import snapshot_download\n \ndef download_ds(name: str):\n snapshot_download(repo_id=name, repo_type=\"dataset\", cache_dir=\"G:\/Datasets\/cache\")\n\ndef prepare_ds():\n audio_ds = load_dataset(\"openslr\/librispeech_asr\", num_proc=4, cache_dir=\"G:\/Datasets\/cache\")\n print(sfw_ds.features)\n\nif __name__ == '__main__':\n download_ds(\"openslr\/librispeech_asr\")\n prepare_ds()\n```\n\n### Expected behavior\n\nI'd expect that the cached version of the dataset is used. Instead, the same dataset is downloaded again to the default cache directory.\n\n### Environment info\n\nWindows 11\ndatasets==4.0.0\nPython 3.12.11","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7717\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7717\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7716","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7716\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7716\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7716\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7716","id":3281204362,"node_id":"PR_kwDODunzps6hk4Mq","number":7716,"title":"typo","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-07-31T17:14:45Z","updated_at":"2025-07-31T17:17:15Z","closed_at":"2025-07-31T17:14:51Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7716","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7716","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7716.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7716.patch","merged_at":"2025-07-31T17:14:51Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7716\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7716\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7715","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7715\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7715\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7715\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7715","id":3281189955,"node_id":"PR_kwDODunzps6hk1CK","number":7715,"title":"Docs: Use Image(mode=\"F\") for PNG\/JPEG depth maps ","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-07-31T17:09:49Z","updated_at":"2025-07-31T17:12:23Z","closed_at":"2025-07-31T17:10:10Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7715","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7715","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7715.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7715.patch","merged_at":"2025-07-31T17:10:10Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7715\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7715\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7714","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7714\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7714\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7714\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7714","id":3281090499,"node_id":"PR_kwDODunzps6hkfHj","number":7714,"title":"fix num_proc=1 ci test","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-07-31T16:36:32Z","updated_at":"2025-07-31T16:39:03Z","closed_at":"2025-07-31T16:38:03Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7714","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7714","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7714.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7714.patch","merged_at":"2025-07-31T16:38:03Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7714\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7714\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7713","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7713\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7713\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7713\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7713","id":3280813699,"node_id":"PR_kwDODunzps6hjik2","number":7713,"title":"Update cli.mdx to refer to the new \"hf\" CLI","user":{"login":"evalstate","id":1936278,"node_id":"MDQ6VXNlcjE5MzYyNzg=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/1936278?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/evalstate","html_url":"https:\/\/github.com\/evalstate","followers_url":"https:\/\/api.github.com\/users\/evalstate\/followers","following_url":"https:\/\/api.github.com\/users\/evalstate\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/evalstate\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/evalstate\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/evalstate\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/evalstate\/orgs","repos_url":"https:\/\/api.github.com\/users\/evalstate\/repos","events_url":"https:\/\/api.github.com\/users\/evalstate\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/evalstate\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-07-31T15:06:11Z","updated_at":"2025-07-31T16:37:56Z","closed_at":"2025-07-31T16:37:55Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7713","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7713","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7713.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7713.patch","merged_at":"2025-07-31T16:37:55Z"},"body":"Update to refer to `hf auth login`","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7713\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7713\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7712","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7712\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7712\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7712\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7712","id":3280706762,"node_id":"PR_kwDODunzps6hjLF5","number":7712,"title":"Retry intermediate commits too","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-07-31T14:33:33Z","updated_at":"2025-07-31T14:37:43Z","closed_at":"2025-07-31T14:36:43Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7712","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7712","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7712.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7712.patch","merged_at":"2025-07-31T14:36:43Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7712\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7712\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7711","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7711\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7711\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7711\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7711","id":3280471353,"node_id":"PR_kwDODunzps6hiXm0","number":7711,"title":"Update dataset_dict push_to_hub","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-07-31T13:25:03Z","updated_at":"2025-07-31T14:18:55Z","closed_at":"2025-07-31T14:18:53Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7711","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7711","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7711.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7711.patch","merged_at":"2025-07-31T14:18:53Z"},"body":"following https:\/\/github.com\/huggingface\/datasets\/pull\/7708","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7711\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7711\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7710","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7710\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7710\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7710\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7710","id":3279878230,"node_id":"PR_kwDODunzps6hgXxW","number":7710,"title":"Concurrent IterableDataset push_to_hub","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-07-31T10:11:31Z","updated_at":"2025-07-31T10:14:00Z","closed_at":"2025-07-31T10:12:52Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7710","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7710","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7710.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7710.patch","merged_at":"2025-07-31T10:12:52Z"},"body":"Same as https:\/\/github.com\/huggingface\/datasets\/pull\/7708 but for `IterableDataset`","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7710\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7710\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7709","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7709\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7709\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7709\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7709","id":3276677990,"node_id":"I_kwDODunzps7DTiNm","number":7709,"title":"Release 4.0.0 breaks usage patterns of with_format","user":{"login":"wittenator","id":9154515,"node_id":"MDQ6VXNlcjkxNTQ1MTU=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/9154515?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/wittenator","html_url":"https:\/\/github.com\/wittenator","followers_url":"https:\/\/api.github.com\/users\/wittenator\/followers","following_url":"https:\/\/api.github.com\/users\/wittenator\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/wittenator\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/wittenator\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/wittenator\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/wittenator\/orgs","repos_url":"https:\/\/api.github.com\/users\/wittenator\/repos","events_url":"https:\/\/api.github.com\/users\/wittenator\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/wittenator\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-07-30T11:34:53Z","updated_at":"2025-08-07T08:27:18Z","closed_at":"2025-08-07T08:27:18Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nPreviously it was possible to access a whole column that was e.g. in numpy format via `with_format` by indexing the column. Now this possibility seems to be gone with the new Column() class. As far as I see, this makes working on a whole column (in-memory) more complex, i.e. normalizing an in-memory dataset for which iterating would be too slow. Is this intended behaviour? I couldn't find much documentation on the intended usage of the new Column class yet.\n\n### Steps to reproduce the bug\n\nSteps to reproduce:\n```\nfrom datasets import load_dataset\ndataset = load_dataset(\"lhoestq\/demo1\")\ndataset = dataset.with_format(\"numpy\")\nprint(dataset[\"star\"].ndim)\n```\n\n### Expected behavior\n\nWorking on whole columns should be possible.\n\n### Environment info\n\n- `datasets` version: 4.0.0\n- Platform: Linux-6.8.0-63-generic-x86_64-with-glibc2.36\n- Python version: 3.12.11\n- `huggingface_hub` version: 0.34.3\n- PyArrow version: 21.0.0\n- Pandas version: 2.3.1\n- `fsspec` version: 2025.3.0","closed_by":{"login":"wittenator","id":9154515,"node_id":"MDQ6VXNlcjkxNTQ1MTU=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/9154515?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/wittenator","html_url":"https:\/\/github.com\/wittenator","followers_url":"https:\/\/api.github.com\/users\/wittenator\/followers","following_url":"https:\/\/api.github.com\/users\/wittenator\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/wittenator\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/wittenator\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/wittenator\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/wittenator\/orgs","repos_url":"https:\/\/api.github.com\/users\/wittenator\/repos","events_url":"https:\/\/api.github.com\/users\/wittenator\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/wittenator\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7709\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7709\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7708","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7708\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7708\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7708\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7708","id":3273614584,"node_id":"PR_kwDODunzps6hLVip","number":7708,"title":"Concurrent push_to_hub","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-07-29T13:14:30Z","updated_at":"2025-07-31T10:00:50Z","closed_at":"2025-07-31T10:00:49Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7708","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7708","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7708.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7708.patch","merged_at":"2025-07-31T10:00:49Z"},"body":"Retry the step that (download + update + upload) the README.md using `create_commit(..., parent_commit=...)` if there was a commit in the meantime. This should enable concurrent `push_to_hub()` since it won't overwrite the README.md metadata anymore.\r\n\r\nNote: we fixed an issue server side to make this work:\r\n\r\n
\r\n\r\nDO NOT MERGE FOR NOW since it seems there is one bug that prevents this logic from working:\r\n\r\nI'm using parent_commit to enable concurrent push_to_hub() in datasets for a retry mechanism, but for some reason I always run into a weird situation.\r\nSometimes create_commit(.., parent_commit=...) returns error 500 but the commit did happen on the Hub side without respecting parent_commit\r\n\r\ne.g. request id\r\n```\r\nhuggingface_hub.errors.HfHubHTTPError: 500 Server Error: Internal Server Error for url: https:\/\/huggingface.co\/api\/datasets\/lhoestq\/tmp\/commit\/main (Request ID: Root=1-6888d8af-2ce517bc60c69cb378b51526;d1b17993-c5d0-4ccd-9926-060c45f9ed61)\r\n```\r\n\r\nfix coming in [internal](https:\/\/github.com\/huggingface-internal\/moon-landing\/pull\/14617)\r\n\r\n<\/details>\r\n\r\nclose https:\/\/github.com\/huggingface\/datasets\/issues\/7600","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7708\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7708\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7707","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7707\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7707\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7707\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7707","id":3271867998,"node_id":"I_kwDODunzps7DBL5e","number":7707,"title":"load_dataset() in 4.0.0 failed when decoding audio","user":{"login":"jiqing-feng","id":107918818,"node_id":"U_kgDOBm614g","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/107918818?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/jiqing-feng","html_url":"https:\/\/github.com\/jiqing-feng","followers_url":"https:\/\/api.github.com\/users\/jiqing-feng\/followers","following_url":"https:\/\/api.github.com\/users\/jiqing-feng\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/jiqing-feng\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/jiqing-feng\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/jiqing-feng\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/jiqing-feng\/orgs","repos_url":"https:\/\/api.github.com\/users\/jiqing-feng\/repos","events_url":"https:\/\/api.github.com\/users\/jiqing-feng\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/jiqing-feng\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2025-07-29T03:25:03Z","updated_at":"2025-08-01T05:15:45Z","closed_at":"2025-08-01T05:15:45Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nCannot decode audio data.\n\n\n\n### Steps to reproduce the bug\n\n```python\nfrom datasets import load_dataset\n\ndataset = load_dataset(\"hf-internal-testing\/librispeech_asr_demo\", \"clean\", split=\"validation\")\nprint(dataset[0][\"audio\"][\"array\"])\n```\n\n1st round run, got\n```\n File \"\/usr\/local\/lib\/python3.12\/dist-packages\/datasets\/features\/audio.py\", line 172, in decode_example\n raise ImportError(\"To support decoding audio data, please install 'torchcodec'.\")\nImportError: To support decoding audio data, please install 'torchcodec'.\n```\n\nAfter `pip install torchcodec` and run, got\n```\n File \"\/usr\/local\/lib\/python3.12\/dist-packages\/torchcodec\/_core\/_metadata.py\", line 16, in \n from torchcodec._core.ops import (\n File \"\/usr\/local\/lib\/python3.12\/dist-packages\/torchcodec\/_core\/ops.py\", line 84, in \n load_torchcodec_shared_libraries()\n File \"\/usr\/local\/lib\/python3.12\/dist-packages\/torchcodec\/_core\/ops.py\", line 69, in load_torchcodec_shared_libraries\n raise RuntimeError(\nRuntimeError: Could not load libtorchcodec. Likely causes:\n 1. FFmpeg is not properly installed in your environment. We support\n versions 4, 5, 6 and 7.\n 2. The PyTorch version (2.8.0a0+5228986c39.nv25.06) is not compatible with\n this version of TorchCodec. Refer to the version compatibility\n table:\n https:\/\/github.com\/pytorch\/torchcodec?tab=readme-ov-file#installing-torchcodec.\n 3. Another runtime dependency; see exceptions below.\n The following exceptions were raised as we tried to load libtorchcodec:\n\n[start of libtorchcodec loading traceback]\nFFmpeg version 7: libavutil.so.59: cannot open shared object file: No such file or directory\nFFmpeg version 6: libavutil.so.58: cannot open shared object file: No such file or directory\nFFmpeg version 5: libavutil.so.57: cannot open shared object file: No such file or directory\nFFmpeg version 4: libavutil.so.56: cannot open shared object file: No such file or directory\n[end of libtorchcodec loading traceback].\n```\n\nAfter `apt update && apt install ffmpeg -y`, got\n```\nTraceback (most recent call last):\n File \"\/workspace\/jiqing\/test_datasets.py\", line 4, in \n print(dataset[0][\"audio\"][\"array\"])\n ~~~~~~~^^^\n File \"\/usr\/local\/lib\/python3.12\/dist-packages\/datasets\/arrow_dataset.py\", line 2859, in __getitem__\n return self._getitem(key)\n ^^^^^^^^^^^^^^^^^^\n File \"\/usr\/local\/lib\/python3.12\/dist-packages\/datasets\/arrow_dataset.py\", line 2841, in _getitem\n formatted_output = format_table(\n ^^^^^^^^^^^^^\n File \"\/usr\/local\/lib\/python3.12\/dist-packages\/datasets\/formatting\/formatting.py\", line 657, in format_table\n return formatter(pa_table, query_type=query_type)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"\/usr\/local\/lib\/python3.12\/dist-packages\/datasets\/formatting\/formatting.py\", line 410, in __call__\n return self.format_row(pa_table)\n ^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"\/usr\/local\/lib\/python3.12\/dist-packages\/datasets\/formatting\/formatting.py\", line 459, in format_row\n row = self.python_features_decoder.decode_row(row)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"\/usr\/local\/lib\/python3.12\/dist-packages\/datasets\/formatting\/formatting.py\", line 223, in decode_row\n return self.features.decode_example(row, token_per_repo_id=self.token_per_repo_id) if self.features else row\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"\/usr\/local\/lib\/python3.12\/dist-packages\/datasets\/features\/features.py\", line 2093, in decode_example\n column_name: decode_nested_example(feature, value, token_per_repo_id=token_per_repo_id)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"\/usr\/local\/lib\/python3.12\/dist-packages\/datasets\/features\/features.py\", line 1405, in decode_nested_example\n return schema.decode_example(obj, token_per_repo_id=token_per_repo_id) if obj is not None else None\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"\/usr\/local\/lib\/python3.12\/dist-packages\/datasets\/features\/audio.py\", line 198, in decode_example\n audio = AudioDecoder(bytes, stream_index=self.stream_index, sample_rate=self.sampling_rate)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"\/usr\/local\/lib\/python3.12\/dist-packages\/torchcodec\/decoders\/_audio_decoder.py\", line 62, in __init__\n self._decoder = create_decoder(source=source, seek_mode=\"approximate\")\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"\/usr\/local\/lib\/python3.12\/dist-packages\/torchcodec\/decoders\/_decoder_utils.py\", line 33, in create_decoder\n return core.create_from_bytes(source, seek_mode)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"\/usr\/local\/lib\/python3.12\/dist-packages\/torchcodec\/_core\/ops.py\", line 144, in create_from_bytes\n return create_from_tensor(buffer, seek_mode)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"\/usr\/local\/lib\/python3.12\/dist-packages\/torch\/_ops.py\", line 756, in __call__\n return self._op(*args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^\nNotImplementedError: Could not run 'torchcodec_ns::create_from_tensor' with arguments from the 'CPU' backend. This could be because the operator doesn't exist for this backend, or was omitted during the selective\/custom build process (if using custom build). If you are a Facebook employee using PyTorch on mobile, please visit https:\/\/fburl.com\/ptmfixes for possible resolutions. 'torchcodec_ns::create_from_tensor' is only available for these backends: [Meta, BackendSelect, Python, FuncTorchDynamicLayerBackMode, Functionalize, Named, Conjugate, Negative, ZeroTensor, ADInplaceOrView, AutogradOther, AutogradCPU, AutogradCUDA, AutogradXLA, AutogradMPS, AutogradXPU, AutogradHPU, AutogradLazy, AutogradMTIA, AutogradMAIA, AutogradMeta, Tracer, AutocastCPU, AutocastMTIA, AutocastMAIA, AutocastXPU, AutocastMPS, AutocastCUDA, FuncTorchBatched, BatchedNestedTensor, FuncTorchVmapMode, Batched, VmapMode, FuncTorchGradWrapper, PythonTLSSnapshot, FuncTorchDynamicLayerFrontMode, PreDispatch, PythonDispatcher].\n\nMeta: registered at \/dev\/null:214 [kernel]\nBackendSelect: fallthrough registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/core\/BackendSelectFallbackKernel.cpp:3 [backend fallback]\nPython: registered at \/__w\/torchcodec\/torchcodec\/pytorch\/torchcodec\/src\/torchcodec\/_core\/custom_ops.cpp:694 [kernel]\nFuncTorchDynamicLayerBackMode: registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/functorch\/DynamicLayer.cpp:479 [backend fallback]\nFunctionalize: registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/FunctionalizeFallbackKernel.cpp:349 [backend fallback]\nNamed: registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/core\/NamedRegistrations.cpp:7 [backend fallback]\nConjugate: registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/ConjugateFallback.cpp:17 [backend fallback]\nNegative: registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/native\/NegateFallback.cpp:18 [backend fallback]\nZeroTensor: registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/ZeroTensorFallback.cpp:86 [backend fallback]\nADInplaceOrView: fallthrough registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/core\/VariableFallbackKernel.cpp:104 [backend fallback]\nAutogradOther: registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/core\/VariableFallbackKernel.cpp:63 [backend fallback]\nAutogradCPU: registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/core\/VariableFallbackKernel.cpp:67 [backend fallback]\nAutogradCUDA: registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/core\/VariableFallbackKernel.cpp:75 [backend fallback]\nAutogradXLA: registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/core\/VariableFallbackKernel.cpp:87 [backend fallback]\nAutogradMPS: registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/core\/VariableFallbackKernel.cpp:95 [backend fallback]\nAutogradXPU: registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/core\/VariableFallbackKernel.cpp:71 [backend fallback]\nAutogradHPU: registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/core\/VariableFallbackKernel.cpp:108 [backend fallback]\nAutogradLazy: registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/core\/VariableFallbackKernel.cpp:91 [backend fallback]\nAutogradMTIA: registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/core\/VariableFallbackKernel.cpp:79 [backend fallback]\nAutogradMAIA: registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/core\/VariableFallbackKernel.cpp:83 [backend fallback]\nAutogradMeta: registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/core\/VariableFallbackKernel.cpp:99 [backend fallback]\nTracer: registered at \/opt\/pytorch\/pytorch\/torch\/csrc\/autograd\/TraceTypeManual.cpp:294 [backend fallback]\nAutocastCPU: fallthrough registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/autocast_mode.cpp:322 [backend fallback]\nAutocastMTIA: fallthrough registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/autocast_mode.cpp:466 [backend fallback]\nAutocastMAIA: fallthrough registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/autocast_mode.cpp:504 [backend fallback]\nAutocastXPU: fallthrough registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/autocast_mode.cpp:542 [backend fallback]\nAutocastMPS: fallthrough registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/autocast_mode.cpp:209 [backend fallback]\nAutocastCUDA: fallthrough registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/autocast_mode.cpp:165 [backend fallback]\nFuncTorchBatched: registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/functorch\/LegacyBatchingRegistrations.cpp:731 [backend fallback]\nBatchedNestedTensor: registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/functorch\/LegacyBatchingRegistrations.cpp:758 [backend fallback]\nFuncTorchVmapMode: fallthrough registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/functorch\/VmapModeRegistrations.cpp:27 [backend fallback]\nBatched: registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/LegacyBatchingRegistrations.cpp:1075 [backend fallback]\nVmapMode: fallthrough registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/VmapModeRegistrations.cpp:33 [backend fallback]\nFuncTorchGradWrapper: registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/functorch\/TensorWrapper.cpp:208 [backend fallback]\nPythonTLSSnapshot: registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/core\/PythonFallbackKernel.cpp:202 [backend fallback]\nFuncTorchDynamicLayerFrontMode: registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/functorch\/DynamicLayer.cpp:475 [backend fallback]\nPreDispatch: registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/core\/PythonFallbackKernel.cpp:206 [backend fallback]\nPythonDispatcher: registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/core\/PythonFallbackKernel.cpp:198 [backend fallback]\n```\n\n### Expected behavior\n\nThe result is \n```\n[0.00238037 0.0020752 0.00198364 ... 0.00042725 0.00057983 0.0010376 ]\n```\non `datasets==3.6.0`\n\n### Environment info\n\n[NV official docker image](https:\/\/catalog.ngc.nvidia.com\/orgs\/nvidia\/containers\/pytorch): `nvcr.io\/nvidia\/pytorch:25.06-py3` \n\n```\n- `datasets` version: 4.0.0\n- Platform: Linux-5.4.292-1.el8.elrepo.x86_64-x86_64-with-glibc2.39\n- Python version: 3.12.3\n- `huggingface_hub` version: 0.34.2\n- PyArrow version: 19.0.1\n- Pandas version: 2.2.3\n- `fsspec` version: 2025.3.0\n```","closed_by":{"login":"jiqing-feng","id":107918818,"node_id":"U_kgDOBm614g","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/107918818?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/jiqing-feng","html_url":"https:\/\/github.com\/jiqing-feng","followers_url":"https:\/\/api.github.com\/users\/jiqing-feng\/followers","following_url":"https:\/\/api.github.com\/users\/jiqing-feng\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/jiqing-feng\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/jiqing-feng\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/jiqing-feng\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/jiqing-feng\/orgs","repos_url":"https:\/\/api.github.com\/users\/jiqing-feng\/repos","events_url":"https:\/\/api.github.com\/users\/jiqing-feng\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/jiqing-feng\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7707\/reactions","total_count":1,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7707\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7706","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7706\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7706\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7706\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7706","id":3271129240,"node_id":"PR_kwDODunzps6hC5uD","number":7706,"title":"Reimplemented partial split download support (revival of #6832)","user":{"login":"ArjunJagdale","id":142811259,"node_id":"U_kgDOCIMgew","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/142811259?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ArjunJagdale","html_url":"https:\/\/github.com\/ArjunJagdale","followers_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/followers","following_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/orgs","repos_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/repos","events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-07-28T19:40:40Z","updated_at":"2025-07-29T09:25:12Z","closed_at":null,"author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7706","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7706","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7706.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7706.patch","merged_at":null},"body":"(revival of #6832)\r\n\r\nhttps:\/\/github.com\/huggingface\/datasets\/pull\/7648#issuecomment-3084050130\r\n\r\nClose https:\/\/github.com\/huggingface\/datasets\/issues\/4101, and more\r\n\r\n---\r\n### PR under work!!!!\r\n","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7706\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7706\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7705","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7705\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7705\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7705\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7705","id":3269070499,"node_id":"I_kwDODunzps7C2g6j","number":7705,"title":"Can Not read installed dataset in dataset.load(.)","user":{"login":"HuangChiEn","id":52521165,"node_id":"MDQ6VXNlcjUyNTIxMTY1","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/52521165?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/HuangChiEn","html_url":"https:\/\/github.com\/HuangChiEn","followers_url":"https:\/\/api.github.com\/users\/HuangChiEn\/followers","following_url":"https:\/\/api.github.com\/users\/HuangChiEn\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/HuangChiEn\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/HuangChiEn\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/HuangChiEn\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/HuangChiEn\/orgs","repos_url":"https:\/\/api.github.com\/users\/HuangChiEn\/repos","events_url":"https:\/\/api.github.com\/users\/HuangChiEn\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/HuangChiEn\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2025-07-28T09:43:54Z","updated_at":"2025-08-05T01:24:32Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"Hi, folks, I'm newbie in huggingface dataset api.\nAs title, i'm facing the issue that the dataset.load api can not connect to the installed dataset.\n\ncode snippet :\n\"Image\"\n\ndata path : \n\"\/xxx\/joseph\/llava_ds\/vlm_ds\"\nit contains all video clips i want!\n\"Image\"\n\ni run the py script by \n\"Image\"\n\nBut bad happended, even i provide dataset path by \"HF_HUB_CACHE\", it still attempt to download data from remote side : \n\n\"Image\"\n\nAny suggestion will be appreciated!!","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7705\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7705\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7704","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7704\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7704\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7704\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7704","id":3265730177,"node_id":"PR_kwDODunzps6gwtb8","number":7704,"title":"Fix map() example in datasets documentation: define tokenizer before use","user":{"login":"Sanjaykumar030","id":183703408,"node_id":"U_kgDOCvMXcA","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/183703408?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Sanjaykumar030","html_url":"https:\/\/github.com\/Sanjaykumar030","followers_url":"https:\/\/api.github.com\/users\/Sanjaykumar030\/followers","following_url":"https:\/\/api.github.com\/users\/Sanjaykumar030\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Sanjaykumar030\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Sanjaykumar030\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Sanjaykumar030\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Sanjaykumar030\/orgs","repos_url":"https:\/\/api.github.com\/users\/Sanjaykumar030\/repos","events_url":"https:\/\/api.github.com\/users\/Sanjaykumar030\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Sanjaykumar030\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-07-26T14:18:17Z","updated_at":"2025-08-13T13:23:18Z","closed_at":"2025-08-13T13:06:37Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7704","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7704","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7704.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7704.patch","merged_at":null},"body":"## Problem\r\nThe current datasets.Dataset.map() example in the documentation demonstrates batched processing using a tokenizer object without defining or importing it. This causes a NameError when users copy and run the example as-is, breaking the expected seamless experience.\r\n\r\n## Correction\r\nThis PR fixes the issue by explicitly importing and initializing the tokenizer using the Transformers library (AutoTokenizer.from_pretrained(\"bert-base-uncased\")), making the example self-contained and runnable without errors.\r\nThis will help new users understand the workflow and apply the method correctly.\r\n\r\nCloses #7703 \r\n\r\n","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7704\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7704\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7703","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7703\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7703\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7703\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7703","id":3265648942,"node_id":"I_kwDODunzps7Cpdku","number":7703,"title":"[Docs] map() example uses undefined `tokenizer` \u2014 causes NameError","user":{"login":"Sanjaykumar030","id":183703408,"node_id":"U_kgDOCvMXcA","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/183703408?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Sanjaykumar030","html_url":"https:\/\/github.com\/Sanjaykumar030","followers_url":"https:\/\/api.github.com\/users\/Sanjaykumar030\/followers","following_url":"https:\/\/api.github.com\/users\/Sanjaykumar030\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Sanjaykumar030\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Sanjaykumar030\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Sanjaykumar030\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Sanjaykumar030\/orgs","repos_url":"https:\/\/api.github.com\/users\/Sanjaykumar030\/repos","events_url":"https:\/\/api.github.com\/users\/Sanjaykumar030\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Sanjaykumar030\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-07-26T13:35:11Z","updated_at":"2025-07-27T09:44:35Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"## Description\n\nThe current documentation example for `datasets.Dataset.map()` demonstrates batched processing but uses a `tokenizer` object without defining or importing it. This causes an error every time it's copied.\n\nHere is the problematic line:\n\n```python\n# process a batch of examples\n>>> ds = ds.map(lambda example: tokenizer(example[\"text\"]), batched=True)\n```\nThis assumes the user has already set up a tokenizer, which contradicts the goal of having self-contained, copy-paste-friendly examples. \n\n## Problem\nUsers who copy and run the example as-is will encounter:\n\n```python\nNameError: name 'tokenizer' is not defined\n```\n\nThis breaks the flow for users and violates HuggingFace's documentation principle that examples should \"work as expected\" when copied directly. \n\n## Proposal\nUpdate the example to include the required tokenizer setup using the Transformers library, like so:\n\n```python\nfrom transformers import AutoTokenizer\n\ntokenizer = AutoTokenizer.from_pretrained(\"bert-base-uncased\")\nds_tokenized = ds.map(lambda example: tokenizer(example[\"text\"]), batched=True)\n```\nThis will help new users understand the workflow and apply the method correctly.\n\n## Note\nThis PR complements ongoing improvements like #7700, which clarifies multiprocessing in .map(). My change focuses on undefined tokenizer \u2014 causes NameError\n\n\n\n\n","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7703\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7703\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7702","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7702\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7702\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7702\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7702","id":3265328549,"node_id":"PR_kwDODunzps6gvdYC","number":7702,"title":"num_proc=0 behave like None, num_proc=1 uses one worker (not main process) and clarify num_proc documentation","user":{"login":"tanuj-rai","id":84439872,"node_id":"MDQ6VXNlcjg0NDM5ODcy","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/84439872?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/tanuj-rai","html_url":"https:\/\/github.com\/tanuj-rai","followers_url":"https:\/\/api.github.com\/users\/tanuj-rai\/followers","following_url":"https:\/\/api.github.com\/users\/tanuj-rai\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/tanuj-rai\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/tanuj-rai\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/tanuj-rai\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/tanuj-rai\/orgs","repos_url":"https:\/\/api.github.com\/users\/tanuj-rai\/repos","events_url":"https:\/\/api.github.com\/users\/tanuj-rai\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/tanuj-rai\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2025-07-26T08:19:39Z","updated_at":"2025-07-31T14:52:33Z","closed_at":"2025-07-31T14:52:33Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7702","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7702","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7702.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7702.patch","merged_at":"2025-07-31T14:52:33Z"},"body":"Fixes issue #7700\r\n\r\nThis PR makes num_proc=0 behave like None in Dataset.map(), disabling multiprocessing.\r\nIt improves UX by aligning with DataLoader(num_workers=0) behavior.\r\nThe num_proc docstring is also updated to clearly explain valid values and behavior.\r\n\r\n@SunMarc\r\n","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7702\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7702\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7701","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7701\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7701\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7701\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7701","id":3265236296,"node_id":"PR_kwDODunzps6gvJ83","number":7701,"title":"Update fsspec max version to current release 2025.7.0","user":{"login":"rootAvish","id":5445560,"node_id":"MDQ6VXNlcjU0NDU1NjA=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/5445560?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/rootAvish","html_url":"https:\/\/github.com\/rootAvish","followers_url":"https:\/\/api.github.com\/users\/rootAvish\/followers","following_url":"https:\/\/api.github.com\/users\/rootAvish\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/rootAvish\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/rootAvish\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/rootAvish\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/rootAvish\/orgs","repos_url":"https:\/\/api.github.com\/users\/rootAvish\/repos","events_url":"https:\/\/api.github.com\/users\/rootAvish\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/rootAvish\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2025-07-26T06:47:59Z","updated_at":"2025-08-13T17:32:07Z","closed_at":"2025-07-28T11:58:11Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7701","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7701","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7701.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7701.patch","merged_at":"2025-07-28T11:58:11Z"},"body":"Diffusers currently asks for a max fsspec version of `2025.3.0`. This change updates it to the current latest version. This change is mainly required to resolve conflicts with other packages in an environment. In my particular case, `aider-chat` which is a part of my environment installs `2025.5.1` which is incompatible with `datasets`.","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7701\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7701\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7700","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7700\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7700\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7700\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7700","id":3263922255,"node_id":"I_kwDODunzps7Ci4BP","number":7700,"title":"[doc] map.num_proc needs clarification","user":{"login":"sfc-gh-sbekman","id":196988264,"node_id":"U_kgDOC73NaA","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/196988264?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/sfc-gh-sbekman","html_url":"https:\/\/github.com\/sfc-gh-sbekman","followers_url":"https:\/\/api.github.com\/users\/sfc-gh-sbekman\/followers","following_url":"https:\/\/api.github.com\/users\/sfc-gh-sbekman\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/sfc-gh-sbekman\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/sfc-gh-sbekman\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/sfc-gh-sbekman\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/sfc-gh-sbekman\/orgs","repos_url":"https:\/\/api.github.com\/users\/sfc-gh-sbekman\/repos","events_url":"https:\/\/api.github.com\/users\/sfc-gh-sbekman\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/sfc-gh-sbekman\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-07-25T17:35:09Z","updated_at":"2025-07-25T17:39:36Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"https:\/\/huggingface.co\/docs\/datasets\/v4.0.0\/en\/package_reference\/main_classes#datasets.Dataset.map.num_proc\n```\nnum_proc (int, optional, defaults to None) \u2014 Max number of processes when generating cache. Already cached\nshards are loaded sequentially.\n```\n\nfor batch:\n```\nnum_proc (int, optional, defaults to None): The number of processes to use for multiprocessing. If None, no \nmultiprocessing is used. This can significantly speed up batching for large datasets.\n```\n\nSo what happens to `map.num_proc` - is it the same behavior as `batch.num_proc` - so only if `num_proc=None` then no multiprocessing is used?\n\nLet's update the doc to be unambiguous.\n\n**bonus**: we could make all of these behave similarly to `DataLoader.num_workers` - where `num_workers==0` implies no multiprocessing. I think that's the most intuitive, IMHO. 0 workers - the main process has to do all the work. `None` could be the same as `0`.\n\ncontext: debugging a failing `map`\n\nThank you!","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7700\/reactions","total_count":1,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7700\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7699","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7699\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7699\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7699\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7699","id":3261053171,"node_id":"I_kwDODunzps7CX7jz","number":7699,"title":"Broken link in documentation for \"Create a video dataset\"","user":{"login":"cleong110","id":122366389,"node_id":"U_kgDOB0sptQ","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/122366389?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/cleong110","html_url":"https:\/\/github.com\/cleong110","followers_url":"https:\/\/api.github.com\/users\/cleong110\/followers","following_url":"https:\/\/api.github.com\/users\/cleong110\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/cleong110\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/cleong110\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/cleong110\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/cleong110\/orgs","repos_url":"https:\/\/api.github.com\/users\/cleong110\/repos","events_url":"https:\/\/api.github.com\/users\/cleong110\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/cleong110\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-07-24T19:46:28Z","updated_at":"2025-07-25T15:27:47Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"The link to \"the [WebDataset documentation](https:\/\/webdataset.github.io\/webdataset).\" is broken. \nhttps:\/\/huggingface.co\/docs\/datasets\/main\/en\/video_dataset#webdataset \n\n\"Image\"","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7699\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7699\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7698","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7698\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7698\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7698\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7698","id":3255350916,"node_id":"I_kwDODunzps7CCLaE","number":7698,"title":"NotImplementedError when using streaming=True in Google Colab environment","user":{"login":"Aniket17200","id":100470741,"node_id":"U_kgDOBf0P1Q","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/100470741?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Aniket17200","html_url":"https:\/\/github.com\/Aniket17200","followers_url":"https:\/\/api.github.com\/users\/Aniket17200\/followers","following_url":"https:\/\/api.github.com\/users\/Aniket17200\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Aniket17200\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Aniket17200\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Aniket17200\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Aniket17200\/orgs","repos_url":"https:\/\/api.github.com\/users\/Aniket17200\/repos","events_url":"https:\/\/api.github.com\/users\/Aniket17200\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Aniket17200\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-07-23T08:04:53Z","updated_at":"2025-07-23T15:06:23Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nWhen attempting to load a large dataset (like tiiuae\/falcon-refinedweb or allenai\/c4) using streaming=True in a standard Google Colab notebook, the process fails with a NotImplementedError: Loading a streaming dataset cached in a LocalFileSystem is not supported yet. This issue persists even after upgrading datasets and huggingface_hub and restarting the session.\n\n### Steps to reproduce the bug\n\nOpen a new Google Colab notebook.\n\n(Optional but recommended) Run !pip install --upgrade datasets huggingface_hub and restart the runtime.\n\nRun the following code:\n\nPython\n\nfrom datasets import load_dataset\n\ntry:\n print(\"Attempting to load a stream...\")\n streaming_dataset = load_dataset('tiiuae\/falcon-refinedweb', streaming=True)\n print(\"Success!\")\nexcept Exception as e:\n print(e)\n\n### Expected behavior\n\nThe load_dataset command should return a StreamingDataset object without raising an error, allowing iteration over the dataset.\n\nActual Behavior\nThe code fails and prints the following error traceback:\n\n[PASTE THE FULL ERROR TRACEBACK HERE]\n(Note: Copy the entire error message you received, from Traceback... to the final error line, and paste it in this section.)\n\n### Environment info\n\nPlatform: Google Colab\n\ndatasets version: [Run !pip show datasets in Colab and paste the version here]\n\nhuggingface_hub version: [Run !pip show huggingface_hub and paste the version here]\n\nPython version: [Run !python --version and paste the version here]","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7698\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7698\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7697","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7697\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7697\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7697\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7697","id":3254526399,"node_id":"I_kwDODunzps7B_CG_","number":7697,"title":"-","user":{"login":"kakamond","id":44517413,"node_id":"MDQ6VXNlcjQ0NTE3NDEz","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/44517413?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/kakamond","html_url":"https:\/\/github.com\/kakamond","followers_url":"https:\/\/api.github.com\/users\/kakamond\/followers","following_url":"https:\/\/api.github.com\/users\/kakamond\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/kakamond\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/kakamond\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/kakamond\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/kakamond\/orgs","repos_url":"https:\/\/api.github.com\/users\/kakamond\/repos","events_url":"https:\/\/api.github.com\/users\/kakamond\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/kakamond\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-07-23T01:30:32Z","updated_at":"2025-07-25T15:21:39Z","closed_at":"2025-07-25T15:21:39Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"-","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7697\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7697\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7696","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7696\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7696\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7696\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7696","id":3253433350,"node_id":"I_kwDODunzps7B63QG","number":7696,"title":"load_dataset() in 4.0.0 returns different audio samples compared to earlier versions breaking reproducibility","user":{"login":"Manalelaidouni","id":25346345,"node_id":"MDQ6VXNlcjI1MzQ2MzQ1","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/25346345?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Manalelaidouni","html_url":"https:\/\/github.com\/Manalelaidouni","followers_url":"https:\/\/api.github.com\/users\/Manalelaidouni\/followers","following_url":"https:\/\/api.github.com\/users\/Manalelaidouni\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Manalelaidouni\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Manalelaidouni\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Manalelaidouni\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Manalelaidouni\/orgs","repos_url":"https:\/\/api.github.com\/users\/Manalelaidouni\/repos","events_url":"https:\/\/api.github.com\/users\/Manalelaidouni\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Manalelaidouni\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-07-22T17:02:17Z","updated_at":"2025-07-30T14:22:21Z","closed_at":"2025-07-30T14:22:21Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nIn datasets 4.0.0 release, `load_dataset()` returns different audio samples compared to earlier versions, this breaks integration tests that depend on consistent sample data across different environments (first and second envs specified below).\n\n\n\n### Steps to reproduce the bug\n\n```python\nfrom datasets import Audio, load_dataset\n\nds = load_dataset(\"hf-internal-testing\/librispeech_asr_dummy\", \"clean\", split=\"validation\")\nds = ds.cast_column(\"audio\", Audio(24000))\nsample= ds[0][\"audio\"][\"array\"]\nprint(sample)\n\n# sample in 3.6.0 \n[0.00231914 0.00245417 0.00187414 ... 0.00061956 0.00101157 0.00076325]\n\n\n# sample in 4.0.0 \narray([0.00238037, 0.00220794, 0.00198703, ..., 0.00057983, 0.00085863,\n 0.00115309], dtype=float32)\n```\n\n### Expected behavior\n\nThe same dataset should load identical samples across versions to maintain reproducibility.\n\n### Environment info\n\nFirst env:\n- datasets version: 3.6.0\n- Platform: Windows-10-10.0.26100-SP0\n- Python: 3.11.0\n\nSecond env:\n- datasets version: 4.0.0\n- Platform: Linux-6.1.123+-x86_64-with-glibc2.35\n- Python: 3.11.13","closed_by":{"login":"Manalelaidouni","id":25346345,"node_id":"MDQ6VXNlcjI1MzQ2MzQ1","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/25346345?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Manalelaidouni","html_url":"https:\/\/github.com\/Manalelaidouni","followers_url":"https:\/\/api.github.com\/users\/Manalelaidouni\/followers","following_url":"https:\/\/api.github.com\/users\/Manalelaidouni\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Manalelaidouni\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Manalelaidouni\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Manalelaidouni\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Manalelaidouni\/orgs","repos_url":"https:\/\/api.github.com\/users\/Manalelaidouni\/repos","events_url":"https:\/\/api.github.com\/users\/Manalelaidouni\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Manalelaidouni\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7696\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7696\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7695","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7695\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7695\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7695\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7695","id":3251904843,"node_id":"PR_kwDODunzps6gB7jS","number":7695,"title":"Support downloading specific splits in load_dataset","user":{"login":"ArjunJagdale","id":142811259,"node_id":"U_kgDOCIMgew","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/142811259?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ArjunJagdale","html_url":"https:\/\/github.com\/ArjunJagdale","followers_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/followers","following_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/orgs","repos_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/repos","events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2025-07-22T09:33:54Z","updated_at":"2025-07-28T17:33:30Z","closed_at":"2025-07-28T17:15:45Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7695","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7695","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7695.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7695.patch","merged_at":null},"body":"This PR builds on #6832 by @mariosasko.\r\n\r\nMay close - #4101, #2538\r\n\r\nDiscussion - https:\/\/github.com\/huggingface\/datasets\/pull\/7648#issuecomment-3084050130\r\n\r\n---\r\n### Note - This PR is under work and frequent changes will be pushed.","closed_by":{"login":"ArjunJagdale","id":142811259,"node_id":"U_kgDOCIMgew","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/142811259?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ArjunJagdale","html_url":"https:\/\/github.com\/ArjunJagdale","followers_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/followers","following_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/orgs","repos_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/repos","events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7695\/reactions","total_count":1,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":1,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7695\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7694","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7694\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7694\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7694\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7694","id":3247600408,"node_id":"I_kwDODunzps7BknMY","number":7694,"title":"Dataset.to_json consumes excessive memory, appears to not be a streaming operation","user":{"login":"ycq0125","id":49603999,"node_id":"MDQ6VXNlcjQ5NjAzOTk5","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/49603999?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ycq0125","html_url":"https:\/\/github.com\/ycq0125","followers_url":"https:\/\/api.github.com\/users\/ycq0125\/followers","following_url":"https:\/\/api.github.com\/users\/ycq0125\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ycq0125\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ycq0125\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ycq0125\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ycq0125\/orgs","repos_url":"https:\/\/api.github.com\/users\/ycq0125\/repos","events_url":"https:\/\/api.github.com\/users\/ycq0125\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ycq0125\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-07-21T07:51:25Z","updated_at":"2025-07-25T14:42:21Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nWhen exporting a Dataset object to a JSON Lines file using the .to_json(lines=True) method, the process consumes a very large amount of memory. The memory usage is proportional to the size of the entire Dataset object being saved, rather than being a low, constant memory operation.\n\nThis behavior is unexpected, as the JSONL format is line-oriented and ideally suited for streaming writes. This issue can easily lead to Out-of-Memory (OOM) errors when exporting large datasets, especially in memory-constrained environments like Docker containers.\n\n\"Image\"\n\n### Steps to reproduce the bug\n\n```\nimport os\nfrom datasets import load_dataset, Dataset\nfrom loguru import logger\n\n# A public dataset to test with\nREPO_ID = \"adam89\/TinyStoriesChinese\"\nSUBSET = \"default\"\nSPLIT = \"train\"\nNUM_ROWS_TO_LOAD = 10 # Use a reasonably large number to see the memory spike\n\n\ndef run_test():\n \"\"\"Loads data into memory and then saves it, triggering the memory issue.\"\"\"\n logger.info(\"Step 1: Loading data into an in-memory Dataset object...\")\n\n # Create an in-memory Dataset object from a stream\n # This simulates having a processed dataset ready to be saved\n iterable_dataset = load_dataset(REPO_ID, name=SUBSET, split=SPLIT, streaming=True)\n limited_stream = iterable_dataset.take(NUM_ROWS_TO_LOAD)\n in_memory_dataset = Dataset.from_generator(limited_stream.__iter__)\n\n logger.info(f\"Dataset with {len(in_memory_dataset)} rows created in memory.\")\n\n output_path = \".\/test_output.jsonl\"\n logger.info(f\"Step 2: Saving the dataset to {output_path} using .to_json()...\")\n logger.info(\"Please monitor memory usage during this step.\")\n\n # This is the step that causes the massive memory allocation\n in_memory_dataset.to_json(output_path, force_ascii=False)\n\n logger.info(\"Save operation complete.\")\n os.remove(output_path)\n\n\nif __name__ == \"__main__\":\n # To see the memory usage clearly, run this script with a memory profiler:\n # python -m memray run your_script_name.py\n # python -m memray tree xxx.bin\n run_test()\n\n```\n\n### Expected behavior\n\nI would expect the .to_json(lines=True) method to be a memory-efficient, streaming operation. The memory usage should remain low and relatively constant, as data is converted and written to the file line-by-line or in small batches. The memory footprint should not be proportional to the total number of rows in the in_memory_dataset.\n\n### Environment info\n\ndatasets version:3.6.0\nPython version:3.9.18\nos:macOS 15.3.1 (arm64)","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7694\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7694\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7693","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7693\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7693\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7693\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7693","id":3246369678,"node_id":"I_kwDODunzps7Bf6uO","number":7693,"title":"Dataset scripts are no longer supported, but found superb.py","user":{"login":"edwinzajac","id":114297534,"node_id":"U_kgDOBtAKvg","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/114297534?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/edwinzajac","html_url":"https:\/\/github.com\/edwinzajac","followers_url":"https:\/\/api.github.com\/users\/edwinzajac\/followers","following_url":"https:\/\/api.github.com\/users\/edwinzajac\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/edwinzajac\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/edwinzajac\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/edwinzajac\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/edwinzajac\/orgs","repos_url":"https:\/\/api.github.com\/users\/edwinzajac\/repos","events_url":"https:\/\/api.github.com\/users\/edwinzajac\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/edwinzajac\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2025-07-20T13:48:06Z","updated_at":"2025-08-11T10:30:47Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nHello,\n\nI'm trying to follow the [Hugging Face Pipelines tutorial](https:\/\/huggingface.co\/docs\/transformers\/main_classes\/pipelines) but the tutorial seems to work only on old datasets versions.\n\nI then get the error :\n\n```\n--------------------------------------------------------------------------\nRuntimeError Traceback (most recent call last)\nCell In[65], [line 1](vscode-notebook-cell:?execution_count=65&line=1)\n----> [1](vscode-notebook-cell:?execution_count=65&line=1) dataset = datasets.load_dataset(\"superb\", name=\"asr\", split=\"test\")\n 3 # KeyDataset (only *pt*) will simply return the item in the dict returned by the dataset item\n 4 # as we're not interested in the *target* part of the dataset. For sentence pair use KeyPairDataset\n 5 for out in tqdm(pipe(KeyDataset(dataset, \"file\"))):\n\nFile ~\/Desktop\/debug\/llm_course\/.venv\/lib\/python3.11\/site-packages\/datasets\/load.py:1392, in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, verification_mode, keep_in_memory, save_infos, revision, token, streaming, num_proc, storage_options, **config_kwargs)\n 1387 verification_mode = VerificationMode(\n 1388 (verification_mode or VerificationMode.BASIC_CHECKS) if not save_infos else VerificationMode.ALL_CHECKS\n 1389 )\n 1391 # Create a dataset builder\n-> [1392](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/edwin\/Desktop\/debug\/llm_course\/~\/Desktop\/debug\/llm_course\/.venv\/lib\/python3.11\/site-packages\/datasets\/load.py:1392) builder_instance = load_dataset_builder(\n 1393 path=path,\n 1394 name=name,\n 1395 data_dir=data_dir,\n 1396 data_files=data_files,\n 1397 cache_dir=cache_dir,\n 1398 features=features,\n 1399 download_config=download_config,\n 1400 download_mode=download_mode,\n 1401 revision=revision,\n 1402 token=token,\n 1403 storage_options=storage_options,\n 1404 **config_kwargs,\n 1405 )\n 1407 # Return iterable dataset in case of streaming\n 1408 if streaming:\n\nFile ~\/Desktop\/debug\/llm_course\/.venv\/lib\/python3.11\/site-packages\/datasets\/load.py:1132, in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, token, storage_options, **config_kwargs)\n 1130 if features is not None:\n 1131 features = _fix_for_backward_compatible_features(features)\n-> [1132](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/edwin\/Desktop\/debug\/llm_course\/~\/Desktop\/debug\/llm_course\/.venv\/lib\/python3.11\/site-packages\/datasets\/load.py:1132) dataset_module = dataset_module_factory(\n 1133 path,\n 1134 revision=revision,\n 1135 download_config=download_config,\n 1136 download_mode=download_mode,\n 1137 data_dir=data_dir,\n 1138 data_files=data_files,\n 1139 cache_dir=cache_dir,\n 1140 )\n 1141 # Get dataset builder class\n 1142 builder_kwargs = dataset_module.builder_kwargs\n\nFile ~\/Desktop\/debug\/llm_course\/.venv\/lib\/python3.11\/site-packages\/datasets\/load.py:1031, in dataset_module_factory(path, revision, download_config, download_mode, data_dir, data_files, cache_dir, **download_kwargs)\n 1026 if isinstance(e1, FileNotFoundError):\n 1027 raise FileNotFoundError(\n 1028 f\"Couldn't find any data file at {relative_to_absolute_path(path)}. \"\n 1029 f\"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}\"\n 1030 ) from None\n-> [1031](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/edwin\/Desktop\/debug\/llm_course\/~\/Desktop\/debug\/llm_course\/.venv\/lib\/python3.11\/site-packages\/datasets\/load.py:1031) raise e1 from None\n 1032 else:\n 1033 raise FileNotFoundError(f\"Couldn't find any data file at {relative_to_absolute_path(path)}.\")\n\nFile ~\/Desktop\/debug\/llm_course\/.venv\/lib\/python3.11\/site-packages\/datasets\/load.py:989, in dataset_module_factory(path, revision, download_config, download_mode, data_dir, data_files, cache_dir, **download_kwargs)\n 981 try:\n 982 api.hf_hub_download(\n 983 repo_id=path,\n 984 filename=filename,\n (...) 987 proxies=download_config.proxies,\n 988 )\n--> [989](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/edwin\/Desktop\/debug\/llm_course\/~\/Desktop\/debug\/llm_course\/.venv\/lib\/python3.11\/site-packages\/datasets\/load.py:989) raise RuntimeError(f\"Dataset scripts are no longer supported, but found {filename}\")\n 990 except EntryNotFoundError:\n 991 # Use the infos from the parquet export except in some cases:\n 992 if data_dir or data_files or (revision and revision != \"main\"):\n\nRuntimeError: Dataset scripts are no longer supported, but found superb.py\n```\n\nNB : I tried to replace \"superb\" by \"anton-l\/superb_demo\" but I get a 'torchcodec' importing error. Maybe I misunderstood something.\n\n### Steps to reproduce the bug\n\n```\nimport datasets\nfrom transformers import pipeline\nfrom transformers.pipelines.pt_utils import KeyDataset\nfrom tqdm.auto import tqdm\n\npipe = pipeline(\"automatic-speech-recognition\", model=\"facebook\/wav2vec2-base-960h\", device=0)\ndataset = datasets.load_dataset(\"superb\", name=\"asr\", split=\"test\")\n\n# KeyDataset (only *pt*) will simply return the item in the dict returned by the dataset item\n# as we're not interested in the *target* part of the dataset. For sentence pair use KeyPairDataset\nfor out in tqdm(pipe(KeyDataset(dataset, \"file\"))):\n print(out)\n # {\"text\": \"NUMBER TEN FRESH NELLY IS WAITING ON YOU GOOD NIGHT HUSBAND\"}\n # {\"text\": ....}\n # ....\n```\n\n### Expected behavior\n\nGet the tutorial expected results\n\n### Environment info\n\n--- SYSTEM INFO ---\nOperating System: Ubuntu 24.10 \nKernel: Linux 6.11.0-29-generic\nArchitecture: x86-64\n\n--- PYTHON ---\nPython 3.11.13\n\n--- VENV INFO ----\ndatasets=4.0.0\ntransformers=4.53\ntqdm=4.67.1","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7693\/reactions","total_count":2,"+1":2,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7693\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7692","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7692\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7692\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7692\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7692","id":3246268635,"node_id":"I_kwDODunzps7BfiDb","number":7692,"title":"xopen: invalid start byte for streaming dataset with trust_remote_code=True","user":{"login":"sedol1339","id":5188731,"node_id":"MDQ6VXNlcjUxODg3MzE=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/5188731?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/sedol1339","html_url":"https:\/\/github.com\/sedol1339","followers_url":"https:\/\/api.github.com\/users\/sedol1339\/followers","following_url":"https:\/\/api.github.com\/users\/sedol1339\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/sedol1339\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/sedol1339\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/sedol1339\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/sedol1339\/orgs","repos_url":"https:\/\/api.github.com\/users\/sedol1339\/repos","events_url":"https:\/\/api.github.com\/users\/sedol1339\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/sedol1339\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-07-20T11:08:20Z","updated_at":"2025-07-25T14:38:54Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI am trying to load YODAS2 dataset with datasets==3.6.0\n```\nfrom datasets import load_dataset\nnext(iter(load_dataset('espnet\/yodas2', name='ru000', split='train', streaming=True, trust_remote_code=True)))\n```\nAnd get `UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa8 in position 1: invalid start byte`\n\nThe cause of the error is the following:\n\n```\nfrom datasets.utils.file_utils import xopen\n\nfilepath = 'https:\/\/huggingface.co\/datasets\/espnet\/yodas2\/resolve\/c9674490249665d658f527e2684848377108d82c\/data\/ru000\/text\/00000000.json'\nxopen(filepath, 'r').read()\n>>> UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa8 in position 1: invalid start byte\n```\n\nAnd the cause of this is the following:\n\n```\nimport fsspec\n\nfsspec.open(\n 'hf:\/\/datasets\/espnet\/yodas2@c9674490249665d658f527e2684848377108d82c\/data\/ru000\/text\/00000000.json',\n mode='r',\n hf={'token': None, 'endpoint': 'https:\/\/huggingface.co'},\n).open().read()\n>>> UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa8 in position 1: invalid start byte\n```\n\nIs it true that streaming=True loading is not supported anymore for trust_remote_code=True, even with datasets==3.6.0? This breaks backward compatibility.\n\n### Steps to reproduce the bug\n\n```\nfrom datasets import load_dataset\nnext(iter(load_dataset('espnet\/yodas2', name='ru000', split='train', streaming=True)))\n```\n\n### Expected behavior\n\nNo errors expected\n\n### Environment info\n\ndatasets==3.6.0, ubuntu 24.04","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7692\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7692\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7691","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7691\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7691\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7691\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7691","id":3245547170,"node_id":"I_kwDODunzps7Bcx6i","number":7691,"title":"Large WebDataset: pyarrow.lib.ArrowCapacityError on load() even with streaming","user":{"login":"cleong110","id":122366389,"node_id":"U_kgDOB0sptQ","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/122366389?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/cleong110","html_url":"https:\/\/github.com\/cleong110","followers_url":"https:\/\/api.github.com\/users\/cleong110\/followers","following_url":"https:\/\/api.github.com\/users\/cleong110\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/cleong110\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/cleong110\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/cleong110\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/cleong110\/orgs","repos_url":"https:\/\/api.github.com\/users\/cleong110\/repos","events_url":"https:\/\/api.github.com\/users\/cleong110\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/cleong110\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2025-07-19T18:40:27Z","updated_at":"2025-07-25T08:51:10Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI am creating a large WebDataset-format dataset for sign language processing research, and a number of the videos are over 2GB. The instant I hit one of the shards with one of those videos, I get a ArrowCapacityError, even with streaming. \n\n\n\nI made a config for the dataset that specifically includes just one problem shard, and the error triggers the instant you even run load_dataset(), even with streaming=True\n```\nds = load_dataset(\"bible-nlp\/sign-bibles\", \"ase_chronological_bible_translation_in_american_sign_language_119_introductions_and_passages_debugging_problem_shard\", streaming=True, split=\"train\")\n```\n\nThis gives: \n```\nFile \"\/opt\/home\/cleong\/projects\/semantic_and_visual_similarity\/sign-bibles-dataset\/sign_bibles_dataset\/tasks\/test_iteration.py\", line 13, in iterate_keys\n ds = load_dataset(\"bible-nlp\/sign-bibles\", language_subset, streaming=True, split=\"train\")\n File \"\/opt\/home\/cleong\/envs\/sign-bibles-dataset\/lib\/python3.13\/site-packages\/datasets\/load.py\", line 1409, in load_dataset\n return builder_instance.as_streaming_dataset(split=split)\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^\n File \"\/opt\/home\/cleong\/envs\/sign-bibles-dataset\/lib\/python3.13\/site-packages\/datasets\/builder.py\", line 1225, in as_streaming_dataset\n splits_generators = {sg.name: sg for sg in self._split_generators(dl_manager)}\n ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^\n File \"\/opt\/home\/cleong\/envs\/sign-bibles-dataset\/lib\/python3.13\/site-packages\/datasets\/packaged_modules\/webdataset\/webdataset.py\", line 88, in _split_generators\n pa.Table.from_pylist(cast_to_python_objects([example], only_1d_for_numpy=True))\n ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"pyarrow\/table.pxi\", line 2046, in pyarrow.lib._Tabular.from_pylist\n File \"pyarrow\/table.pxi\", line 6431, in pyarrow.lib._from_pylist\n File \"pyarrow\/table.pxi\", line 4893, in pyarrow.lib.Table.from_arrays\n File \"pyarrow\/table.pxi\", line 1607, in pyarrow.lib._sanitize_arrays\n File \"pyarrow\/table.pxi\", line 1588, in pyarrow.lib._schema_from_arrays\n File \"pyarrow\/array.pxi\", line 375, in pyarrow.lib.array\n File \"pyarrow\/array.pxi\", line 45, in pyarrow.lib._sequence_to_array\n File \"pyarrow\/error.pxi\", line 155, in pyarrow.lib.pyarrow_internal_check_status\n File \"pyarrow\/error.pxi\", line 92, in pyarrow.lib.check_status\npyarrow.lib.ArrowCapacityError: array cannot contain more than 2147483646 bytes, have 3980158992\n```\n\n### Steps to reproduce the bug\n\n```python\n#!\/usr\/bin\/env python\n\nimport argparse\nfrom datasets import get_dataset_config_names, load_dataset\nfrom tqdm import tqdm\nfrom pyarrow.lib import ArrowCapacityError, ArrowInvalid\n\n\ndef iterate_keys(language_subset: str) -> None:\n \"\"\"Iterate over all samples in the Sign Bibles dataset and print idx and sample key.\"\"\"\n\n # https:\/\/huggingface.co\/docs\/datasets\/v4.0.0\/en\/package_reference\/loading_methods#datasets.load_dataset\n ds = load_dataset(\"bible-nlp\/sign-bibles\", language_subset, streaming=True, split=\"train\")\n\n print(f\"\\n==> Loaded dataset config '{language_subset}'\")\n\n idx = 0\n estimated_shard_index = 0\n samples_per_shard = 5\n with tqdm(desc=f\"{language_subset} samples\") as pbar:\n iterator = iter(ds)\n while True:\n try:\n if idx % samples_per_shard == 0 and idx > 0: # 5 samples per shard: 0, 1, 2, 3, 4\n print(f\"Estimated Shard idx (starting at 0, {samples_per_shard}\/shard): {estimated_shard_index}\")\n estimated_shard_index += 1\n sample = next(iterator)\n sample_key = sample.get(\"__key__\", \"missing-key\")\n print(f\"[{language_subset}] idx={idx}, key={sample_key}\")\n idx += 1\n\n pbar.update(1)\n\n except StopIteration:\n print(f\"Finished iterating through {idx} samples of {language_subset}\")\n break\n\n except (ArrowCapacityError, ArrowInvalid) as e:\n print(f\"PyArrow error on idx={idx}, config={language_subset}: {e}\")\n idx += 1\n pbar.update(1)\n continue\n\n except KeyError as e:\n print(f\"Missing key error on idx={idx}, config={language_subset}: {e}\")\n idx += 1\n pbar.update(1)\n continue\n\n\ndef main():\n configs = get_dataset_config_names(\"bible-nlp\/sign-bibles\")\n print(f\"Available configs: {configs}\")\n configs = [\n \"ase_chronological_bible_translation_in_american_sign_language_119_introductions_and_passages_debugging_problem_shard\"\n ]\n\n for language_subset in configs:\n print(f\"TESTING CONFIG {language_subset}\")\n iterate_keys(language_subset)\n # try:\n\n # except (ArrowCapacityError, ArrowInvalid) as e:\n # print(f\"PyArrow error at config level for {language_subset}: {e}\")\n # continue\n # except RuntimeError as e:\n # print(f\"RuntimeError at config level for {language_subset}: {e}\")\n # continue\n\n\nif __name__ == \"__main__\":\n parser = argparse.ArgumentParser(description=\"Iterate through Sign Bibles dataset and print sample keys.\")\n args = parser.parse_args()\n\n main()\n```\n\n\n\n### Expected behavior\n\nI expect, when I load with streaming=True, that there should not be any data loaded or anything like that.\nhttps:\/\/huggingface.co\/docs\/datasets\/main\/en\/package_reference\/loading_methods#datasets.load_dataset says that with streaming=true, \n\nI did expect to have some trouble with large files, but that the streaming mode would not actually try to load them unless requested, e.g. with sample[\"mp4\"]\n\n>In the streaming case:\n> Don\u2019t download or cache anything. Instead, the dataset is lazily loaded and will be streamed on-the-fly when iterating on it.\n\n### Environment info\n\nLocal setup: Conda environment on Ubuntu, pip list includes the following\ndatasets 4.0.0\npyarrow 20.0.0\n\nVerified on Colab: https:\/\/colab.research.google.com\/drive\/1HdN8stlROWrLSYXUoNeV0vQ9pClhIVM8?usp=sharing, though there it crashes by using up all available RAM\n","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7691\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7691\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7690","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7690\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7690\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7690\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7690","id":3244380691,"node_id":"PR_kwDODunzps6fozag","number":7690,"title":"HDF5 support","user":{"login":"klamike","id":17013474,"node_id":"MDQ6VXNlcjE3MDEzNDc0","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/17013474?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/klamike","html_url":"https:\/\/github.com\/klamike","followers_url":"https:\/\/api.github.com\/users\/klamike\/followers","following_url":"https:\/\/api.github.com\/users\/klamike\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/klamike\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/klamike\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/klamike\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/klamike\/orgs","repos_url":"https:\/\/api.github.com\/users\/klamike\/repos","events_url":"https:\/\/api.github.com\/users\/klamike\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/klamike\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2025-07-18T21:09:41Z","updated_at":"2025-08-12T19:47:56Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7690","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7690","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7690.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7690.patch","merged_at":null},"body":"This PR adds support for tabular HDF5 file(s) by converting each row to an Arrow table. It supports columns with the usual dtypes including up to 5-dimensional arrays as well as support for complex\/compound types by using `Features(dict)`. All datasets within the HDF5 file should have rows on the first dimension (groups\/subgroups are still allowed). Closes #3113.\r\n\r\nReplaces #7625 which only supports a relatively small subset of HDF5.","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7690\/reactions","total_count":1,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":1,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7690\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7689","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7689\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7689\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7689\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7689","id":3242580301,"node_id":"I_kwDODunzps7BRdlN","number":7689,"title":"BadRequestError for loading dataset?","user":{"login":"WPoelman","id":45011687,"node_id":"MDQ6VXNlcjQ1MDExNjg3","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/45011687?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/WPoelman","html_url":"https:\/\/github.com\/WPoelman","followers_url":"https:\/\/api.github.com\/users\/WPoelman\/followers","following_url":"https:\/\/api.github.com\/users\/WPoelman\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/WPoelman\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/WPoelman\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/WPoelman\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/WPoelman\/orgs","repos_url":"https:\/\/api.github.com\/users\/WPoelman\/repos","events_url":"https:\/\/api.github.com\/users\/WPoelman\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/WPoelman\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":17,"created_at":"2025-07-18T09:30:04Z","updated_at":"2025-07-18T11:59:51Z","closed_at":"2025-07-18T11:52:29Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nUp until a couple days ago I was having no issues loading `Helsinki-NLP\/europarl` and `Helsinki-NLP\/un_pc`, but now suddenly I get the following error:\n\n```\nhuggingface_hub.errors.BadRequestError: (Request ID: ...)\n\nBad request:\n* Invalid input: expected array, received string * at paths * Invalid input: expected boolean, received string * at expand\n\u2716 Invalid input: expected array, received string\n \u2192 at paths\n\u2716 Invalid input: expected boolean, received string\n \u2192 at expand\n```\n\nI tried with both `4.0.0` and `3.5.1` since this dataset uses `trust_remote_code`, but I get the same error with both.\n\nWhat can I do to load the dataset? I checked the documentation and GitHub issues here, but couldn't find a solution.\n\n### Steps to reproduce the bug\n\n```python\nimport datasets\nds = datasets.load_dataset(\"Helsinki-NLP\/europarl\", \"en-fr\", streaming=True, trust_remote_code=True)[\"train\"]\n```\n\n### Expected behavior\n\nThat the dataset loads as it did a couple days ago.\n\n### Environment info\n\n- `datasets` version: 3.5.1\n- Platform: Linux-4.18.0-513.24.1.el8_9.x86_64-x86_64-with-glibc2.28\n- Python version: 3.11.11\n- `huggingface_hub` version: 0.30.2\n- PyArrow version: 20.0.0\n- Pandas version: 2.2.2\n- `fsspec` version: 2024.6.1","closed_by":{"login":"sergiopaniego","id":17179696,"node_id":"MDQ6VXNlcjE3MTc5Njk2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/17179696?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/sergiopaniego","html_url":"https:\/\/github.com\/sergiopaniego","followers_url":"https:\/\/api.github.com\/users\/sergiopaniego\/followers","following_url":"https:\/\/api.github.com\/users\/sergiopaniego\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/sergiopaniego\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/sergiopaniego\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/sergiopaniego\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/sergiopaniego\/orgs","repos_url":"https:\/\/api.github.com\/users\/sergiopaniego\/repos","events_url":"https:\/\/api.github.com\/users\/sergiopaniego\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/sergiopaniego\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7689\/reactions","total_count":23,"+1":23,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7689\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7688","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7688\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7688\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7688\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7688","id":3238851443,"node_id":"I_kwDODunzps7BDPNz","number":7688,"title":"No module named \"distributed\"","user":{"login":"yingtongxiong","id":45058324,"node_id":"MDQ6VXNlcjQ1MDU4MzI0","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/45058324?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/yingtongxiong","html_url":"https:\/\/github.com\/yingtongxiong","followers_url":"https:\/\/api.github.com\/users\/yingtongxiong\/followers","following_url":"https:\/\/api.github.com\/users\/yingtongxiong\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/yingtongxiong\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/yingtongxiong\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/yingtongxiong\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/yingtongxiong\/orgs","repos_url":"https:\/\/api.github.com\/users\/yingtongxiong\/repos","events_url":"https:\/\/api.github.com\/users\/yingtongxiong\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/yingtongxiong\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2025-07-17T09:32:35Z","updated_at":"2025-07-25T15:14:19Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nhello, when I run the command \"from datasets.distributed import split_dataset_by_node\", I always met the bug \"No module named 'datasets.distributed\" in different version like 4.0.0, 2.21.0 and so on. How can I solve this?\n\n### Steps to reproduce the bug\n\n1. pip install datasets\n2. from datasets.distributed import split_dataset_by_node\n\n### Expected behavior\n\nexpecting the command \"from datasets.distributed import split_dataset_by_node\" can be ran successfully\n\n### Environment info\n\npython: 3.12","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7688\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7688\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7687","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7687\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7687\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7687\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7687","id":3238760301,"node_id":"I_kwDODunzps7BC49t","number":7687,"title":"Datasets keeps rebuilding the dataset every time i call the python script","user":{"login":"CALEB789","id":58883113,"node_id":"MDQ6VXNlcjU4ODgzMTEz","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/58883113?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/CALEB789","html_url":"https:\/\/github.com\/CALEB789","followers_url":"https:\/\/api.github.com\/users\/CALEB789\/followers","following_url":"https:\/\/api.github.com\/users\/CALEB789\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/CALEB789\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/CALEB789\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/CALEB789\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/CALEB789\/orgs","repos_url":"https:\/\/api.github.com\/users\/CALEB789\/repos","events_url":"https:\/\/api.github.com\/users\/CALEB789\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/CALEB789\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-07-17T09:03:38Z","updated_at":"2025-07-25T15:21:31Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nEvery time it runs, somehow, samples increase.\nThis can cause a 12mb dataset to have other built versions of 400 mbs+\n\n\"Image\"\n\n### Steps to reproduce the bug\n\n\n`from datasets import load_dataset\ns = load_dataset('~\/.cache\/huggingface\/datasets\/databricks___databricks-dolly-15k')['train']\n`\n1. A dataset needs to be available in the .cache folder\n2. Run the code multiple times, and every time it runs, more versions are created\n\n\n### Expected behavior\n\nThe number of samples increases every time the script runs\n\n### Environment info\n\n- `datasets` version: 3.6.0\n- Platform: Windows-11-10.0.26100-SP0\n- Python version: 3.13.3\n- `huggingface_hub` version: 0.32.3\n- PyArrow version: 20.0.0\n- Pandas version: 2.2.3\n- `fsspec` version: 2025.3.0\n","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7687\/reactions","total_count":2,"+1":2,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7687\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7686","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7686\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7686\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7686\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7686","id":3237201090,"node_id":"I_kwDODunzps7A88TC","number":7686,"title":"load_dataset does not check .no_exist files in the hub cache","user":{"login":"jmaccarl","id":3627235,"node_id":"MDQ6VXNlcjM2MjcyMzU=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/3627235?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/jmaccarl","html_url":"https:\/\/github.com\/jmaccarl","followers_url":"https:\/\/api.github.com\/users\/jmaccarl\/followers","following_url":"https:\/\/api.github.com\/users\/jmaccarl\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/jmaccarl\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/jmaccarl\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/jmaccarl\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/jmaccarl\/orgs","repos_url":"https:\/\/api.github.com\/users\/jmaccarl\/repos","events_url":"https:\/\/api.github.com\/users\/jmaccarl\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/jmaccarl\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-07-16T20:04:00Z","updated_at":"2025-07-16T20:04:00Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI'm not entirely sure if this should be submitted as a bug in the `datasets` library or the `huggingface_hub` library, given it could be fixed at different levels of the stack.\n\nThe fundamental issue is that the `load_datasets` api doesn't use the `.no_exist` files in the hub cache unlike other wrapper APIs that do. This is because the `utils.file_utils.cached_path` used directly calls `hf_hub_download` instead of using `file_download.try_to_load_from_cache` from `huggingface_hub` (see `transformers` library `utils.hub.cached_files` for one alternate example).\n\nThis results in unnecessary metadata HTTP requests occurring for files that don't exist on every call. It won't generate the .no_exist cache files, nor will it use them.\n\n### Steps to reproduce the bug\n\nRun the following snippet as one example (setting cache dirs to clean paths for clarity)\n`env HF_HOME=~\/local_hf_hub python repro.py`\n```\nfrom datasets import load_dataset\n\nimport huggingface_hub\n\n# monkeypatch to print out metadata requests being made\noriginal_get_hf_file_metadata = huggingface_hub.file_download.get_hf_file_metadata\n\ndef get_hf_file_metadata_wrapper(*args, **kwargs):\n print(\"File metadata request made (get_hf_file_metadata):\", args, kwargs)\n return original_get_hf_file_metadata(*args, **kwargs)\n\n# Apply the patch\nhuggingface_hub.file_download.get_hf_file_metadata = get_hf_file_metadata_wrapper\n\ndataset = load_dataset(\n \"Salesforce\/wikitext\",\n \"wikitext-2-v1\",\n split=\"test\",\n trust_remote_code=True,\n cache_dir=\"~\/local_datasets\",\n revision=\"b08601e04326c79dfdd32d625aee71d232d685c3\",\n)\n```\n\nThis may be called over and over again, and you will see the same calls for files that don't exist:\n```\nFile metadata request made (get_hf_file_metadata): () {'url': 'https:\/\/huggingface.co\/datasets\/Salesforce\/wikitext\/resolve\/b08601e04326c79dfdd32d625aee71d232d685c3\/wikitext.py', 'proxies': None, 'timeout': 10, 'headers': {'user-agent': 'datasets\/3.6.0; hf_hub\/0.33.2; python\/3.12.11; torch\/2.7.0; huggingface_hub\/0.33.2; pyarrow\/20.0.0; jax\/0.5.3'}, 'token': None}\nFile metadata request made (get_hf_file_metadata): () {'url': 'https:\/\/huggingface.co\/datasets\/Salesforce\/wikitext\/resolve\/b08601e04326c79dfdd32d625aee71d232d685c3\/.huggingface.yaml', 'proxies': None, 'timeout': 10, 'headers': {'user-agent': 'datasets\/3.6.0; hf_hub\/0.33.2; python\/3.12.11; torch\/2.7.0; huggingface_hub\/0.33.2; pyarrow\/20.0.0; jax\/0.5.3'}, 'token': None}\nFile metadata request made (get_hf_file_metadata): () {'url': 'https:\/\/huggingface.co\/datasets\/Salesforce\/wikitext\/resolve\/b08601e04326c79dfdd32d625aee71d232d685c3\/dataset_infos.json', 'proxies': None, 'timeout': 10, 'headers': {'user-agent': 'datasets\/3.6.0; hf_hub\/0.33.2; python\/3.12.11; torch\/2.7.0; huggingface_hub\/0.33.2; pyarrow\/20.0.0; jax\/0.5.3'}, 'token': None}\n```\n\nAnd you can see that the .no_exist folder is never created\n```\n$ ls ~\/local_hf_hub\/hub\/datasets--Salesforce--wikitext\/\nblobs refs snapshots\n```\n\n\n### Expected behavior\n\nThe expected behavior is for the print \"File metadata request made\" to stop after the first call, and for .no_exist directory & files to be populated under ~\/local_hf_hub\/hub\/datasets--Salesforce--wikitext\/\n\n### Environment info\n\n- `datasets` version: 3.6.0\n- Platform: Linux-6.5.13-65-650-4141-22041-coreweave-amd64-85c45edc-x86_64-with-glibc2.35\n- Python version: 3.12.11\n- `huggingface_hub` version: 0.33.2\n- PyArrow version: 20.0.0\n- Pandas version: 2.3.1\n- `fsspec` version: 2024.9.0","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7686\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7686\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7685","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7685\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7685\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7685\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7685","id":3236979340,"node_id":"I_kwDODunzps7A8GKM","number":7685,"title":"Inconsistent range request behavior for parquet REST api","user":{"login":"universalmind303","id":21327470,"node_id":"MDQ6VXNlcjIxMzI3NDcw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/21327470?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/universalmind303","html_url":"https:\/\/github.com\/universalmind303","followers_url":"https:\/\/api.github.com\/users\/universalmind303\/followers","following_url":"https:\/\/api.github.com\/users\/universalmind303\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/universalmind303\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/universalmind303\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/universalmind303\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/universalmind303\/orgs","repos_url":"https:\/\/api.github.com\/users\/universalmind303\/repos","events_url":"https:\/\/api.github.com\/users\/universalmind303\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/universalmind303\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2025-07-16T18:39:44Z","updated_at":"2025-08-11T08:16:54Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nFirst off, I do apologize if this is not the correct repo for submitting this issue. Please direct me to another one if it's more appropriate elsewhere. \n\nThe datasets rest api is inconsistently giving `416 Range Not Satisfiable` when using a range request to get portions of the parquet files. More often than not, I am seeing 416, but other times for an identical request, it gives me the data along with `206 Partial Content` as expected. \n\n\n\n\n### Steps to reproduce the bug\n\nrepeating this request multiple times will return either 416 or 206. \n```sh\n$ curl -v -L -H \"Range: bytes=217875070-218006142\" -o output.parquet \"https:\/\/huggingface.co\/api\/datasets\/HuggingFaceTB\/smoltalk2\/parquet\/Mid\/Llama_Nemotron_Post_Training_Dataset_reasoning_r1\/0.parquet\"\n```\nNote: this is not limited to just the above file, I tried with many different datasets and am able to consistently reproduce issue across multiple datasets.\n\nwhen the 416 is returned, I get the following headers\n```\n< HTTP\/2 416\n< content-type: text\/html\n< content-length: 49\n< server: CloudFront\n< date: Wed, 16 Jul 2025 14:58:43 GMT\n< expires: Wed, 16 Jul 2025 14:58:43 GMT\n< content-range: bytes *\/177\n< x-cache: Error from cloudfront\n< via: 1.1 873527676a354c5998cad133525df9c0.cloudfront.net (CloudFront)\n<\n```\n\nthis suggests to me that there is likely a CDN\/caching\/routing issue happening and the request is not getting routed properly. \n\n\n\nFull verbose output via curl. \n
\n\n\u276f curl -v -L -H \"Range: bytes=217875070-218006142\" -o output.parquet \"https:\/\/huggingface.co\/api\/datasets\/HuggingFaceTB\/smoltalk2\/parquet\/Mid\/Llama_Nemotron_Post_Training_Dataset_reasoning_r1\/0.parquet\"\n % Total % Received % Xferd Average Speed Time Time Time Current\n Dload Upload Total Spent Left Speed\n 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Host huggingface.co:443 was resolved.\n* IPv6: (none)\n* IPv4: 18.160.102.96, 18.160.102.110, 18.160.102.4, 18.160.102.86\n* Trying 18.160.102.96:443...\n* Connected to huggingface.co (18.160.102.96) port 443\n* ALPN: curl offers h2,http\/1.1\n* (304) (OUT), TLS handshake, Client hello (1):\n} [319 bytes data]\n* CAfile: \/etc\/ssl\/cert.pem\n* CApath: none\n* (304) (IN), TLS handshake, Server hello (2):\n{ [122 bytes data]\n* (304) (IN), TLS handshake, Unknown (8):\n{ [19 bytes data]\n* (304) (IN), TLS handshake, Certificate (11):\n{ [3821 bytes data]\n* (304) (IN), TLS handshake, CERT verify (15):\n{ [264 bytes data]\n* (304) (IN), TLS handshake, Finished (20):\n{ [36 bytes data]\n* (304) (OUT), TLS handshake, Finished (20):\n} [36 bytes data]\n* SSL connection using TLSv1.3 \/ AEAD-AES128-GCM-SHA256 \/ [blank] \/ UNDEF\n* ALPN: server accepted h2\n* Server certificate:\n* subject: CN=huggingface.co\n* start date: Apr 13 00:00:00 2025 GMT\n* expire date: May 12 23:59:59 2026 GMT\n* subjectAltName: host \"huggingface.co\" matched cert's \"huggingface.co\"\n* issuer: C=US; O=Amazon; CN=Amazon RSA 2048 M02\n* SSL certificate verify ok.\n* using HTTP\/2\n* [HTTP\/2] [1] OPENED stream for https:\/\/huggingface.co\/api\/datasets\/HuggingFaceTB\/smoltalk2\/parquet\/Mid\/Llama_Nemotron_Post_Training_Dataset_reasoning_r1\/0.parquet\n* [HTTP\/2] [1] [:method: GET]\n* [HTTP\/2] [1] [:scheme: https]\n* [HTTP\/2] [1] [:authority: huggingface.co]\n* [HTTP\/2] [1] [:path: \/api\/datasets\/HuggingFaceTB\/smoltalk2\/parquet\/Mid\/Llama_Nemotron_Post_Training_Dataset_reasoning_r1\/0.parquet]\n* [HTTP\/2] [1] [user-agent: curl\/8.7.1]\n* [HTTP\/2] [1] [accept: *\/*]\n* [HTTP\/2] [1] [range: bytes=217875070-218006142]\n> GET \/api\/datasets\/HuggingFaceTB\/smoltalk2\/parquet\/Mid\/Llama_Nemotron_Post_Training_Dataset_reasoning_r1\/0.parquet HTTP\/2\n> Host: huggingface.co\n> User-Agent: curl\/8.7.1\n> Accept: *\/*\n> Range: bytes=217875070-218006142\n>\n* Request completely sent off\n< HTTP\/2 416\n< content-type: text\/html\n< content-length: 49\n< server: CloudFront\n< date: Wed, 16 Jul 2025 14:58:41 GMT\n< expires: Wed, 16 Jul 2025 14:58:41 GMT\n< content-range: bytes *\/177\n< x-cache: Error from cloudfront\n< via: 1.1 e2f1bed2f82641d6d5439eac20a790ba.cloudfront.net (CloudFront)\n< x-amz-cf-pop: MSP50-P1\n< x-amz-cf-id: Mo8hn-EZLJqE_hoBday8DdhmVXhV3v9-Wg-EEHI6gX_fNlkanVIUBA==\n<\n{ [49 bytes data]\n100 49 100 49 0 0 2215 0 --:--:-- --:--:-- --:--:-- 2227\n* Connection #0 to host huggingface.co left intact\n\n(.venv) Daft main*\u200b* \u2261\u276f curl -v -L -H \"Range: bytes=217875070-218006142\" -o output.parquet \"https:\/\/huggingface.co\/api\/datasets\/HuggingFaceTB\/smoltalk2\/parquet\/Mid\/Llama_Nemotron_Post_Training_Dataset_reasoning_r1\/0.parquet\"\n % Total % Received % Xferd Average Speed Time Time Time Current\n Dload Upload Total Spent Left Speed\n 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Host huggingface.co:443 was resolved.\n* IPv6: (none)\n* IPv4: 18.160.102.96, 18.160.102.110, 18.160.102.4, 18.160.102.86\n* Trying 18.160.102.96:443...\n* Connected to huggingface.co (18.160.102.96) port 443\n* ALPN: curl offers h2,http\/1.1\n* (304) (OUT), TLS handshake, Client hello (1):\n} [319 bytes data]\n* CAfile: \/etc\/ssl\/cert.pem\n* CApath: none\n* (304) (IN), TLS handshake, Server hello (2):\n{ [122 bytes data]\n* (304) (IN), TLS handshake, Unknown (8):\n{ [19 bytes data]\n* (304) (IN), TLS handshake, Certificate (11):\n{ [3821 bytes data]\n* (304) (IN), TLS handshake, CERT verify (15):\n{ [264 bytes data]\n* (304) (IN), TLS handshake, Finished (20):\n{ [36 bytes data]\n* (304) (OUT), TLS handshake, Finished (20):\n} [36 bytes data]\n* SSL connection using TLSv1.3 \/ AEAD-AES128-GCM-SHA256 \/ [blank] \/ UNDEF\n* ALPN: server accepted h2\n* Server certificate:\n* subject: CN=huggingface.co\n* start date: Apr 13 00:00:00 2025 GMT\n* expire date: May 12 23:59:59 2026 GMT\n* subjectAltName: host \"huggingface.co\" matched cert's \"huggingface.co\"\n* issuer: C=US; O=Amazon; CN=Amazon RSA 2048 M02\n* SSL certificate verify ok.\n* using HTTP\/2\n* [HTTP\/2] [1] OPENED stream for https:\/\/huggingface.co\/api\/datasets\/HuggingFaceTB\/smoltalk2\/parquet\/Mid\/Llama_Nemotron_Post_Training_Dataset_reasoning_r1\/0.parquet\n* [HTTP\/2] [1] [:method: GET]\n* [HTTP\/2] [1] [:scheme: https]\n* [HTTP\/2] [1] [:authority: huggingface.co]\n* [HTTP\/2] [1] [:path: \/api\/datasets\/HuggingFaceTB\/smoltalk2\/parquet\/Mid\/Llama_Nemotron_Post_Training_Dataset_reasoning_r1\/0.parquet]\n* [HTTP\/2] [1] [user-agent: curl\/8.7.1]\n* [HTTP\/2] [1] [accept: *\/*]\n* [HTTP\/2] [1] [range: bytes=217875070-218006142]\n> GET \/api\/datasets\/HuggingFaceTB\/smoltalk2\/parquet\/Mid\/Llama_Nemotron_Post_Training_Dataset_reasoning_r1\/0.parquet HTTP\/2\n> Host: huggingface.co\n> User-Agent: curl\/8.7.1\n> Accept: *\/*\n> Range: bytes=217875070-218006142\n>\n* Request completely sent off\n< HTTP\/2 416\n< content-type: text\/html\n< content-length: 49\n< server: CloudFront\n< date: Wed, 16 Jul 2025 14:58:42 GMT\n< expires: Wed, 16 Jul 2025 14:58:42 GMT\n< content-range: bytes *\/177\n< x-cache: Error from cloudfront\n< via: 1.1 bb352451e1eacf85f8786ee3ecd07eca.cloudfront.net (CloudFront)\n< x-amz-cf-pop: MSP50-P1\n< x-amz-cf-id: 9xy-CX9KvlS8Ye4eFr8jXMDobZHFkvdyvkLJGmK_qiwZQywCCwfq7Q==\n<\n{ [49 bytes data]\n100 49 100 49 0 0 2381 0 --:--:-- --:--:-- --:--:-- 2450\n* Connection #0 to host huggingface.co left intact\n\n(.venv) Daft main*\u200b* \u2261\u276f curl -v -L -H \"Range: bytes=217875070-218006142\" -o output.parquet \"https:\/\/huggingface.co\/api\/datasets\/HuggingFaceTB\/smoltalk2\/parquet\/Mid\/Llama_Nemotron_Post_Training_Dataset_reasoning_r1\/0.parquet\"\n % Total % Received % Xferd Average Speed Time Time Time Current\n Dload Upload Total Spent Left Speed\n 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Host huggingface.co:443 was resolved.\n* IPv6: (none)\n* IPv4: 18.160.102.96, 18.160.102.110, 18.160.102.4, 18.160.102.86\n* Trying 18.160.102.96:443...\n* Connected to huggingface.co (18.160.102.96) port 443\n* ALPN: curl offers h2,http\/1.1\n* (304) (OUT), TLS handshake, Client hello (1):\n} [319 bytes data]\n* CAfile: \/etc\/ssl\/cert.pem\n* CApath: none\n* (304) (IN), TLS handshake, Server hello (2):\n{ [122 bytes data]\n* (304) (IN), TLS handshake, Unknown (8):\n{ [19 bytes data]\n* (304) (IN), TLS handshake, Certificate (11):\n{ [3821 bytes data]\n* (304) (IN), TLS handshake, CERT verify (15):\n{ [264 bytes data]\n* (304) (IN), TLS handshake, Finished (20):\n{ [36 bytes data]\n* (304) (OUT), TLS handshake, Finished (20):\n} [36 bytes data]\n* SSL connection using TLSv1.3 \/ AEAD-AES128-GCM-SHA256 \/ [blank] \/ UNDEF\n* ALPN: server accepted h2\n* Server certificate:\n* subject: CN=huggingface.co\n* start date: Apr 13 00:00:00 2025 GMT\n* expire date: May 12 23:59:59 2026 GMT\n* subjectAltName: host \"huggingface.co\" matched cert's \"huggingface.co\"\n* issuer: C=US; O=Amazon; CN=Amazon RSA 2048 M02\n* SSL certificate verify ok.\n* using HTTP\/2\n* [HTTP\/2] [1] OPENED stream for https:\/\/huggingface.co\/api\/datasets\/HuggingFaceTB\/smoltalk2\/parquet\/Mid\/Llama_Nemotron_Post_Training_Dataset_reasoning_r1\/0.parquet\n* [HTTP\/2] [1] [:method: GET]\n* [HTTP\/2] [1] [:scheme: https]\n* [HTTP\/2] [1] [:authority: huggingface.co]\n* [HTTP\/2] [1] [:path: \/api\/datasets\/HuggingFaceTB\/smoltalk2\/parquet\/Mid\/Llama_Nemotron_Post_Training_Dataset_reasoning_r1\/0.parquet]\n* [HTTP\/2] [1] [user-agent: curl\/8.7.1]\n* [HTTP\/2] [1] [accept: *\/*]\n* [HTTP\/2] [1] [range: bytes=217875070-218006142]\n> GET \/api\/datasets\/HuggingFaceTB\/smoltalk2\/parquet\/Mid\/Llama_Nemotron_Post_Training_Dataset_reasoning_r1\/0.parquet HTTP\/2\n> Host: huggingface.co\n> User-Agent: curl\/8.7.1\n> Accept: *\/*\n> Range: bytes=217875070-218006142\n>\n* Request completely sent off\n< HTTP\/2 416\n< content-type: text\/html\n< content-length: 49\n< server: CloudFront\n< date: Wed, 16 Jul 2025 14:58:43 GMT\n< expires: Wed, 16 Jul 2025 14:58:43 GMT\n< content-range: bytes *\/177\n< x-cache: Error from cloudfront\n< via: 1.1 873527676a354c5998cad133525df9c0.cloudfront.net (CloudFront)\n< x-amz-cf-pop: MSP50-P1\n< x-amz-cf-id: wtBgwY4u4YJ2pD1ovM8UV770UiJoqWfs7i7VzschDyoLv5g7swGGmw==\n<\n{ [49 bytes data]\n100 49 100 49 0 0 2273 0 --:--:-- --:--:-- --:--:-- 2333\n* Connection #0 to host huggingface.co left intact\n\n(.venv) Daft main*\u200b* \u2261\u276f curl -v -L -H \"Range: bytes=217875070-218006142\" -o output.parquet \"https:\/\/huggingface.co\/api\/datasets\/HuggingFaceTB\/smoltalk2\/parquet\/Mid\/Llama_Nemotron_Post_Training_Dataset_reasoning_r1\/0.parquet\"\n % Total % Received % Xferd Average Speed Time Time Time Current\n Dload Upload Total Spent Left Speed\n 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Host huggingface.co:443 was resolved.\n* IPv6: (none)\n* IPv4: 18.160.102.96, 18.160.102.110, 18.160.102.4, 18.160.102.86\n* Trying 18.160.102.96:443...\n* Connected to huggingface.co (18.160.102.96) port 443\n* ALPN: curl offers h2,http\/1.1\n* (304) (OUT), TLS handshake, Client hello (1):\n} [319 bytes data]\n* CAfile: \/etc\/ssl\/cert.pem\n* CApath: none\n* (304) (IN), TLS handshake, Server hello (2):\n{ [122 bytes data]\n* (304) (IN), TLS handshake, Unknown (8):\n{ [19 bytes data]\n* (304) (IN), TLS handshake, Certificate (11):\n{ [3821 bytes data]\n* (304) (IN), TLS handshake, CERT verify (15):\n{ [264 bytes data]\n* (304) (IN), TLS handshake, Finished (20):\n{ [36 bytes data]\n* (304) (OUT), TLS handshake, Finished (20):\n} [36 bytes data]\n* SSL connection using TLSv1.3 \/ AEAD-AES128-GCM-SHA256 \/ [blank] \/ UNDEF\n* ALPN: server accepted h2\n* Server certificate:\n* subject: CN=huggingface.co\n* start date: Apr 13 00:00:00 2025 GMT\n* expire date: May 12 23:59:59 2026 GMT\n* subjectAltName: host \"huggingface.co\" matched cert's \"huggingface.co\"\n* issuer: C=US; O=Amazon; CN=Amazon RSA 2048 M02\n* SSL certificate verify ok.\n* using HTTP\/2\n* [HTTP\/2] [1] OPENED stream for https:\/\/huggingface.co\/api\/datasets\/HuggingFaceTB\/smoltalk2\/parquet\/Mid\/Llama_Nemotron_Post_Training_Dataset_reasoning_r1\/0.parquet\n* [HTTP\/2] [1] [:method: GET]\n* [HTTP\/2] [1] [:scheme: https]\n* [HTTP\/2] [1] [:authority: huggingface.co]\n* [HTTP\/2] [1] [:path: \/api\/datasets\/HuggingFaceTB\/smoltalk2\/parquet\/Mid\/Llama_Nemotron_Post_Training_Dataset_reasoning_r1\/0.parquet]\n* [HTTP\/2] [1] [user-agent: curl\/8.7.1]\n* [HTTP\/2] [1] [accept: *\/*]\n* [HTTP\/2] [1] [range: bytes=217875070-218006142]\n> GET \/api\/datasets\/HuggingFaceTB\/smoltalk2\/parquet\/Mid\/Llama_Nemotron_Post_Training_Dataset_reasoning_r1\/0.parquet HTTP\/2\n> Host: huggingface.co\n> User-Agent: curl\/8.7.1\n> Accept: *\/*\n> Range: bytes=217875070-218006142\n>\n* Request completely sent off\n< HTTP\/2 302\n< content-type: text\/plain; charset=utf-8\n< content-length: 177\n< location: https:\/\/huggingface.co\/datasets\/HuggingFaceTB\/smoltalk2\/resolve\/refs%2Fconvert%2Fparquet\/Mid\/Llama_Nemotron_Post_Training_Dataset_reasoning_r1\/0000.parquet\n< date: Wed, 16 Jul 2025 14:58:44 GMT\n< x-powered-by: huggingface-moon\n< cross-origin-opener-policy: same-origin\n< referrer-policy: strict-origin-when-cross-origin\n< x-request-id: Root=1-6877be24-476860f03849cb1a1570c9d8\n< access-control-allow-origin: https:\/\/huggingface.co\n< access-control-expose-headers: X-Repo-Commit,X-Request-Id,X-Error-Code,X-Error-Message,X-Total-Count,ETag,Link,Accept-Ranges,Content-Range,X-Linked-Size,X-Linked-ETag,X-Xet-Hash\n< set-cookie: token=; Path=\/; Expires=Thu, 01 Jan 1970 00:00:00 GMT; Secure; SameSite=None\n< set-cookie: token=; Domain=huggingface.co; Path=\/; Expires=Thu, 01 Jan 1970 00:00:00 GMT; Secure; SameSite=Lax\n< x-cache: Miss from cloudfront\n< via: 1.1 dd5af138aa8a11d8a70d5ef690ad1a2a.cloudfront.net (CloudFront)\n< x-amz-cf-pop: MSP50-P1\n< x-amz-cf-id: xuSi0X5RpH1OZqQOM8gGQLQLU8eOM6Gbkk-bgIX_qBnTTaa1VNkExA==\n<\n* Ignoring the response-body\n100 177 100 177 0 0 2021 0 --:--:-- --:--:-- --:--:-- 2034\n* Connection #0 to host huggingface.co left intact\n* Issue another request to this URL: 'https:\/\/huggingface.co\/datasets\/HuggingFaceTB\/smoltalk2\/resolve\/refs%2Fconvert%2Fparquet\/Mid\/Llama_Nemotron_Post_Training_Dataset_reasoning_r1\/0000.parquet'\n* Found bundle for host: 0x600002d54570 [can multiplex]\n* Re-using existing connection with host huggingface.co\n* [HTTP\/2] [3] OPENED stream for https:\/\/huggingface.co\/datasets\/HuggingFaceTB\/smoltalk2\/resolve\/refs%2Fconvert%2Fparquet\/Mid\/Llama_Nemotron_Post_Training_Dataset_reasoning_r1\/0000.parquet\n* [HTTP\/2] [3] [:method: GET]\n* [HTTP\/2] [3] [:scheme: https]\n* [HTTP\/2] [3] [:authority: huggingface.co]\n* [HTTP\/2] [3] [:path: \/datasets\/HuggingFaceTB\/smoltalk2\/resolve\/refs%2Fconvert%2Fparquet\/Mid\/Llama_Nemotron_Post_Training_Dataset_reasoning_r1\/0000.parquet]\n* [HTTP\/2] [3] [user-agent: curl\/8.7.1]\n* [HTTP\/2] [3] [accept: *\/*]\n* [HTTP\/2] [3] [range: bytes=217875070-218006142]\n> GET \/datasets\/HuggingFaceTB\/smoltalk2\/resolve\/refs%2Fconvert%2Fparquet\/Mid\/Llama_Nemotron_Post_Training_Dataset_reasoning_r1\/0000.parquet HTTP\/2\n> Host: huggingface.co\n> User-Agent: curl\/8.7.1\n> Accept: *\/*\n> Range: bytes=217875070-218006142\n>\n* Request completely sent off\n< HTTP\/2 302\n< content-type: text\/plain; charset=utf-8\n< content-length: 1317\n< location: https:\/\/cas-bridge.xethub.hf.co\/xet-bridge-us\/686fc33898943c873b45c9a0\/cf8a3a5665cf8b2ff667fb5236a1e5cb13c7582955f9533c88e1387997ef3af9?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=cas%2F20250716%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250716T145416Z&X-Amz-Expires=3600&X-Amz-Signature=21a15b50740d73fd8ce82d5105733ca067d2e612ada22570e09e93ebcc7f8842&X-Amz-SignedHeaders=host&X-Xet-Cas-Uid=public&response-content-disposition=inline%3B+filename*%3DUTF-8%27%270000.parquet%3B+filename%3D%220000.parquet%22%3B&x-id=GetObject&Expires=1752681256&Policy=eyJTdGF0ZW1lbnQiOlt7IkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTc1MjY4MTI1Nn19LCJSZXNvdXJjZSI6Imh0dHBzOi8vY2FzLWJyaWRnZS54ZXRodWIuaGYuY28veGV0LWJyaWRnZS11cy82ODZmYzMzODk4OTQzYzg3M2I0NWM5YTAvY2Y4YTNhNTY2NWNmOGIyZmY2NjdmYjUyMzZhMWU1Y2IxM2M3NTgyOTU1Zjk1MzNjODhlMTM4Nzk5N2VmM2FmOSoifV19&Signature=Tl3xorJ-7yaWvG6Y1AhhRlV2Wko9QpoK1tdPOfNZaRbHo%7EdaAkJRJfcLAYD5YzozfHWBZMLlJsaMPJ1MAne21nr5%7E737sE6yLfBwHdP3ZFZhgrLsN%7EvkIWK2GYX543qTg-pVsf3it92w1oWyoyYNQ9srxLfEIuG2AKV2Nu3Ejl7S%7EaAq4Gv4jNemvRTLBFGgYPdUeuavudl4OD4RGkSGTnpzh-P-OBk5WvgpdZZnbb1cRAP73tFHsPDX4%7ETfQIor109G%7E0TB3Jq0wopO9WV0sMQyQs9peZc6bxONiTxb9aHM4yNvWNbVGtlPuC6YS4c9T1e9%7EehdgU4sDOI%7EhpaCvg__&Key-Pair-Id=K2L8F4GPSG1IFC\n< date: Wed, 16 Jul 2025 14:58:44 GMT\n< x-powered-by: huggingface-moon\n< cross-origin-opener-policy: same-origin\n< referrer-policy: strict-origin-when-cross-origin\n< x-request-id: Root=1-6877be24-4f628b292dc8a7a5339c41d3\n< access-control-allow-origin: https:\/\/huggingface.co\n< vary: Origin, Accept\n< access-control-expose-headers: X-Repo-Commit,X-Request-Id,X-Error-Code,X-Error-Message,X-Total-Count,ETag,Link,Accept-Ranges,Content-Range,X-Linked-Size,X-Linked-ETag,X-Xet-Hash\n< set-cookie: token=; Path=\/; Expires=Thu, 01 Jan 1970 00:00:00 GMT; Secure; SameSite=None\n< set-cookie: token=; Domain=huggingface.co; Path=\/; Expires=Thu, 01 Jan 1970 00:00:00 GMT; Secure; SameSite=Lax\n< x-repo-commit: 712df366ffbc959d9f4279bf2da579230b7ca5d8\n< accept-ranges: bytes\n< x-linked-size: 218006142\n< x-linked-etag: \"01736bf26d0046ddec4ab8900fba3f0dc6500b038314b44d0edb73a7c88dec07\"\n< x-xet-hash: cf8a3a5665cf8b2ff667fb5236a1e5cb13c7582955f9533c88e1387997ef3af9\n< link: ; rel=\"xet-auth\", ; rel=\"xet-reconstruction-info\"\n< x-cache: Miss from cloudfront\n< via: 1.1 dd5af138aa8a11d8a70d5ef690ad1a2a.cloudfront.net (CloudFront)\n< x-amz-cf-pop: MSP50-P1\n< x-amz-cf-id: 0qXw2sJGrWCLVt7c-Vtn09uE3nu6CrJw9RmAKvNr_flG75muclvlIg==\n<\n* Ignoring the response-body\n100 1317 100 1317 0 0 9268 0 --:--:-- --:--:-- --:--:-- 9268\n* Connection #0 to host huggingface.co left intact\n* Issue another request to this URL: 'https:\/\/cas-bridge.xethub.hf.co\/xet-bridge-us\/686fc33898943c873b45c9a0\/cf8a3a5665cf8b2ff667fb5236a1e5cb13c7582955f9533c88e1387997ef3af9?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=cas%2F20250716%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250716T145416Z&X-Amz-Expires=3600&X-Amz-Signature=21a15b50740d73fd8ce82d5105733ca067d2e612ada22570e09e93ebcc7f8842&X-Amz-SignedHeaders=host&X-Xet-Cas-Uid=public&response-content-disposition=inline%3B+filename*%3DUTF-8%27%270000.parquet%3B+filename%3D%220000.parquet%22%3B&x-id=GetObject&Expires=1752681256&Policy=eyJTdGF0ZW1lbnQiOlt7IkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTc1MjY4MTI1Nn19LCJSZXNvdXJjZSI6Imh0dHBzOi8vY2FzLWJyaWRnZS54ZXRodWIuaGYuY28veGV0LWJyaWRnZS11cy82ODZmYzMzODk4OTQzYzg3M2I0NWM5YTAvY2Y4YTNhNTY2NWNmOGIyZmY2NjdmYjUyMzZhMWU1Y2IxM2M3NTgyOTU1Zjk1MzNjODhlMTM4Nzk5N2VmM2FmOSoifV19&Signature=Tl3xorJ-7yaWvG6Y1AhhRlV2Wko9QpoK1tdPOfNZaRbHo%7EdaAkJRJfcLAYD5YzozfHWBZMLlJsaMPJ1MAne21nr5%7E737sE6yLfBwHdP3ZFZhgrLsN%7EvkIWK2GYX543qTg-pVsf3it92w1oWyoyYNQ9srxLfEIuG2AKV2Nu3Ejl7S%7EaAq4Gv4jNemvRTLBFGgYPdUeuavudl4OD4RGkSGTnpzh-P-OBk5WvgpdZZnbb1cRAP73tFHsPDX4%7ETfQIor109G%7E0TB3Jq0wopO9WV0sMQyQs9peZc6bxONiTxb9aHM4yNvWNbVGtlPuC6YS4c9T1e9%7EehdgU4sDOI%7EhpaCvg__&Key-Pair-Id=K2L8F4GPSG1IFC'\n* Host cas-bridge.xethub.hf.co:443 was resolved.\n* IPv6: (none)\n* IPv4: 18.160.181.55, 18.160.181.54, 18.160.181.52, 18.160.181.88\n* Trying 18.160.181.55:443...\n* Connected to cas-bridge.xethub.hf.co (18.160.181.55) port 443\n* ALPN: curl offers h2,http\/1.1\n* (304) (OUT), TLS handshake, Client hello (1):\n} [328 bytes data]\n* (304) (IN), TLS handshake, Server hello (2):\n{ [122 bytes data]\n* (304) (IN), TLS handshake, Unknown (8):\n{ [19 bytes data]\n* (304) (IN), TLS handshake, Certificate (11):\n{ [3818 bytes data]\n* (304) (IN), TLS handshake, CERT verify (15):\n{ [264 bytes data]\n* (304) (IN), TLS handshake, Finished (20):\n{ [36 bytes data]\n* (304) (OUT), TLS handshake, Finished (20):\n} [36 bytes data]\n* SSL connection using TLSv1.3 \/ AEAD-AES128-GCM-SHA256 \/ [blank] \/ UNDEF\n* ALPN: server accepted h2\n* Server certificate:\n* subject: CN=cas-bridge.xethub.hf.co\n* start date: Jun 4 00:00:00 2025 GMT\n* expire date: Jul 3 23:59:59 2026 GMT\n* subjectAltName: host \"cas-bridge.xethub.hf.co\" matched cert's \"cas-bridge.xethub.hf.co\"\n* issuer: C=US; O=Amazon; CN=Amazon RSA 2048 M04\n* SSL certificate verify ok.\n* using HTTP\/2\n* [HTTP\/2] [1] OPENED stream for https:\/\/cas-bridge.xethub.hf.co\/xet-bridge-us\/686fc33898943c873b45c9a0\/cf8a3a5665cf8b2ff667fb5236a1e5cb13c7582955f9533c88e1387997ef3af9?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=cas%2F20250716%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250716T145416Z&X-Amz-Expires=3600&X-Amz-Signature=21a15b50740d73fd8ce82d5105733ca067d2e612ada22570e09e93ebcc7f8842&X-Amz-SignedHeaders=host&X-Xet-Cas-Uid=public&response-content-disposition=inline%3B+filename*%3DUTF-8%27%270000.parquet%3B+filename%3D%220000.parquet%22%3B&x-id=GetObject&Expires=1752681256&Policy=eyJTdGF0ZW1lbnQiOlt7IkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTc1MjY4MTI1Nn19LCJSZXNvdXJjZSI6Imh0dHBzOi8vY2FzLWJyaWRnZS54ZXRodWIuaGYuY28veGV0LWJyaWRnZS11cy82ODZmYzMzODk4OTQzYzg3M2I0NWM5YTAvY2Y4YTNhNTY2NWNmOGIyZmY2NjdmYjUyMzZhMWU1Y2IxM2M3NTgyOTU1Zjk1MzNjODhlMTM4Nzk5N2VmM2FmOSoifV19&Signature=Tl3xorJ-7yaWvG6Y1AhhRlV2Wko9QpoK1tdPOfNZaRbHo%7EdaAkJRJfcLAYD5YzozfHWBZMLlJsaMPJ1MAne21nr5%7E737sE6yLfBwHdP3ZFZhgrLsN%7EvkIWK2GYX543qTg-pVsf3it92w1oWyoyYNQ9srxLfEIuG2AKV2Nu3Ejl7S%7EaAq4Gv4jNemvRTLBFGgYPdUeuavudl4OD4RGkSGTnpzh-P-OBk5WvgpdZZnbb1cRAP73tFHsPDX4%7ETfQIor109G%7E0TB3Jq0wopO9WV0sMQyQs9peZc6bxONiTxb9aHM4yNvWNbVGtlPuC6YS4c9T1e9%7EehdgU4sDOI%7EhpaCvg__&Key-Pair-Id=K2L8F4GPSG1IFC\n* [HTTP\/2] [1] [:method: GET]\n* [HTTP\/2] [1] [:scheme: https]\n* [HTTP\/2] [1] [:authority: cas-bridge.xethub.hf.co]\n* [HTTP\/2] [1] [:path: \/xet-bridge-us\/686fc33898943c873b45c9a0\/cf8a3a5665cf8b2ff667fb5236a1e5cb13c7582955f9533c88e1387997ef3af9?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=cas%2F20250716%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250716T145416Z&X-Amz-Expires=3600&X-Amz-Signature=21a15b50740d73fd8ce82d5105733ca067d2e612ada22570e09e93ebcc7f8842&X-Amz-SignedHeaders=host&X-Xet-Cas-Uid=public&response-content-disposition=inline%3B+filename*%3DUTF-8%27%270000.parquet%3B+filename%3D%220000.parquet%22%3B&x-id=GetObject&Expires=1752681256&Policy=eyJTdGF0ZW1lbnQiOlt7IkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTc1MjY4MTI1Nn19LCJSZXNvdXJjZSI6Imh0dHBzOi8vY2FzLWJyaWRnZS54ZXRodWIuaGYuY28veGV0LWJyaWRnZS11cy82ODZmYzMzODk4OTQzYzg3M2I0NWM5YTAvY2Y4YTNhNTY2NWNmOGIyZmY2NjdmYjUyMzZhMWU1Y2IxM2M3NTgyOTU1Zjk1MzNjODhlMTM4Nzk5N2VmM2FmOSoifV19&Signature=Tl3xorJ-7yaWvG6Y1AhhRlV2Wko9QpoK1tdPOfNZaRbHo%7EdaAkJRJfcLAYD5YzozfHWBZMLlJsaMPJ1MAne21nr5%7E737sE6yLfBwHdP3ZFZhgrLsN%7EvkIWK2GYX543qTg-pVsf3it92w1oWyoyYNQ9srxLfEIuG2AKV2Nu3Ejl7S%7EaAq4Gv4jNemvRTLBFGgYPdUeuavudl4OD4RGkSGTnpzh-P-OBk5WvgpdZZnbb1cRAP73tFHsPDX4%7ETfQIor109G%7E0TB3Jq0wopO9WV0sMQyQs9peZc6bxONiTxb9aHM4yNvWNbVGtlPuC6YS4c9T1e9%7EehdgU4sDOI%7EhpaCvg__&Key-Pair-Id=K2L8F4GPSG1IFC]\n* [HTTP\/2] [1] [user-agent: curl\/8.7.1]\n* [HTTP\/2] [1] [accept: *\/*]\n* [HTTP\/2] [1] [range: bytes=217875070-218006142]\n> GET \/xet-bridge-us\/686fc33898943c873b45c9a0\/cf8a3a5665cf8b2ff667fb5236a1e5cb13c7582955f9533c88e1387997ef3af9?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=cas%2F20250716%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250716T145416Z&X-Amz-Expires=3600&X-Amz-Signature=21a15b50740d73fd8ce82d5105733ca067d2e612ada22570e09e93ebcc7f8842&X-Amz-SignedHeaders=host&X-Xet-Cas-Uid=public&response-content-disposition=inline%3B+filename*%3DUTF-8%27%270000.parquet%3B+filename%3D%220000.parquet%22%3B&x-id=GetObject&Expires=1752681256&Policy=eyJTdGF0ZW1lbnQiOlt7IkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTc1MjY4MTI1Nn19LCJSZXNvdXJjZSI6Imh0dHBzOi8vY2FzLWJyaWRnZS54ZXRodWIuaGYuY28veGV0LWJyaWRnZS11cy82ODZmYzMzODk4OTQzYzg3M2I0NWM5YTAvY2Y4YTNhNTY2NWNmOGIyZmY2NjdmYjUyMzZhMWU1Y2IxM2M3NTgyOTU1Zjk1MzNjODhlMTM4Nzk5N2VmM2FmOSoifV19&Signature=Tl3xorJ-7yaWvG6Y1AhhRlV2Wko9QpoK1tdPOfNZaRbHo%7EdaAkJRJfcLAYD5YzozfHWBZMLlJsaMPJ1MAne21nr5%7E737sE6yLfBwHdP3ZFZhgrLsN%7EvkIWK2GYX543qTg-pVsf3it92w1oWyoyYNQ9srxLfEIuG2AKV2Nu3Ejl7S%7EaAq4Gv4jNemvRTLBFGgYPdUeuavudl4OD4RGkSGTnpzh-P-OBk5WvgpdZZnbb1cRAP73tFHsPDX4%7ETfQIor109G%7E0TB3Jq0wopO9WV0sMQyQs9peZc6bxONiTxb9aHM4yNvWNbVGtlPuC6YS4c9T1e9%7EehdgU4sDOI%7EhpaCvg__&Key-Pair-Id=K2L8F4GPSG1IFC HTTP\/2\n> Host: cas-bridge.xethub.hf.co\n> User-Agent: curl\/8.7.1\n> Accept: *\/*\n> Range: bytes=217875070-218006142\n>\n* Request completely sent off\n< HTTP\/2 206\n< content-length: 131072\n< date: Mon, 14 Jul 2025 08:40:28 GMT\n< x-request-id: 01K041FDPVA03RR2PRXDZSN30G\n< content-disposition: inline; filename*=UTF-8''0000.parquet; filename=\"0000.parquet\";\n< cache-control: public, max-age=31536000\n< etag: \"cf8a3a5665cf8b2ff667fb5236a1e5cb13c7582955f9533c88e1387997ef3af9\"\n< access-control-allow-origin: *\n< access-control-allow-headers: Content-Range, Content-Type, Content-Disposition, ETag\n< access-control-expose-headers: Accept-Ranges, Content-Range, Content-Type, Content-Disposition, ETag, X-Cache\n< x-cache: Hit from cloudfront\n< via: 1.1 1c857e24a4dc84d2d9c78d5b3463bed6.cloudfront.net (CloudFront)\n< x-amz-cf-pop: MSP50-P2\n< x-amz-cf-id: 3SxFmQa5wLeeXbNiwaAo0_RwoR_n7-SivjsLjDLG-Pwn5UhG2oiEQA==\n< age: 195496\n< content-security-policy: default-src 'none'; sandbox\n< content-range: bytes 217875070-218006141\/218006142\n<\n{ [8192 bytes data]\n100 128k 100 128k 0 0 769k 0 --:--:-- --:--:-- --:--:-- 769k\n* Connection #1 to host cas-bridge.xethub.hf.co left intact\n\n<\/details>\n\n### Expected behavior\n\nalways get back a `206` \n\n### Environment info\n\nn\/a","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7685\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7685\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7684","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7684\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7684\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7684\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7684","id":3231680474,"node_id":"PR_kwDODunzps6e9SjQ","number":7684,"title":"fix audio cast storage from array + sampling_rate","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-07-15T10:13:42Z","updated_at":"2025-07-15T10:24:08Z","closed_at":"2025-07-15T10:24:07Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7684","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7684","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7684.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7684.patch","merged_at":"2025-07-15T10:24:07Z"},"body":"fix https:\/\/github.com\/huggingface\/datasets\/issues\/7682","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7684\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7684\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7683","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7683\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7683\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7683\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7683","id":3231553161,"node_id":"PR_kwDODunzps6e82iW","number":7683,"title":"Convert to string when needed + faster .zstd","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-07-15T09:37:44Z","updated_at":"2025-07-15T10:13:58Z","closed_at":"2025-07-15T10:13:56Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7683","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7683","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7683.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7683.patch","merged_at":"2025-07-15T10:13:56Z"},"body":"for https:\/\/huggingface.co\/datasets\/allenai\/olmo-mix-1124","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7683\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7683\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7682","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7682\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7682\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7682\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7682","id":3229687253,"node_id":"I_kwDODunzps7AgR3V","number":7682,"title":"Fail to cast Audio feature for numpy arrays in datasets 4.0.0","user":{"login":"luatil-cloud","id":163345686,"node_id":"U_kgDOCbx1Fg","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/163345686?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/luatil-cloud","html_url":"https:\/\/github.com\/luatil-cloud","followers_url":"https:\/\/api.github.com\/users\/luatil-cloud\/followers","following_url":"https:\/\/api.github.com\/users\/luatil-cloud\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/luatil-cloud\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/luatil-cloud\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/luatil-cloud\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/luatil-cloud\/orgs","repos_url":"https:\/\/api.github.com\/users\/luatil-cloud\/repos","events_url":"https:\/\/api.github.com\/users\/luatil-cloud\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/luatil-cloud\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-07-14T18:41:02Z","updated_at":"2025-07-15T12:10:39Z","closed_at":"2025-07-15T10:24:08Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nCasting features with Audio for numpy arrays - done here with `ds.map(gen_sine, features=features)` fails\nin version 4.0.0 but not in version 3.6.0\n\n\n### Steps to reproduce the bug\n\nThe following `uv script` should be able to reproduce the bug in version 4.0.0\nand pass in version 3.6.0 on a macOS Sequoia 15.5\n\n```python\n# \/\/\/ script\n# requires-python = \">=3.13\"\n# dependencies = [\n# \"datasets[audio]==4.0.0\",\n# \"librosa>=0.11.0\",\n# ]\n# \/\/\/\n# NAME\n# create_audio_dataset.py - create an audio dataset of sine waves\n#\n# SYNOPSIS\n# uv run create_audio_dataset.py\n#\n# DESCRIPTION\n# Create an audio dataset using the Hugging Face [datasets] library.\n# Illustrates how to create synthetic audio datasets using the [map]\n# datasets function.\n#\n# The strategy is to first create a dataset with the input to the\n# generation function, then execute the map function that generates\n# the result, and finally cast the final features.\n#\n# BUG\n# Casting features with Audio for numpy arrays -\n# done here with `ds.map(gen_sine, features=features)` fails\n# in version 4.0.0 but not in version 3.6.0\n#\n# This happens both in cases where --extra audio is provided and where is not.\n# When audio is not provided i've installed the latest compatible version\n# of soundfile.\n#\n# The error when soundfile is installed but the audio --extra is not\n# indicates that the array values do not have the `.T` property,\n# whilst also indicating that the value is a list instead of a numpy array.\n#\n# Last lines of error report when for datasets + soundfile case\n# ...\n#\n# File \"\/Users\/luasantilli\/.cache\/uv\/archive-v0\/tc_5IhQe7Zpw8ZXgQWpnl\/lib\/python3.13\/site-packages\/datasets\/features\/audio.py\", line 239, in cast_storage\n# storage = pa.array([Audio().encode_example(x) if x is not None else None for x in storage.to_pylist()])\n# ~~~~~~~~~~~~~~~~~~~~~~^^^\n# File \"\/Users\/luasantilli\/.cache\/uv\/archive-v0\/tc_5IhQe7Zpw8ZXgQWpnl\/lib\/python3.13\/site-packages\/datasets\/features\/audio.py\", line 122, in encode_example\n# sf.write(buffer, value[\"array\"].T, value[\"sampling_rate\"], format=\"wav\")\n# ^^^^^^^^^^^^^^^^\n# AttributeError: 'list' object has no attribute 'T'\n# ...\n#\n# For the case of datasets[audio] without explicit adding soundfile I get an FFmpeg\n# error.\n#\n# Last lines of error report:\n#\n# ...\n# RuntimeError: Could not load libtorchcodec. Likely causes:\n# 1. FFmpeg is not properly installed in your environment. We support\n# versions 4, 5, 6 and 7.\n# 2. The PyTorch version (2.7.1) is not compatible with\n# this version of TorchCodec. Refer to the version compatibility\n# table:\n# https:\/\/github.com\/pytorch\/torchcodec?tab=readme-ov-file#installing-torchcodec.\n# 3. Another runtime dependency; see exceptions below.\n# The following exceptions were raised as we tried to load libtorchcodec:\n#\n# [start of libtorchcodec loading traceback]\n# FFmpeg version 7: dlopen(\/Users\/luasantilli\/.cache\/uv\/archive-v0\/RK3IAlGfiICwDkHm2guLC\/lib\/python3.13\/site-packages\/torchcodec\/libtorchcodec_decoder7.dylib, 0x0006): Library not loaded: @rpath\/libavutil.59.dylib\n# Referenced from: <6DB21246-F28A-31A6-910A-D8F3355D1064> \/Users\/luasantilli\/.cache\/uv\/archive-v0\/RK3IAlGfiICwDkHm2guLC\/lib\/python3.13\/site-packages\/torchcodec\/libtorchcodec_decoder7.dylib\n# Reason: no LC_RPATH's found\n# FFmpeg version 6: dlopen(\/Users\/luasantilli\/.cache\/uv\/archive-v0\/RK3IAlGfiICwDkHm2guLC\/lib\/python3.13\/site-packages\/torchcodec\/libtorchcodec_decoder6.dylib, 0x0006): Library not loaded: @rpath\/libavutil.58.dylib\n# Referenced from: \/Users\/luasantilli\/.cache\/uv\/archive-v0\/RK3IAlGfiICwDkHm2guLC\/lib\/python3.13\/site-packages\/torchcodec\/libtorchcodec_decoder6.dylib\n# Reason: no LC_RPATH's found\n# FFmpeg version 5: dlopen(\/Users\/luasantilli\/.cache\/uv\/archive-v0\/RK3IAlGfiICwDkHm2guLC\/lib\/python3.13\/site-packages\/torchcodec\/libtorchcodec_decoder5.dylib, 0x0006): Library not loaded: @rpath\/libavutil.57.dylib\n# Referenced from: \/Users\/luasantilli\/.cache\/uv\/archive-v0\/RK3IAlGfiICwDkHm2guLC\/lib\/python3.13\/site-packages\/torchcodec\/libtorchcodec_decoder5.dylib\n# Reason: no LC_RPATH's found\n# FFmpeg version 4: dlopen(\/Users\/luasantilli\/.cache\/uv\/archive-v0\/RK3IAlGfiICwDkHm2guLC\/lib\/python3.13\/site-packages\/torchcodec\/libtorchcodec_decoder4.dylib, 0x0006): Library not loaded: @rpath\/libavutil.56.dylib\n# Referenced from: <6E59F017-C703-3AF6-A271-6277DD5F8170> \/Users\/luasantilli\/.cache\/uv\/archive-v0\/RK3IAlGfiICwDkHm2guLC\/lib\/python3.13\/site-packages\/torchcodec\/libtorchcodec_decoder4.dylib\n# Reason: no LC_RPATH's found\n# ...\n#\n# This is strange because the the same error does not happen when using version 3.6.0 with datasets[audio].\n#\n# The same error appears in python3.12\n## Imports\nimport numpy as np\nfrom datasets import Dataset, Features, Audio, Value\n\n## Parameters\nNUM_WAVES = 128\nSAMPLE_RATE = 16_000\nDURATION = 1.0\n\n## Input dataset arguments\nfreqs = np.linspace(100, 2000, NUM_WAVES).tolist()\nds = Dataset.from_dict({\"frequency\": freqs})\n\n## Features for the final dataset\nfeatures = Features(\n {\"frequency\": Value(\"float32\"), \"audio\": Audio(sampling_rate=SAMPLE_RATE)}\n)\n\n\n## Generate audio sine waves and cast features\ndef gen_sine(example):\n t = np.linspace(0, DURATION, int(SAMPLE_RATE * DURATION), endpoint=False)\n wav = np.sin(2 * np.pi * example[\"frequency\"] * t)\n return {\n \"frequency\": example[\"frequency\"],\n \"audio\": {\"array\": wav, \"sampling_rate\": SAMPLE_RATE},\n }\n\n\nds = ds.map(gen_sine, features=features)\n\nprint(ds)\nprint(ds.features)\n```\n\n### Expected behavior\n\nI expect the result of version `4.0.0` to be the same of that in version `3.6.0`. Switching the value\nof the script above to `3.6.0` I get the following, expected, result: \n\n```\n$ uv run bug_report.py\nMap: 100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 128\/128 [00:00<00:00, 204.58 examples\/s]\nDataset({\n features: ['frequency', 'audio'],\n num_rows: 128\n})\n{'frequency': Value(dtype='float32', id=None), 'audio': Audio(sampling_rate=16000, mono=True, decode=True, id=None)}\n```\n\n### Environment info\n\n- `datasets` version: 4.0.0\n- Platform: macOS-15.5-arm64-arm-64bit-Mach-O\n- Python version: 3.13.1\n- `huggingface_hub` version: 0.33.4\n- PyArrow version: 20.0.0\n- Pandas version: 2.3.1\n- `fsspec` version: 2025.3.0","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7682\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7682\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7681","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7681\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7681\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7681\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7681","id":3227112736,"node_id":"I_kwDODunzps7AWdUg","number":7681,"title":"Probabilistic High Memory Usage and Freeze on Python 3.10","user":{"login":"ryan-minato","id":82735346,"node_id":"MDQ6VXNlcjgyNzM1MzQ2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/82735346?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ryan-minato","html_url":"https:\/\/github.com\/ryan-minato","followers_url":"https:\/\/api.github.com\/users\/ryan-minato\/followers","following_url":"https:\/\/api.github.com\/users\/ryan-minato\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ryan-minato\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ryan-minato\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ryan-minato\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ryan-minato\/orgs","repos_url":"https:\/\/api.github.com\/users\/ryan-minato\/repos","events_url":"https:\/\/api.github.com\/users\/ryan-minato\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ryan-minato\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-07-14T01:57:16Z","updated_at":"2025-07-14T01:57:16Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nA probabilistic issue encountered when processing datasets containing PIL.Image columns using the huggingface\/datasets library on Python 3.10. The process occasionally experiences a sudden and significant memory spike, reaching 100% utilization, leading to a complete freeze. During this freeze, the process becomes unresponsive, cannot be forcefully terminated, and does not throw any exceptions.\n\nI have attempted to mitigate this issue by setting `datasets.config.IN_MEMORY_MAX_SIZE`, but it had no effect. In fact, based on the document of `load_dataset`, I suspect that setting `IN_MEMORY_MAX_SIZE` might even have a counterproductive effect.\n\nThis bug is not consistently reproducible, but its occurrence rate significantly decreases or disappears entirely when upgrading Python to version 3.11 or higher. Therefore, this issue also serves to share a potential solution for others who might encounter similar problems.\n\n### Steps to reproduce the bug\n\nDue to the probabilistic nature of this bug, consistent reproduction cannot be guaranteed for every run. However, in my environment, processing large datasets like timm\/imagenet-1k-wds(whether reading, casting, or mapping operations) almost certainly triggers the issue at some point.\nThe probability of the issue occurring drastically increases when num_proc is set to a value greater than 1 during operations.\n\nWhen the issue occurs, my system logs repeatedly show the following warnings:\n```\nWARN: very high memory utilization: 57.74GiB \/ 57.74GiB (100 %)\nWARN: container is unhealthy: triggered memory limits (OOM)\nWARN: container is unhealthy: triggered memory limits (OOM)\nWARN: container is unhealthy: triggered memory limits (OOM)\n```\n\n### Expected behavior\n\nThe dataset should be read and processed normally without memory exhaustion or freezing. If an unrecoverable error occurs, an appropriate exception should be raised.\n\nI have found that upgrading Python to version 3.11 or above completely resolves this issue. On Python 3.11, when memory usage approaches 100%, it suddenly drops before slowly increasing again. I suspect this behavior is due to an expected memory management action, possibly involving writing to disk cache, which prevents the complete freeze observed in Python 3.10.\n\n### Environment info\n\n- `datasets` version: 4.0.0\n- Platform: Linux-5.15.0-71-generic-x86_64-with-glibc2.35\n- Python version: 3.10.12\n- `huggingface_hub` version: 0.33.4\n- PyArrow version: 20.0.0\n- Pandas version: 2.3.1\n- `fsspec` version: 2025.3.0","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7681\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7681\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7680","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7680\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7680\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7680\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7680","id":3224824151,"node_id":"I_kwDODunzps7ANulX","number":7680,"title":"Question about iterable dataset and streaming","user":{"login":"Tavish9","id":73541181,"node_id":"MDQ6VXNlcjczNTQxMTgx","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/73541181?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Tavish9","html_url":"https:\/\/github.com\/Tavish9","followers_url":"https:\/\/api.github.com\/users\/Tavish9\/followers","following_url":"https:\/\/api.github.com\/users\/Tavish9\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Tavish9\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Tavish9\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Tavish9\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Tavish9\/orgs","repos_url":"https:\/\/api.github.com\/users\/Tavish9\/repos","events_url":"https:\/\/api.github.com\/users\/Tavish9\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Tavish9\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2025-07-12T04:48:30Z","updated_at":"2025-08-01T13:01:48Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"In the doc, I found the following example: https:\/\/github.com\/huggingface\/datasets\/blob\/611f5a592359ebac6f858f515c776aa7d99838b2\/docs\/source\/stream.mdx?plain=1#L65-L78\n\nI am confused, \n1. If we have already loaded the dataset, why doing `to_iterable_dataset`? Does it go through the dataset faster than map-style dataset?\n2. `load_dataset(streaming=True)` is useful for huge dataset, but the speed is slow. How to make it comparable to `to_iterable_dataset` without loading the whole dataset into RAM?","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7680\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7680\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7679","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7679\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7679\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7679\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7679","id":3220787371,"node_id":"I_kwDODunzps6_-VCr","number":7679,"title":"metric glue breaks with 4.0.0","user":{"login":"stas00","id":10676103,"node_id":"MDQ6VXNlcjEwNjc2MTAz","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/10676103?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/stas00","html_url":"https:\/\/github.com\/stas00","followers_url":"https:\/\/api.github.com\/users\/stas00\/followers","following_url":"https:\/\/api.github.com\/users\/stas00\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/stas00\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/stas00\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/stas00\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/stas00\/orgs","repos_url":"https:\/\/api.github.com\/users\/stas00\/repos","events_url":"https:\/\/api.github.com\/users\/stas00\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/stas00\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-07-10T21:39:50Z","updated_at":"2025-07-11T17:42:01Z","closed_at":"2025-07-11T17:42:01Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nworked fine with 3.6.0, and with 4.0.0 `eval_metric = metric.compute()` in HF Accelerate breaks.\n\nThe code that fails is:\nhttps:\/\/huggingface.co\/spaces\/evaluate-metric\/glue\/blob\/v0.4.0\/glue.py#L84\n\n```\ndef simple_accuracy(preds, labels):\n print(preds, labels)\n print(f\"{preds==labels}\")\n return float((preds == labels).mean())\n```\ndata:\n```\nColumn([1, 0, 0, 1, 1]) Column([1, 0, 0, 1, 0])\nFalse\n```\n\n```\n[rank0]: return float((preds == labels).mean())\n[rank0]: ^^^^^^^^^^^^^^^^^^^^^^\n[rank0]: AttributeError: 'bool' object has no attribute 'mean'\n```\n\nSome behavior has changed in this new major release of `datasets` and requires updating HF accelerate and perhaps the glue metric code, all belong to HF.\n\n### Environment info\n\ndatasets=4.0.0","closed_by":{"login":"stas00","id":10676103,"node_id":"MDQ6VXNlcjEwNjc2MTAz","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/10676103?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/stas00","html_url":"https:\/\/github.com\/stas00","followers_url":"https:\/\/api.github.com\/users\/stas00\/followers","following_url":"https:\/\/api.github.com\/users\/stas00\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/stas00\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/stas00\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/stas00\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/stas00\/orgs","repos_url":"https:\/\/api.github.com\/users\/stas00\/repos","events_url":"https:\/\/api.github.com\/users\/stas00\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/stas00\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7679\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7679\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7678","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7678\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7678\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7678\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7678","id":3218625544,"node_id":"I_kwDODunzps6_2FQI","number":7678,"title":"To support decoding audio data, please install 'torchcodec'.","user":{"login":"alpcansoydas","id":48163702,"node_id":"MDQ6VXNlcjQ4MTYzNzAy","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/48163702?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/alpcansoydas","html_url":"https:\/\/github.com\/alpcansoydas","followers_url":"https:\/\/api.github.com\/users\/alpcansoydas\/followers","following_url":"https:\/\/api.github.com\/users\/alpcansoydas\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/alpcansoydas\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/alpcansoydas\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/alpcansoydas\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/alpcansoydas\/orgs","repos_url":"https:\/\/api.github.com\/users\/alpcansoydas\/repos","events_url":"https:\/\/api.github.com\/users\/alpcansoydas\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/alpcansoydas\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-07-10T09:43:13Z","updated_at":"2025-07-22T03:46:52Z","closed_at":"2025-07-11T05:05:42Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"\nIn the latest version of datasets==4.0.0, i cannot print the audio data on the Colab notebook. But it works on the 3.6.0 version.\n\n!pip install -q -U datasets huggingface_hub fsspec\n\nfrom datasets import load_dataset\n\ndownloaded_dataset = load_dataset(\"ymoslem\/MediaSpeech\", \"tr\", split=\"train\")\nprint(downloaded_dataset[\"audio\"][0])\n\n---------------------------------------------------------------------------\nImportError Traceback (most recent call last)\n[\/tmp\/ipython-input-4-90623240.py](https:\/\/localhost:8080\/#) in ()\n----> 1 downloaded_dataset[\"audio\"][0]\n\n10 frames\n[\/usr\/local\/lib\/python3.11\/dist-packages\/datasets\/features\/audio.py](https:\/\/localhost:8080\/#) in decode_example(self, value, token_per_repo_id)\n 170 from ._torchcodec import AudioDecoder\n 171 else:\n--> 172 raise ImportError(\"To support decoding audio data, please install 'torchcodec'.\")\n 173 \n 174 if not self.decode:\n\nImportError: To support decoding audio data, please install 'torchcodec'. \n\n### Environment info\n\n- `datasets` version: 4.0.0\n- Platform: Linux-6.1.123+-x86_64-with-glibc2.35\n- Python version: 3.11.13\n- `huggingface_hub` version: 0.33.2\n- PyArrow version: 18.1.0\n- Pandas version: 2.2.2\n- `fsspec` version: 2025.3.0","closed_by":{"login":"alpcansoydas","id":48163702,"node_id":"MDQ6VXNlcjQ4MTYzNzAy","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/48163702?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/alpcansoydas","html_url":"https:\/\/github.com\/alpcansoydas","followers_url":"https:\/\/api.github.com\/users\/alpcansoydas\/followers","following_url":"https:\/\/api.github.com\/users\/alpcansoydas\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/alpcansoydas\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/alpcansoydas\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/alpcansoydas\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/alpcansoydas\/orgs","repos_url":"https:\/\/api.github.com\/users\/alpcansoydas\/repos","events_url":"https:\/\/api.github.com\/users\/alpcansoydas\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/alpcansoydas\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7678\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7678\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7677","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7677\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7677\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7677\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7677","id":3218044656,"node_id":"I_kwDODunzps6_z3bw","number":7677,"title":"Toxicity fails with datasets 4.0.0","user":{"login":"serena-ruan","id":82044803,"node_id":"MDQ6VXNlcjgyMDQ0ODAz","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/82044803?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/serena-ruan","html_url":"https:\/\/github.com\/serena-ruan","followers_url":"https:\/\/api.github.com\/users\/serena-ruan\/followers","following_url":"https:\/\/api.github.com\/users\/serena-ruan\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/serena-ruan\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/serena-ruan\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/serena-ruan\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/serena-ruan\/orgs","repos_url":"https:\/\/api.github.com\/users\/serena-ruan\/repos","events_url":"https:\/\/api.github.com\/users\/serena-ruan\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/serena-ruan\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-07-10T06:15:22Z","updated_at":"2025-07-11T04:40:59Z","closed_at":"2025-07-11T04:40:59Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nWith the latest 4.0.0 release, huggingface toxicity evaluation module fails with error: `ValueError: text input must be of type `str` (single example), `List[str]` (batch or single pretokenized example) or `List[List[str]]` (batch of pretokenized examples).`\n\n### Steps to reproduce the bug\n\nRepro:\n```\n>>> toxicity.compute(predictions=[\"This is a response\"])\nTraceback (most recent call last):\n File \"\", line 1, in \n File \"\/Users\/serena.ruan\/miniconda3\/envs\/mlflow-310\/lib\/python3.10\/site-packages\/evaluate\/module.py\", line 467, in compute\n output = self._compute(**inputs, **compute_kwargs)\n File \"\/Users\/serena.ruan\/.cache\/huggingface\/modules\/evaluate_modules\/metrics\/evaluate-measurement--toxicity\/2390290fa0bf6d78480143547c6b08f3d4f8805b249df8c7a8e80d0ce8e3778b\/toxicity.py\", line 135, in _compute\n scores = toxicity(predictions, self.toxic_classifier, toxic_label)\n File \"\/Users\/serena.ruan\/.cache\/huggingface\/modules\/evaluate_modules\/metrics\/evaluate-measurement--toxicity\/2390290fa0bf6d78480143547c6b08f3d4f8805b249df8c7a8e80d0ce8e3778b\/toxicity.py\", line 103, in toxicity\n for pred_toxic in toxic_classifier(preds):\n File \"\/Users\/serena.ruan\/miniconda3\/envs\/mlflow-310\/lib\/python3.10\/site-packages\/transformers\/pipelines\/text_classification.py\", line 159, in __call__\n result = super().__call__(*inputs, **kwargs)\n File \"\/Users\/serena.ruan\/miniconda3\/envs\/mlflow-310\/lib\/python3.10\/site-packages\/transformers\/pipelines\/base.py\", line 1431, in __call__\n return self.run_single(inputs, preprocess_params, forward_params, postprocess_params)\n File \"\/Users\/serena.ruan\/miniconda3\/envs\/mlflow-310\/lib\/python3.10\/site-packages\/transformers\/pipelines\/base.py\", line 1437, in run_single\n model_inputs = self.preprocess(inputs, **preprocess_params)\n File \"\/Users\/serena.ruan\/miniconda3\/envs\/mlflow-310\/lib\/python3.10\/site-packages\/transformers\/pipelines\/text_classification.py\", line 183, in preprocess\n return self.tokenizer(inputs, return_tensors=return_tensors, **tokenizer_kwargs)\n File \"\/Users\/serena.ruan\/miniconda3\/envs\/mlflow-310\/lib\/python3.10\/site-packages\/transformers\/tokenization_utils_base.py\", line 2867, in __call__\n encodings = self._call_one(text=text, text_pair=text_pair, **all_kwargs)\n File \"\/Users\/serena.ruan\/miniconda3\/envs\/mlflow-310\/lib\/python3.10\/site-packages\/transformers\/tokenization_utils_base.py\", line 2927, in _call_one\n raise ValueError(\nValueError: text input must be of type `str` (single example), `List[str]` (batch or single pretokenized example) or `List[List[str]]` (batch of pretokenized examples).\n```\n\n### Expected behavior\n\nThis works before 4.0.0 release\n\n### Environment info\n\n- `datasets` version: 4.0.0\n- Platform: macOS-15.5-arm64-arm-64bit\n- Python version: 3.10.16\n- `huggingface_hub` version: 0.33.0\n- PyArrow version: 19.0.1\n- Pandas version: 2.2.3\n- `fsspec` version: 2024.12.0","closed_by":{"login":"serena-ruan","id":82044803,"node_id":"MDQ6VXNlcjgyMDQ0ODAz","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/82044803?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/serena-ruan","html_url":"https:\/\/github.com\/serena-ruan","followers_url":"https:\/\/api.github.com\/users\/serena-ruan\/followers","following_url":"https:\/\/api.github.com\/users\/serena-ruan\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/serena-ruan\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/serena-ruan\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/serena-ruan\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/serena-ruan\/orgs","repos_url":"https:\/\/api.github.com\/users\/serena-ruan\/repos","events_url":"https:\/\/api.github.com\/users\/serena-ruan\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/serena-ruan\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7677\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7677\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7676","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7676\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7676\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7676\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7676","id":3216857559,"node_id":"I_kwDODunzps6_vVnX","number":7676,"title":"Many things broken since the new 4.0.0 release","user":{"login":"mobicham","id":37179323,"node_id":"MDQ6VXNlcjM3MTc5MzIz","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/37179323?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/mobicham","html_url":"https:\/\/github.com\/mobicham","followers_url":"https:\/\/api.github.com\/users\/mobicham\/followers","following_url":"https:\/\/api.github.com\/users\/mobicham\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/mobicham\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/mobicham\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/mobicham\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/mobicham\/orgs","repos_url":"https:\/\/api.github.com\/users\/mobicham\/repos","events_url":"https:\/\/api.github.com\/users\/mobicham\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/mobicham\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2025-07-09T18:59:50Z","updated_at":"2025-07-21T10:38:01Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nThe new changes in 4.0.0 are breaking many datasets, including those from lm-evaluation-harness. \nI am trying to revert back to older versions, like 3.6.0 to make the eval work but I keep getting:\n``` Python\nFile \/venv\/main\/lib\/python3.12\/site-packages\/datasets\/features\/features.py:1474, in generate_from_dict(obj)\n 1471 class_type = _FEATURE_TYPES.get(_type, None) or globals().get(_type, None)\n 1473 if class_type is None:\n-> 1474 raise ValueError(f\"Feature type '{_type}' not found. Available feature types: {list(_FEATURE_TYPES.keys())}\")\n 1476 if class_type == LargeList:\n 1477 feature = obj.pop(\"feature\")\n\nValueError: Feature type 'List' not found. Available feature types: ['Value', 'ClassLabel', 'Translation', 'TranslationVariableLanguages', 'LargeList', 'Sequence', 'Array2D', 'Array3D', 'Array4D', 'Array5D', 'Audio', 'Image', 'Video', 'Pdf']\n\n```\n\n\n\n### Steps to reproduce the bug\n\n``` Python\nimport lm_eval\nmodel_eval = lm_eval.models.huggingface.HFLM(pretrained=model, tokenizer=tokenizer)\nlm_eval.evaluator.simple_evaluate(model_eval, tasks=[\"winogrande\"], num_fewshot=5, batch_size=1)\n```\n\n### Expected behavior\n\nOlder `datasets` versions should work just fine as before\n\n### Environment info\n\n- `datasets` version: 3.6.0\n- Platform: Linux-6.8.0-60-generic-x86_64-with-glibc2.39\n- Python version: 3.12.11\n- `huggingface_hub` version: 0.33.1\n- PyArrow version: 20.0.0\n- Pandas version: 2.3.1\n- `fsspec` version: 2025.3.0\n","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7676\/reactions","total_count":13,"+1":13,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7676\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7675","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7675\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7675\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7675\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7675","id":3216699094,"node_id":"I_kwDODunzps6_uu7W","number":7675,"title":"common_voice_11_0.py failure in dataset library","user":{"login":"egegurel","id":98793855,"node_id":"U_kgDOBeN5fw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/98793855?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/egegurel","html_url":"https:\/\/github.com\/egegurel","followers_url":"https:\/\/api.github.com\/users\/egegurel\/followers","following_url":"https:\/\/api.github.com\/users\/egegurel\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/egegurel\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/egegurel\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/egegurel\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/egegurel\/orgs","repos_url":"https:\/\/api.github.com\/users\/egegurel\/repos","events_url":"https:\/\/api.github.com\/users\/egegurel\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/egegurel\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2025-07-09T17:47:59Z","updated_at":"2025-07-22T09:35:42Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI tried to download dataset but have got this error:\n\nfrom datasets import load_dataset\nload_dataset(\"mozilla-foundation\/common_voice_11_0\", \"en\", split=\"test\", streaming=True) \n---------------------------------------------------------------------------\nRuntimeError Traceback (most recent call last)\nCell In[8], line 4\n 1 from datasets import load_dataset\n----> 4 load_dataset(\"mozilla-foundation\/common_voice_11_0\", \"en\", split=\"test\", streaming=True)\n\nFile c:\\Users\\ege_g\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\datasets\\load.py:1392, in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, verification_mode, keep_in_memory, save_infos, revision, token, streaming, num_proc, storage_options, **config_kwargs)\n 1387 verification_mode = VerificationMode(\n 1388 (verification_mode or VerificationMode.BASIC_CHECKS) if not save_infos else VerificationMode.ALL_CHECKS\n 1389 )\n 1391 # Create a dataset builder\n-> 1392 builder_instance = load_dataset_builder(\n 1393 path=path,\n 1394 name=name,\n 1395 data_dir=data_dir,\n 1396 data_files=data_files,\n 1397 cache_dir=cache_dir,\n 1398 features=features,\n 1399 download_config=download_config,\n 1400 download_mode=download_mode,\n 1401 revision=revision,\n 1402 token=token,\n 1403 storage_options=storage_options,\n 1404 **config_kwargs,\n 1405 )\n 1407 # Return iterable dataset in case of streaming\n 1408 if streaming:\n\nFile c:\\Users\\ege_g\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\datasets\\load.py:1132, in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, token, storage_options, **config_kwargs)\n 1130 if features is not None:\n 1131 features = _fix_for_backward_compatible_features(features)\n-> 1132 dataset_module = dataset_module_factory(\n 1133 path,\n 1134 revision=revision,\n 1135 download_config=download_config,\n 1136 download_mode=download_mode,\n 1137 data_dir=data_dir,\n 1138 data_files=data_files,\n 1139 cache_dir=cache_dir,\n 1140 )\n 1141 # Get dataset builder class\n 1142 builder_kwargs = dataset_module.builder_kwargs\n\nFile c:\\Users\\ege_g\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\datasets\\load.py:1031, in dataset_module_factory(path, revision, download_config, download_mode, data_dir, data_files, cache_dir, **download_kwargs)\n 1026 if isinstance(e1, FileNotFoundError):\n 1027 raise FileNotFoundError(\n 1028 f\"Couldn't find any data file at {relative_to_absolute_path(path)}. \"\n 1029 f\"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}\"\n 1030 ) from None\n-> 1031 raise e1 from None\n 1032 else:\n 1033 raise FileNotFoundError(f\"Couldn't find any data file at {relative_to_absolute_path(path)}.\")\n\nFile c:\\Users\\ege_g\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\datasets\\load.py:989, in dataset_module_factory(path, revision, download_config, download_mode, data_dir, data_files, cache_dir, **download_kwargs)\n 981 try:\n 982 api.hf_hub_download(\n 983 repo_id=path,\n 984 filename=filename,\n (...)\n 987 proxies=download_config.proxies,\n 988 )\n--> 989 raise RuntimeError(f\"Dataset scripts are no longer supported, but found {filename}\")\n 990 except EntryNotFoundError:\n 991 # Use the infos from the parquet export except in some cases:\n 992 if data_dir or data_files or (revision and revision != \"main\"):\n\nRuntimeError: Dataset scripts are no longer supported, but found common_voice_11_0.py\n\n### Steps to reproduce the bug\n\nfrom datasets import load_dataset\nload_dataset(\"mozilla-foundation\/common_voice_11_0\", \"en\", split=\"test\", streaming=True)\n\n\n### Expected behavior\n\nits supposed to download this dataset.\n\n### Environment info\n\nPython 3.12 , Windows 11 ","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7675\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7675\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7674","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7674\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7674\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7674\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7674","id":3216251069,"node_id":"PR_kwDODunzps6eJGo5","number":7674,"title":"set dev version","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-07-09T15:01:25Z","updated_at":"2025-07-09T15:04:01Z","closed_at":"2025-07-09T15:01:33Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7674","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7674","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7674.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7674.patch","merged_at":"2025-07-09T15:01:33Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7674\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7674\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7673","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7673\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7673\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7673\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7673","id":3216075633,"node_id":"PR_kwDODunzps6eIgj-","number":7673,"title":"Release: 4.0.0","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-07-09T14:03:16Z","updated_at":"2025-07-09T14:36:19Z","closed_at":"2025-07-09T14:36:18Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7673","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7673","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7673.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7673.patch","merged_at":"2025-07-09T14:36:18Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7673\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7673\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7672","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7672\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7672\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7672\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7672","id":3215287164,"node_id":"PR_kwDODunzps6eF1vj","number":7672,"title":"Fix double sequence","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-07-09T09:53:39Z","updated_at":"2025-07-09T09:56:29Z","closed_at":"2025-07-09T09:56:28Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7672","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7672","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7672.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7672.patch","merged_at":"2025-07-09T09:56:27Z"},"body":"```python\r\n>>> Features({\"a\": Sequence(Sequence({\"c\": Value(\"int64\")}))})\r\n{'a': List({'c': List(Value('int64'))})}\r\n```\r\n\r\ninstead of `{'a': {'c': List(List(Value('int64')))}}`","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7672\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7672\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7671","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7671\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7671\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7671\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7671","id":3213223886,"node_id":"I_kwDODunzps6_hefO","number":7671,"title":"Mapping function not working if the first example is returned as None","user":{"login":"dnaihao","id":46325823,"node_id":"MDQ6VXNlcjQ2MzI1ODIz","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/46325823?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/dnaihao","html_url":"https:\/\/github.com\/dnaihao","followers_url":"https:\/\/api.github.com\/users\/dnaihao\/followers","following_url":"https:\/\/api.github.com\/users\/dnaihao\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/dnaihao\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/dnaihao\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/dnaihao\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/dnaihao\/orgs","repos_url":"https:\/\/api.github.com\/users\/dnaihao\/repos","events_url":"https:\/\/api.github.com\/users\/dnaihao\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/dnaihao\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-07-08T17:07:47Z","updated_at":"2025-07-09T12:30:32Z","closed_at":"2025-07-09T12:30:32Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nhttps:\/\/github.com\/huggingface\/datasets\/blob\/8a19de052e3d79f79cea26821454bbcf0e9dcd68\/src\/datasets\/arrow_dataset.py#L3652C29-L3652C37\n\nHere we can see the writer is initialized on `i==0`. However, there can be cases where in the user mapping function, the first example is filtered out (length constraints, etc).\n\nIn this case, the writer would be a `None` type and the code will report `NoneType has no write function`.\n\nA simple fix is available, simply change line 3652 from `if i == 0:` to `if writer is None:`\n\n### Steps to reproduce the bug\n\nPrepare a dataset\n\nhave this function\n\n```\nimport datasets\n\n\ndef make_map_fn(split, max_prompt_tokens=3):\n def process_fn(example, idx):\n\n question = example['question']\n reasoning_steps = example['reasoning_steps']\n label = example['label']\n\n answer_format = \"\"\n for i in range(len(reasoning_steps)):\n system_message = \"Dummy\"\n\n all_steps_formatted = []\n\n content = f\"\"\"Dummy\"\"\"\n\n prompt = [\n {\"role\": \"system\", \"content\": system_message},\n {\"role\": \"user\", \"content\": content},\n ]\n tokenized = tokenizer.apply_chat_template(prompt, return_tensors=\"pt\", truncation=False)\n if tokenized.shape[1] > max_prompt_tokens:\n return None # skip overly long examples\n\n data = {\n \"dummy\": \"dummy\"\n }\n\n return data\n\n return process_fn\n\n...\n# load your dataset\n...\ntrain = train.map(function=make_map_fn('train'), with_indices=True)\n```\n\n### Expected behavior\n\nThe dataset mapping shall behave even when the first example is filtered out.\n\n### Environment info\n\nI am using `datasets==3.6.0` but I have observed this issue in the github repo too: https:\/\/github.com\/huggingface\/datasets\/blob\/8a19de052e3d79f79cea26821454bbcf0e9dcd68\/src\/datasets\/arrow_dataset.py#L3652C29-L3652C37","closed_by":{"login":"dnaihao","id":46325823,"node_id":"MDQ6VXNlcjQ2MzI1ODIz","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/46325823?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/dnaihao","html_url":"https:\/\/github.com\/dnaihao","followers_url":"https:\/\/api.github.com\/users\/dnaihao\/followers","following_url":"https:\/\/api.github.com\/users\/dnaihao\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/dnaihao\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/dnaihao\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/dnaihao\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/dnaihao\/orgs","repos_url":"https:\/\/api.github.com\/users\/dnaihao\/repos","events_url":"https:\/\/api.github.com\/users\/dnaihao\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/dnaihao\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7671\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7671\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7670","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7670\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7670\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7670\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7670","id":3208962372,"node_id":"PR_kwDODunzps6dwgOc","number":7670,"title":"Fix audio bytes","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-07-07T13:05:15Z","updated_at":"2025-07-07T13:07:47Z","closed_at":"2025-07-07T13:05:33Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7670","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7670","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7670.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7670.patch","merged_at":"2025-07-07T13:05:33Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7670\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7670\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7669","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7669\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7669\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7669\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7669","id":3203541091,"node_id":"I_kwDODunzps6-8ihj","number":7669,"title":"How can I add my custom data to huggingface datasets","user":{"login":"xiagod","id":219205504,"node_id":"U_kgDODRDPgA","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/219205504?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/xiagod","html_url":"https:\/\/github.com\/xiagod","followers_url":"https:\/\/api.github.com\/users\/xiagod\/followers","following_url":"https:\/\/api.github.com\/users\/xiagod\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/xiagod\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/xiagod\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/xiagod\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/xiagod\/orgs","repos_url":"https:\/\/api.github.com\/users\/xiagod\/repos","events_url":"https:\/\/api.github.com\/users\/xiagod\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/xiagod\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-07-04T19:19:54Z","updated_at":"2025-07-05T18:19:37Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"I want to add my custom dataset in huggingface dataset. Please guide me how to achieve that.","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7669\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7669\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7668","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7668\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7668\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7668\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7668","id":3199039322,"node_id":"I_kwDODunzps6-rXda","number":7668,"title":"Broken EXIF crash the whole program","user":{"login":"Seas0","id":30485844,"node_id":"MDQ6VXNlcjMwNDg1ODQ0","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/30485844?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Seas0","html_url":"https:\/\/github.com\/Seas0","followers_url":"https:\/\/api.github.com\/users\/Seas0\/followers","following_url":"https:\/\/api.github.com\/users\/Seas0\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Seas0\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Seas0\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Seas0\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Seas0\/orgs","repos_url":"https:\/\/api.github.com\/users\/Seas0\/repos","events_url":"https:\/\/api.github.com\/users\/Seas0\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Seas0\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-07-03T11:24:15Z","updated_at":"2025-07-03T12:27:16Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nWhen parsing this image in the ImageNet1K dataset, the `datasets` crashs whole training process just because unable to parse an invalid EXIF tag.\n![Image](https:\/\/github.com\/user-attachments\/assets\/3c840203-ac8c-41a0-9cf7-45f64488037d)\n\n### Steps to reproduce the bug\n\nUse the `datasets.Image.decode_example` method to decode the aforementioned image could reproduce the bug.\nThe decoding function will throw an unhandled exception at the `image.getexif()` method call due to invalid utf-8 stream in EXIF tags.\n```\nFile lib\/python3.12\/site-packages\/datasets\/features\/image.py:188, in Image.decode_example(self, value, token_per_repo_id)\n 186 image = PIL.Image.open(BytesIO(bytes_))\n 187 image.load() # to avoid \"Too many open files\" errors\n--> 188 if image.getexif().get(PIL.Image.ExifTags.Base.Orientation) is not None:\n 189 image = PIL.ImageOps.exif_transpose(image)\n 190 if self.mode and self.mode != image.mode:\n\nFile lib\/python3.12\/site-packages\/PIL\/Image.py:1542, in Image.getexif(self)\n 1540 xmp_tags = self.info.get(\"XML:com.adobe.xmp\")\n 1541 if not xmp_tags and (xmp_tags := self.info.get(\"xmp\")):\n-> 1542 xmp_tags = xmp_tags.decode(\"utf-8\")\n 1543 if xmp_tags:\n 1544 match = re.search(r'tiff:Orientation(=\"|>)([0-9])', xmp_tags)\n\nUnicodeDecodeError: 'utf-8' codec can't decode byte 0xa8 in position 4312: invalid start byte\n```\n\n### Expected behavior\n\nThe invalid EXIF tag should simply be ignored or issue a warning message, instead of crash the whole program at once.\n\n### Environment info\n\n- `datasets` version: 3.6.0\n- Platform: Linux-6.5.0-18-generic-x86_64-with-glibc2.35\n- Python version: 3.12.11\n- `huggingface_hub` version: 0.33.0\n- PyArrow version: 20.0.0\n- Pandas version: 2.3.0\n- `fsspec` version: 2025.3.0","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7668\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7668\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7667","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7667\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7667\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7667\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7667","id":3196251707,"node_id":"PR_kwDODunzps6dGmm8","number":7667,"title":"Fix infer list of images","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-07-02T15:07:58Z","updated_at":"2025-07-02T15:10:28Z","closed_at":"2025-07-02T15:08:03Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7667","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7667","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7667.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7667.patch","merged_at":"2025-07-02T15:08:03Z"},"body":"cc @kashif ","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7667\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7667\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7666","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7666\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7666\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7666\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7666","id":3196220722,"node_id":"PR_kwDODunzps6dGf7E","number":7666,"title":"Backward compat list feature","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-07-02T14:58:00Z","updated_at":"2025-07-02T15:00:37Z","closed_at":"2025-07-02T14:59:40Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7666","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7666","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7666.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7666.patch","merged_at":"2025-07-02T14:59:40Z"},"body":"cc @kashif ","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7666\/reactions","total_count":1,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":1,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7666\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7665","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7665\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7665\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7665\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7665","id":3193239955,"node_id":"I_kwDODunzps6-VPmT","number":7665,"title":"Function load_dataset() misinterprets string field content as part of dataset schema when dealing with `.jsonl` files","user":{"login":"zdzichukowalski","id":1151198,"node_id":"MDQ6VXNlcjExNTExOTg=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/1151198?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/zdzichukowalski","html_url":"https:\/\/github.com\/zdzichukowalski","followers_url":"https:\/\/api.github.com\/users\/zdzichukowalski\/followers","following_url":"https:\/\/api.github.com\/users\/zdzichukowalski\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/zdzichukowalski\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/zdzichukowalski\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/zdzichukowalski\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/zdzichukowalski\/orgs","repos_url":"https:\/\/api.github.com\/users\/zdzichukowalski\/repos","events_url":"https:\/\/api.github.com\/users\/zdzichukowalski\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/zdzichukowalski\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-07-01T17:14:53Z","updated_at":"2025-07-01T17:17:48Z","closed_at":"2025-07-01T17:17:48Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nWhen loading a `.jsonl` file using `load_dataset(\"json\", data_files=\"data.jsonl\", split=\"train\")`, the function misinterprets the content of a string field as if it were part of the dataset schema. \n\nIn my case there is a field `body:` with a string value \n```\n\"### Describe the bug (...) ,action: string, datetime: timestamp[s], author: string, (...) Pandas version: 1.3.4\"\n```\nAs a result, I got an exception \n```\n\"TypeError: Couldn't cast array of type timestamp[s] to null\". \n```\nFull stack-trace in the attached file below.\n\nI also attach a minimized dataset (data.json, a single entry) that reproduces the error.\n\n**Observations**(on the minimal example): \n- if I remove _all fields before_ `body`, a different error appears,\n- if I remove _all fields after_ `body`, yet another error appears,\n- if `body` is _the only field_, the error disappears.\n\nSo this might be one complex bug or several edge cases interacting. I haven\u2019t dug deeper.\n\nAlso changing the file extension to `.json` or `.txt` avoids the problem. This suggests **a possible workaround** for the general case: convert `.jsonl` to `.json`. Though I haven\u2019t verified correctness of that workaround yet.\n\nAnyway my understanding is that `load_dataset` with first argument set to \"json\" should properly handle `.jsonl` files. Correct me if I'm wrong.\n\n[stack_trace.txt](https:\/\/github.com\/user-attachments\/files\/21004153\/stack_trace.txt)\n[data.json](https:\/\/github.com\/user-attachments\/files\/21004164\/data.json)\n\nP.S.\nI discovered this while going through the HuggingFace tutorial. Specifically [this part](https:\/\/huggingface.co\/learn\/llm-course\/chapter5\/5?fw=pt).I will try to inform the tutorial team about this issue, as it can be a showstopper for young \ud83e\udd17 adepts.\n\n### Steps to reproduce the bug\n\n1. Download attached [data.json](https:\/\/github.com\/user-attachments\/files\/21004164\/data.json) file.\n2. Run the following code which should work correctly:\n```\nfrom datasets import load_dataset\nload_dataset(\"json\", data_files=\"data.json\", split=\"train\")\n```\n3. Change extension of the `data` file to `.jsonl` and run:\n```\nfrom datasets import load_dataset\nload_dataset(\"json\", data_files=\"data.jsonl\", split=\"train\")\n```\n\nThis will trigger an error like the one in the attached [stack_trace.txt](https:\/\/github.com\/user-attachments\/files\/21004153\/stack_trace.txt).\n\nOne can also try removing fields before the `body` field and after it. These actions give different errors.\n\n\n### Expected behavior\n\nParsing data in `.jsonl` format should yield the same result as parsing the same data in `.json` format. In any case, the content of a string field should never be interpreted as part of the dataset schema.\n\n### Environment info\n\ndatasets version: _3.6.0_\npyarrow version: _20.0.0_\nPython version: _3.11.9_\nplatform version: _macOS-15.5-arm64-arm-64bit_","closed_by":{"login":"zdzichukowalski","id":1151198,"node_id":"MDQ6VXNlcjExNTExOTg=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/1151198?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/zdzichukowalski","html_url":"https:\/\/github.com\/zdzichukowalski","followers_url":"https:\/\/api.github.com\/users\/zdzichukowalski\/followers","following_url":"https:\/\/api.github.com\/users\/zdzichukowalski\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/zdzichukowalski\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/zdzichukowalski\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/zdzichukowalski\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/zdzichukowalski\/orgs","repos_url":"https:\/\/api.github.com\/users\/zdzichukowalski\/repos","events_url":"https:\/\/api.github.com\/users\/zdzichukowalski\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/zdzichukowalski\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7665\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7665\/timeline","performed_via_github_app":null,"state_reason":"duplicate","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7664","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7664\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7664\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7664\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7664","id":3193239035,"node_id":"I_kwDODunzps6-VPX7","number":7664,"title":"Function load_dataset() misinterprets string field content as part of dataset schema when dealing with `.jsonl` files","user":{"login":"zdzichukowalski","id":1151198,"node_id":"MDQ6VXNlcjExNTExOTg=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/1151198?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/zdzichukowalski","html_url":"https:\/\/github.com\/zdzichukowalski","followers_url":"https:\/\/api.github.com\/users\/zdzichukowalski\/followers","following_url":"https:\/\/api.github.com\/users\/zdzichukowalski\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/zdzichukowalski\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/zdzichukowalski\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/zdzichukowalski\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/zdzichukowalski\/orgs","repos_url":"https:\/\/api.github.com\/users\/zdzichukowalski\/repos","events_url":"https:\/\/api.github.com\/users\/zdzichukowalski\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/zdzichukowalski\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2025-07-01T17:14:32Z","updated_at":"2025-07-09T13:14:11Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nWhen loading a `.jsonl` file using `load_dataset(\"json\", data_files=\"data.jsonl\", split=\"train\")`, the function misinterprets the content of a string field as if it were part of the dataset schema. \n\nIn my case there is a field `body:` with a string value \n```\n\"### Describe the bug (...) ,action: string, datetime: timestamp[s], author: string, (...) Pandas version: 1.3.4\"\n```\nAs a result, I got an exception \n```\n\"TypeError: Couldn't cast array of type timestamp[s] to null\". \n```\nFull stack-trace in the attached file below.\n\nI also attach a minimized dataset (data.json, a single entry) that reproduces the error.\n\n**Observations**(on the minimal example): \n- if I remove _all fields before_ `body`, a different error appears,\n- if I remove _all fields after_ `body`, yet another error appears,\n- if `body` is _the only field_, the error disappears.\n\nSo this might be one complex bug or several edge cases interacting. I haven\u2019t dug deeper.\n\nAlso changing the file extension to `.json` or `.txt` avoids the problem. This suggests **a possible workaround** for the general case: convert `.jsonl` to `.json`. Though I haven\u2019t verified correctness of that workaround yet.\n\nAnyway my understanding is that `load_dataset` with first argument set to \"json\" should properly handle `.jsonl` files. Correct me if I'm wrong.\n\n[stack_trace.txt](https:\/\/github.com\/user-attachments\/files\/21004153\/stack_trace.txt)\n[data.json](https:\/\/github.com\/user-attachments\/files\/21004164\/data.json)\n\nP.S.\nI discovered this while going through the HuggingFace tutorial. Specifically [this part](https:\/\/huggingface.co\/learn\/llm-course\/chapter5\/5?fw=pt). I will try to inform the tutorial team about this issue, as it can be a showstopper for young \ud83e\udd17 adepts.\n\n### Steps to reproduce the bug\n\n1. Download attached [data.json](https:\/\/github.com\/user-attachments\/files\/21004164\/data.json) file.\n2. Run the following code which should work correctly:\n```\nfrom datasets import load_dataset\nload_dataset(\"json\", data_files=\"data.json\", split=\"train\")\n```\n3. Change extension of the `data` file to `.jsonl` and run:\n```\nfrom datasets import load_dataset\nload_dataset(\"json\", data_files=\"data.jsonl\", split=\"train\")\n```\n\nThis will trigger an error like the one in the attached [stack_trace.txt](https:\/\/github.com\/user-attachments\/files\/21004153\/stack_trace.txt).\n\nOne can also try removing fields before the `body` field and after it. These actions give different errors.\n\n\n### Expected behavior\n\nParsing data in `.jsonl` format should yield the same result as parsing the same data in `.json` format. In any case, the content of a string field should never be interpreted as part of the dataset schema.\n\n### Environment info\n\ndatasets version: _3.6.0_\npyarrow version: _20.0.0_\nPython version: _3.11.9_\nplatform version: _macOS-15.5-arm64-arm-64bit_","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7664\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7664\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7663","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7663\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7663\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7663\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7663","id":3192582371,"node_id":"PR_kwDODunzps6c6aJF","number":7663,"title":"Custom metadata filenames","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-07-01T13:50:36Z","updated_at":"2025-07-01T13:58:41Z","closed_at":"2025-07-01T13:58:39Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7663","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7663","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7663.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7663.patch","merged_at":"2025-07-01T13:58:39Z"},"body":"example: https:\/\/huggingface.co\/datasets\/lhoestq\/overlapping-subsets-imagefolder\/tree\/main\r\n\r\nTo make multiple subsets for an imagefolder (one metadata file per subset), e.g.\r\n\r\n```yaml\r\nconfigs:\r\n - config_name: default\r\n metadata_filenames:\r\n - metadata.csv\r\n - config_name: other\r\n metadata_filenames:\r\n - metadata2.csv\r\n```","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7663\/reactions","total_count":1,"+1":0,"-1":0,"laugh":0,"hooray":1,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7663\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7662","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7662\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7662\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7662\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7662","id":3190805531,"node_id":"I_kwDODunzps6-L9Qb","number":7662,"title":"Applying map after transform with multiprocessing will cause OOM","user":{"login":"JunjieLl","id":26482910,"node_id":"MDQ6VXNlcjI2NDgyOTEw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/26482910?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/JunjieLl","html_url":"https:\/\/github.com\/JunjieLl","followers_url":"https:\/\/api.github.com\/users\/JunjieLl\/followers","following_url":"https:\/\/api.github.com\/users\/JunjieLl\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/JunjieLl\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/JunjieLl\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/JunjieLl\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/JunjieLl\/orgs","repos_url":"https:\/\/api.github.com\/users\/JunjieLl\/repos","events_url":"https:\/\/api.github.com\/users\/JunjieLl\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/JunjieLl\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2025-07-01T05:45:57Z","updated_at":"2025-07-10T06:17:40Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI have a 30TB dataset. When I perform add_column and cast_column operations on it and then execute a multiprocessing map, it results in an OOM (Out of Memory) error. However, if I skip the add_column and cast_column steps and directly run the map, there is no OOM. After debugging step by step, I found that the OOM is caused at this point, and I suspect it\u2019s because the add_column and cast_column operations are not cached, which causes the entire dataset to be loaded in each subprocess, leading to the OOM. The critical line of code is: https:\/\/github.com\/huggingface\/datasets\/blob\/e71b0b19d79c7531f9b9bea7c09916b5f6157f42\/src\/datasets\/utils\/py_utils.py#L607\n\n\nNote num_process=1 would not cause OOM. I'm confused.\n\n### Steps to reproduce the bug\n\nFor reproduce, you can load dataset and set cache_dir (for caching): amphion\/Emilia-Dataset which is a veru large datasets that RAM can not fits.\nAnd apply the map with multiprocessing after a transform operation (e.g. add_column, cast_column).\nAs long as num_process>1, it must cause OOM.\n\n### Expected behavior\n\nIt should not cause OOM.\n\n### Environment info\n\n- `datasets` version: 3.6.0\n- Platform: Linux-5.10.134-16.101.al8.x86_64-x86_64-with-glibc2.35\n- Python version: 3.10.12\n- `huggingface_hub` version: 0.33.1\n- PyArrow version: 20.0.0\n- Pandas version: 2.3.0\n- `fsspec` version: 2024.6.1","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7662\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7662\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7661","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7661\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7661\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7661\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7661","id":3190408237,"node_id":"PR_kwDODunzps6czBDi","number":7661,"title":"fix del tqdm lock error","user":{"login":"Hypothesis-Z","id":44766273,"node_id":"MDQ6VXNlcjQ0NzY2Mjcz","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/44766273?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Hypothesis-Z","html_url":"https:\/\/github.com\/Hypothesis-Z","followers_url":"https:\/\/api.github.com\/users\/Hypothesis-Z\/followers","following_url":"https:\/\/api.github.com\/users\/Hypothesis-Z\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Hypothesis-Z\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Hypothesis-Z\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Hypothesis-Z\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Hypothesis-Z\/orgs","repos_url":"https:\/\/api.github.com\/users\/Hypothesis-Z\/repos","events_url":"https:\/\/api.github.com\/users\/Hypothesis-Z\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Hypothesis-Z\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-07-01T02:04:02Z","updated_at":"2025-08-13T13:16:44Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7661","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7661","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7661.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7661.patch","merged_at":null},"body":"fixes https:\/\/github.com\/huggingface\/datasets\/issues\/7660","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7661\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7661\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7660","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7660\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7660\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7660\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7660","id":3189028251,"node_id":"I_kwDODunzps6-FLWb","number":7660,"title":"AttributeError: type object 'tqdm' has no attribute '_lock'","user":{"login":"Hypothesis-Z","id":44766273,"node_id":"MDQ6VXNlcjQ0NzY2Mjcz","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/44766273?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Hypothesis-Z","html_url":"https:\/\/github.com\/Hypothesis-Z","followers_url":"https:\/\/api.github.com\/users\/Hypothesis-Z\/followers","following_url":"https:\/\/api.github.com\/users\/Hypothesis-Z\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Hypothesis-Z\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Hypothesis-Z\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Hypothesis-Z\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Hypothesis-Z\/orgs","repos_url":"https:\/\/api.github.com\/users\/Hypothesis-Z\/repos","events_url":"https:\/\/api.github.com\/users\/Hypothesis-Z\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Hypothesis-Z\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-06-30T15:57:16Z","updated_at":"2025-07-03T15:14:27Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\n`AttributeError: type object 'tqdm' has no attribute '_lock'`\n\nIt occurs when I'm trying to load datasets in thread pool.\n\nIssue https:\/\/github.com\/huggingface\/datasets\/issues\/6066 and PR https:\/\/github.com\/huggingface\/datasets\/pull\/6067 https:\/\/github.com\/huggingface\/datasets\/pull\/6068 tried to fix this. \n\n\n### Steps to reproduce the bug\n\nWill have to try several times to reproduce the error because it is concerned with threads.\n \n1. save some datasets for test\n```pythonfrom datasets import Dataset, DatasetDict\nimport os\n\nos.makedirs(\"test_dataset_shards\", exist_ok=True)\n\nfor i in range(10):\n data = Dataset.from_dict({\"text\": [f\"example {j}\" for j in range(1000000)]})\n data = DatasetDict({'train': data})\n data.save_to_disk(f\"test_dataset_shards\/shard_{i}\")\n```\n\n2. load them in a thread pool \n```python\nfrom datasets import load_from_disk\nfrom tqdm import tqdm\nfrom concurrent.futures import ThreadPoolExecutor, as_completed\nimport glob\n\ndatas = glob.glob('test_dataset_shards\/shard_*')\nwith ThreadPoolExecutor(max_workers=10) as pool:\n futures = [pool.submit(load_from_disk, it) for it in datas]\ndatas = []\nfor future in tqdm(as_completed(futures), total=len(futures)):\n datas.append(future.result())\n```\n\n### Expected behavior\n\nno exception raised\n\n### Environment info\n\ndatasets==2.19.0\npython==3.10","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7660\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7660\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7659","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7659\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7659\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7659\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7659","id":3187882217,"node_id":"PR_kwDODunzps6cqkou","number":7659,"title":"Update the beans dataset link in Preprocess","user":{"login":"HJassar","id":5434867,"node_id":"MDQ6VXNlcjU0MzQ4Njc=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/5434867?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/HJassar","html_url":"https:\/\/github.com\/HJassar","followers_url":"https:\/\/api.github.com\/users\/HJassar\/followers","following_url":"https:\/\/api.github.com\/users\/HJassar\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/HJassar\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/HJassar\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/HJassar\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/HJassar\/orgs","repos_url":"https:\/\/api.github.com\/users\/HJassar\/repos","events_url":"https:\/\/api.github.com\/users\/HJassar\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/HJassar\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-06-30T09:58:44Z","updated_at":"2025-07-07T08:38:19Z","closed_at":"2025-07-01T14:01:42Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7659","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7659","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7659.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7659.patch","merged_at":"2025-07-01T14:01:42Z"},"body":"In the Preprocess tutorial, the to \"the beans dataset\" is incorrect. Fixed.","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7659\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7659\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7658","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7658\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7658\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7658\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7658","id":3187800504,"node_id":"PR_kwDODunzps6cqTMs","number":7658,"title":"Fix: Prevent loss of info.features and column_names in IterableDatasetDict.map when features is None","user":{"login":"ArjunJagdale","id":142811259,"node_id":"U_kgDOCIMgew","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/142811259?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ArjunJagdale","html_url":"https:\/\/github.com\/ArjunJagdale","followers_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/followers","following_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/orgs","repos_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/repos","events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2025-06-30T09:31:12Z","updated_at":"2025-07-01T16:26:30Z","closed_at":"2025-07-01T16:26:12Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7658","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7658","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7658.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7658.patch","merged_at":null},"body":"This PR fixes a bug where calling `IterableDatasetDict.map()` or `IterableDataset.map()` with the default `features=None` argument would overwrite the existing `info.features` attribute with `None`. This, in turn, caused the resulting dataset to lose its schema, breaking downstream usage of attributes like `column_names`.\r\n\r\nWhy\r\nPreviously, the code would always set `info.features = features`, even if `features` was `None`. When mapping with removal of columns or other transformations, this led to the destruction of the schema and caused failures in code that relied on the dataset schema being present.\r\n\r\nHow\r\nWe now update `info.features` only if `features` is not `None`. This preserves the original schema unless the user explicitly provides a new one.\r\n\r\nReference\r\nFixes #7568","closed_by":{"login":"ArjunJagdale","id":142811259,"node_id":"U_kgDOCIMgew","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/142811259?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ArjunJagdale","html_url":"https:\/\/github.com\/ArjunJagdale","followers_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/followers","following_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/orgs","repos_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/repos","events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7658\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7658\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7657","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7657\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7657\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7657\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7657","id":3186036016,"node_id":"PR_kwDODunzps6cks2E","number":7657,"title":"feat: add subset_name as alias for name in load_dataset","user":{"login":"ArjunJagdale","id":142811259,"node_id":"U_kgDOCIMgew","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/142811259?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ArjunJagdale","html_url":"https:\/\/github.com\/ArjunJagdale","followers_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/followers","following_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/orgs","repos_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/repos","events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-06-29T10:39:00Z","updated_at":"2025-07-18T17:45:41Z","closed_at":null,"author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7657","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7657","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7657.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7657.patch","merged_at":null},"body":"fixes #7637\r\n\r\nThis PR introduces subset_name as a user-facing alias for the name (previously `config_name`) argument in load_dataset. It aligns terminology with the Hugging Face Hub UI (which shows \u201cSubset\u201d), reducing confusion for new users.\r\n\r\nSupports `subset_name` in `load_dataset()`\r\n\r\nAdds `.subset_name` property to DatasetBuilder\r\n\r\nMaintains full backward compatibility\r\n\r\nRaises clear error if name and `subset_name` conflict","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7657\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7657\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7656","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7656\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7656\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7656\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7656","id":3185865686,"node_id":"PR_kwDODunzps6ckPHc","number":7656,"title":"fix(iterable): ensure MappedExamplesIterable supports state_dict for resume","user":{"login":"ArjunJagdale","id":142811259,"node_id":"U_kgDOCIMgew","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/142811259?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ArjunJagdale","html_url":"https:\/\/github.com\/ArjunJagdale","followers_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/followers","following_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/orgs","repos_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/repos","events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-06-29T07:50:13Z","updated_at":"2025-06-29T07:50:13Z","closed_at":null,"author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7656","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7656","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7656.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7656.patch","merged_at":null},"body":"Fixes #7630\r\n\r\n### Problem\r\nWhen calling `.map()` on an `IterableDataset`, resuming from a checkpoint skips a large number of samples. This is because `MappedExamplesIterable` did not implement `state_dict()` or `load_state_dict()`, so checkpointing was not properly delegated to the underlying iterable.\r\n\r\n### What This PR Does\r\nThis patch adds:\r\n```python\r\ndef state_dict(self):\r\n return self.ex_iterable.state_dict()\r\n\r\ndef load_state_dict(self, state):\r\n self.ex_iterable.load_state_dict(state)\r\n```\r\n\r\nto MappedExamplesIterable, so the wrapped base iterable's state can be saved and restored as expected.\r\n\r\nResult\r\nUsing .map() no longer causes sample skipping after checkpoint resume.\r\n\r\nLet me know if a dedicated test case is required \u2014 happy to add one!","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7656\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7656\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7655","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7655\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7655\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7655\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7655","id":3185382105,"node_id":"PR_kwDODunzps6ci9oi","number":7655,"title":"Added specific use cases in Improve Performace","user":{"login":"ArjunJagdale","id":142811259,"node_id":"U_kgDOCIMgew","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/142811259?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ArjunJagdale","html_url":"https:\/\/github.com\/ArjunJagdale","followers_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/followers","following_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/orgs","repos_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/repos","events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-06-28T19:00:32Z","updated_at":"2025-06-28T19:00:32Z","closed_at":null,"author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7655","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7655","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7655.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7655.patch","merged_at":null},"body":"Fixes #2494","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7655\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7655\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7654","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7654\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7654\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7654\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7654","id":3184770992,"node_id":"PR_kwDODunzps6chPmz","number":7654,"title":"fix(load): strip deprecated use_auth_token from config_kwargs","user":{"login":"ArjunJagdale","id":142811259,"node_id":"U_kgDOCIMgew","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/142811259?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ArjunJagdale","html_url":"https:\/\/github.com\/ArjunJagdale","followers_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/followers","following_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/orgs","repos_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/repos","events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-06-28T09:20:21Z","updated_at":"2025-06-28T09:20:21Z","closed_at":null,"author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7654","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7654","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7654.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7654.patch","merged_at":null},"body":"Fixes #7504\r\n\r\nThis PR resolves a compatibility error when loading datasets via `load_dataset()` using outdated arguments like `use_auth_token`.\r\n\r\n**What was happening:**\r\nUsers passing `use_auth_token` in `load_dataset(..., use_auth_token=...)` encountered a `ValueError`: BuilderConfig ParquetConfig(...) doesn't have a 'use_auth_token' key.\r\n\r\n**Why:**\r\n`use_auth_token` has been deprecated and removed from config definitions (replaced by `token`), but the `load_dataset()` function still forwarded it via `**config_kwargs` to BuilderConfigs, leading to unrecognized key errors.\r\n\r\n**Fix:**\r\nWe now intercept and strip `use_auth_token` from `config_kwargs` inside `load_dataset`, replacing it with a warning:\r\n```python\r\nif \"use_auth_token\" in config_kwargs:\r\n logger.warning(\"The 'use_auth_token' argument is deprecated. Please use 'token' instead.\")\r\n config_kwargs.pop(\"use_auth_token\")\r\n\r\n```\r\nThis ensures legacy compatibility while guiding users to switch to the token argument.\r\n\r\nLet me know if you'd prefer a deprecation error instead of a warning. Thanks!","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7654\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7654\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7653","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7653\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7653\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7653\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7653","id":3184746093,"node_id":"PR_kwDODunzps6chLmb","number":7653,"title":"feat(load): fallback to `load_from_disk()` when loading a saved dataset directory","user":{"login":"ArjunJagdale","id":142811259,"node_id":"U_kgDOCIMgew","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/142811259?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ArjunJagdale","html_url":"https:\/\/github.com\/ArjunJagdale","followers_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/followers","following_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/orgs","repos_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/repos","events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-06-28T08:47:36Z","updated_at":"2025-06-28T08:47:36Z","closed_at":null,"author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7653","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7653","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7653.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7653.patch","merged_at":null},"body":"### Related Issue\r\n\r\nFixes #7503 \r\nPartially addresses #5044 by allowing `load_dataset()` to auto-detect and gracefully delegate to `load_from_disk()` for locally saved datasets.\r\n\r\n---\r\n\r\n### What does this PR do?\r\n\r\nThis PR introduces a minimal fallback mechanism in `load_dataset()` that detects when the provided `path` points to a dataset saved using `save_to_disk()`, and automatically redirects to `load_from_disk()`.\r\n\r\n#### \ud83d\udc1b Before (unexpected metadata-only rows):\r\n\r\n```python\r\nds = load_dataset(\"\/path\/to\/saved_dataset\")\r\n# \u2192 returns rows with only internal metadata (_data_files, _fingerprint, etc.)\r\n````\r\n\r\n#### \u2705 After (graceful fallback):\r\n\r\n```python\r\nds = load_dataset(\"\/path\/to\/saved_dataset\")\r\n# \u2192 logs a warning and internally switches to load_from_disk()\r\n```\r\n\r\n---\r\n\r\n### Why is this useful?\r\n\r\n* Prevents confusion when reloading local datasets saved via `save_to_disk()`.\r\n* Enables smoother compatibility with frameworks (e.g., TRL, `lighteval`) that rely on `load_dataset()` calls.\r\n* Fully backward-compatible \u2014 hub-based loading, custom builders, and streaming remain untouched.\r\n","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7653\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7653\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7652","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7652\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7652\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7652\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7652","id":3183372055,"node_id":"PR_kwDODunzps6cdCnv","number":7652,"title":"Add columns support to JSON loader for selective key filtering","user":{"login":"ArjunJagdale","id":142811259,"node_id":"U_kgDOCIMgew","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/142811259?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ArjunJagdale","html_url":"https:\/\/github.com\/ArjunJagdale","followers_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/followers","following_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/orgs","repos_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/repos","events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2025-06-27T16:18:42Z","updated_at":"2025-08-13T13:22:17Z","closed_at":null,"author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7652","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7652","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7652.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7652.patch","merged_at":null},"body":"Fixes #7594 \r\nThis PR adds support for filtering specific columns when loading datasets from .json or .jsonl files \u2014 similar to how the columns=... argument works for Parquet.\r\n\r\nAs suggested, support for the `columns=...` argument (previously available for Parquet) has now been extended to **JSON and JSONL** loading via `load_dataset(...)`. You can now load only specific keys\/columns and skip the rest \u2014 which should help in cases where some fields are unclean, inconsistent, or just unnecessary.\r\n\r\n### Example:\r\n\r\n```python\r\nfrom datasets import load_dataset\r\n\r\ndataset = load_dataset(\"json\", data_files=\"your_data.jsonl\", columns=[\"id\", \"title\"])\r\nprint(dataset[\"train\"].column_names)\r\n# Output: ['id', 'title']\r\n```\r\n\r\n### Summary of changes:\r\n\r\n* Added `columns: Optional[List[str]]` to `JsonConfig`\r\n* Updated `_generate_tables()` to filter selected columns\r\n* Forwarded `columns` argument from `load_dataset()` to the config\r\n* Added test for validation(should be fine!)\r\n\r\nLet me know if you'd like the same to be added for CSV or others as a follow-up \u2014 happy to help.","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7652\/reactions","total_count":1,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7652\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7651","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7651\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7651\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7651\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7651","id":3182792775,"node_id":"PR_kwDODunzps6cbMmg","number":7651,"title":"fix: Extended metadata file names for folder_based_builder","user":{"login":"iPieter","id":6965756,"node_id":"MDQ6VXNlcjY5NjU3NTY=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/6965756?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/iPieter","html_url":"https:\/\/github.com\/iPieter","followers_url":"https:\/\/api.github.com\/users\/iPieter\/followers","following_url":"https:\/\/api.github.com\/users\/iPieter\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/iPieter\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/iPieter\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/iPieter\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/iPieter\/orgs","repos_url":"https:\/\/api.github.com\/users\/iPieter\/repos","events_url":"https:\/\/api.github.com\/users\/iPieter\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/iPieter\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-06-27T13:12:11Z","updated_at":"2025-06-30T08:19:37Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7651","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7651","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7651.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7651.patch","merged_at":null},"body":"Fixes #7650.\r\n\r\nThe metadata files generated by the `DatasetDict.save_to_file` function are not included in the folder_based_builder's metadata list, causing issues when only 1 actual data file is present, as described in issue #7650.\r\n\r\nThis PR adds these filenames to the builder, allowing correct loading.","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7651\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7651\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7650","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7650\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7650\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7650\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7650","id":3182745315,"node_id":"I_kwDODunzps69tNbj","number":7650,"title":"`load_dataset` defaults to json file format for datasets with 1 shard","user":{"login":"iPieter","id":6965756,"node_id":"MDQ6VXNlcjY5NjU3NTY=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/6965756?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/iPieter","html_url":"https:\/\/github.com\/iPieter","followers_url":"https:\/\/api.github.com\/users\/iPieter\/followers","following_url":"https:\/\/api.github.com\/users\/iPieter\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/iPieter\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/iPieter\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/iPieter\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/iPieter\/orgs","repos_url":"https:\/\/api.github.com\/users\/iPieter\/repos","events_url":"https:\/\/api.github.com\/users\/iPieter\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/iPieter\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-06-27T12:54:25Z","updated_at":"2025-06-27T12:54:25Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI currently have multiple datasets (train+validation) saved as 50MB shards. For one dataset the validation pair is small enough to fit into a single shard and this apparently causes problems when loading the dataset. I created the datasets using a DatasetDict, saved them as 50MB arrow files for streaming and then load each dataset. I have no problem loading any of the other datasets with more than 1 arrow file\/shard. \n\nThe error indicates the training set got loaded in arrow format (correct) and the validation set in json (incorrect). This seems to be because some of the metadata files are considered as dataset files. \n```\nError loading \/nfs\/dataset_pt-uk: Couldn't infer the same data file format for all splits. Got {NamedSplit('train'): ('arrow', {}), NamedSplit('validation'): ('json', {})} \n```\n\n![Image](https:\/\/github.com\/user-attachments\/assets\/f6e7596a-dd53-46a9-9a23-4e9cac2ac049)\n\nConcretely, there is a mismatch between the metadata created by the `DatasetDict.save_to_file` and the builder for `datasets.load_dataset`:\n\nhttps:\/\/github.com\/huggingface\/datasets\/blob\/e71b0b19d79c7531f9b9bea7c09916b5f6157f42\/src\/datasets\/data_files.py#L107\n\nThe `folder_based_builder` lists all files and with 1 arrow file the json files (that are actually metadata) are in the majority.\nhttps:\/\/github.com\/huggingface\/datasets\/blob\/e71b0b19d79c7531f9b9bea7c09916b5f6157f42\/src\/datasets\/packaged_modules\/folder_based_builder\/folder_based_builder.py#L58\n\n### Steps to reproduce the bug\n\nCreate a dataset with metadata and 1 arrow file in validation and multiple arrow files in the training set, following the above description. In my case, I saved the files via:\n\n```python\n dataset = DatasetDict({\n 'train': train_dataset,\n 'validation': val_dataset\n })\n \n dataset.save_to_disk(output_path, max_shard_size=\"50MB\")\n```\n\n### Expected behavior\n\nThe dataset would get loaded.\n\n### Environment info\n\n- `datasets` version: 3.6.0\n- Platform: Linux-6.14.0-22-generic-x86_64-with-glibc2.41\n- Python version: 3.12.7\n- `huggingface_hub` version: 0.31.1\n- PyArrow version: 18.1.0\n- Pandas version: 2.2.3\n- `fsspec` version: 2024.6.1","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7650\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7650\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7649","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7649\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7649\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7649\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7649","id":3181481444,"node_id":"PR_kwDODunzps6cW0sQ","number":7649,"title":"Enable parallel shard upload in push_to_hub() using num_proc","user":{"login":"ArjunJagdale","id":142811259,"node_id":"U_kgDOCIMgew","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/142811259?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ArjunJagdale","html_url":"https:\/\/github.com\/ArjunJagdale","followers_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/followers","following_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/orgs","repos_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/repos","events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-06-27T05:59:03Z","updated_at":"2025-07-07T18:13:53Z","closed_at":"2025-07-07T18:13:52Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7649","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7649","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7649.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7649.patch","merged_at":null},"body":"Fixes #7591\r\n\r\n### Add num_proc support to `push_to_hub()` for parallel shard upload\r\n\r\nThis PR adds support for parallel upload of dataset shards via the `num_proc` argument in `Dataset.push_to_hub()`.\r\n\r\n\ud83d\udccc While the `num_proc` parameter was already present in the `push_to_hub()` signature and correctly passed to `_push_parquet_shards_to_hub()`, it was not being used to parallelize the upload.\r\n\r\n\ud83d\udd27 This PR updates the internal `_push_parquet_shards_to_hub()` function to:\r\n\r\n- Use `multiprocessing.Pool` and `iflatmap_unordered()` for concurrent shard upload when `num_proc > 1`\r\n- Preserve original serial upload behavior if `num_proc` is `None` or \u2264 1\r\n- Keep tqdm progress and commit behavior unchanged\r\n\r\nLet me know if any test coverage or further changes are needed!\r\n","closed_by":{"login":"ArjunJagdale","id":142811259,"node_id":"U_kgDOCIMgew","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/142811259?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ArjunJagdale","html_url":"https:\/\/github.com\/ArjunJagdale","followers_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/followers","following_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/orgs","repos_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/repos","events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7649\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7649\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7648","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7648\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7648\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7648\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7648","id":3181409736,"node_id":"PR_kwDODunzps6cWmSn","number":7648,"title":"Fix misleading add_column() usage example in docstring","user":{"login":"ArjunJagdale","id":142811259,"node_id":"U_kgDOCIMgew","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/142811259?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ArjunJagdale","html_url":"https:\/\/github.com\/ArjunJagdale","followers_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/followers","following_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/orgs","repos_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/repos","events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2025-06-27T05:27:04Z","updated_at":"2025-07-28T19:42:34Z","closed_at":"2025-07-17T13:14:17Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7648","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7648","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7648.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7648.patch","merged_at":"2025-07-17T13:14:17Z"},"body":"Fixes #7611\r\n\r\nThis PR fixes the usage example in the Dataset.add_column() docstring, which previously implied that add_column() modifies the dataset in-place.\r\n\r\nWhy:\r\nThe method returns a new dataset with the additional column, and users must assign the result to a variable to preserve the change.\r\n\r\nThis should make the behavior clearer for users.\r\n@lhoestq @davanstrien ","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7648\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7648\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7647","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7647\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7647\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7647\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7647","id":3178952517,"node_id":"I_kwDODunzps69evdF","number":7647,"title":"loading mozilla-foundation--common_voice_11_0 fails","user":{"login":"pavel-esir","id":5703039,"node_id":"MDQ6VXNlcjU3MDMwMzk=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/5703039?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/pavel-esir","html_url":"https:\/\/github.com\/pavel-esir","followers_url":"https:\/\/api.github.com\/users\/pavel-esir\/followers","following_url":"https:\/\/api.github.com\/users\/pavel-esir\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/pavel-esir\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/pavel-esir\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/pavel-esir\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/pavel-esir\/orgs","repos_url":"https:\/\/api.github.com\/users\/pavel-esir\/repos","events_url":"https:\/\/api.github.com\/users\/pavel-esir\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/pavel-esir\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-06-26T12:23:48Z","updated_at":"2025-07-10T14:49:30Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nHello everyone,\n\ni am trying to load `mozilla-foundation--common_voice_11_0` and it fails. Reproducer \n\n```\nimport datasets\ndatasets.load_dataset(\"mozilla-foundation\/common_voice_11_0\", \"en\", split=\"test\", streaming=True, trust_remote_code=True)\n```\nand it fails with\n```\nFile ~\/opt\/envs\/...\/lib\/python3.10\/site-packages\/datasets\/utils\/file_utils.py:827, in _add_retries_to_file_obj_read_method..read_with_retries(*args, **kwargs)\n 825 for retry in range(1, max_retries + 1):\n 826 try:\n--> 827 out = read(*args, **kwargs)\n 828 break\n 829 except (\n 830 _AiohttpClientError,\n 831 asyncio.TimeoutError,\n 832 requests.exceptions.ConnectionError,\n 833 requests.exceptions.Timeout,\n 834 ) as err:\n\nFile \/usr\/lib\/python3.10\/codecs.py:322, in BufferedIncrementalDecoder.decode(self, input, final)\n 319 def decode(self, input, final=False):\n 320 # decode input (taking the buffer into account)\n 321 data = self.buffer + input\n--> 322 (result, consumed) = self._buffer_decode(data, self.errors, final)\n 323 # keep undecoded input until the next call\n 324 self.buffer = data[consumed:]\n\nUnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte\n```\nWhen i remove streaming then everything is good but i need `streaming=True`\n\n### Steps to reproduce the bug\n\n```\nimport datasets\ndatasets.load_dataset(\"mozilla-foundation\/common_voice_11_0\", \"en\", split=\"test\", streaming=True, trust_remote_code=True)\n```\n\n### Expected behavior\n\nExpected that it will download dataset\n\n### Environment info\n\ndatasets==3.6.0 \npython3.10\non all platforms linux\/win\/mac","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7647\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7647\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7646","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7646\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7646\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7646\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7646","id":3178036854,"node_id":"PR_kwDODunzps6cLhrM","number":7646,"title":"Introduces automatic subset-level grouping for folder-based dataset builders #7066","user":{"login":"ArjunJagdale","id":142811259,"node_id":"U_kgDOCIMgew","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/142811259?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ArjunJagdale","html_url":"https:\/\/github.com\/ArjunJagdale","followers_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/followers","following_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/orgs","repos_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/repos","events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2025-06-26T07:01:37Z","updated_at":"2025-07-14T10:42:56Z","closed_at":null,"author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7646","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7646","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7646.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7646.patch","merged_at":null},"body":"Fixes #7066\r\nThis PR introduces automatic **subset-level grouping** for folder-based dataset builders by:\r\n\r\n1. Adding a utility function `group_files_by_subset()` that clusters files by root name (ignoring digits and shard suffixes).\r\n2. Integrating this logic into `FolderBasedBuilder._split_generators()` to yield one split per subset.\r\n3. Adding unit tests for the grouping function.\r\n4. Updating the documentation to describe this new behavior under `docs\/source\/repository_structure.mdx`.\r\n\r\n---\r\n\r\n### Motivation\r\n\r\nDatasets with files like:\r\n```\r\n\r\ntrain0.jsonl\r\ntrain1.jsonl\r\nanimals.jsonl\r\nmetadata.jsonl\r\n\r\n```\r\n\r\nwill now be **automatically grouped** as:\r\n- `\"train\"` subset \u2192 `train0.jsonl`, `train1.jsonl`\r\n- `\"animals\"` subset \u2192 `animals.jsonl`\r\n- `\"metadata\"` subset \u2192 `metadata.jsonl`\r\n\r\nThis enables structured multi-subset loading even when the dataset doesn't follow traditional `train\/validation\/test` split conventions.\r\n\r\n---\r\n\r\n### Files Changed\r\n\r\n- `src\/datasets\/data_files.py`: added `group_files_by_subset()` utility\r\n- `src\/datasets\/packaged_modules\/folder_based_builder\/folder_based_builder.py`: grouped files before yielding splits\r\n- `tests\/test_data_files.py`: added unit test `test_group_files_by_subset`\r\n- `docs\/source\/repository_structure.mdx`: documented subset grouping for maintainers and users\r\n\r\n---\r\n\r\n### Benefits\r\n\r\n- More flexible and robust dataset split logic\r\n- Enables logical grouping of user-uploaded files without nested folder structure\r\n- Backward-compatible with all existing folder-based configs\r\n\r\n---\r\n\r\nReady for review \u2705","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7646\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7646\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7645","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7645\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7645\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7645\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7645","id":3176810164,"node_id":"PR_kwDODunzps6cHkp-","number":7645,"title":"`ClassLabel` docs: Correct value for unknown labels","user":{"login":"l-uuz","id":56924246,"node_id":"MDQ6VXNlcjU2OTI0MjQ2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/56924246?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/l-uuz","html_url":"https:\/\/github.com\/l-uuz","followers_url":"https:\/\/api.github.com\/users\/l-uuz\/followers","following_url":"https:\/\/api.github.com\/users\/l-uuz\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/l-uuz\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/l-uuz\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/l-uuz\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/l-uuz\/orgs","repos_url":"https:\/\/api.github.com\/users\/l-uuz\/repos","events_url":"https:\/\/api.github.com\/users\/l-uuz\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/l-uuz\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-06-25T20:01:35Z","updated_at":"2025-06-25T20:01:35Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7645","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7645","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7645.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7645.patch","merged_at":null},"body":"This small change fixes the documentation to to be compliant with what happens in `encode_example`.\r\nhttps:\/\/github.com\/huggingface\/datasets\/blob\/e71b0b19d79c7531f9b9bea7c09916b5f6157f42\/src\/datasets\/features\/features.py#L1126-L1129","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7645\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7645\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7644","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7644\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7644\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7644\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7644","id":3176363492,"node_id":"PR_kwDODunzps6cGGfW","number":7644,"title":"fix sequence ci","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-06-25T17:07:55Z","updated_at":"2025-06-25T17:10:30Z","closed_at":"2025-06-25T17:08:01Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7644","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7644","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7644.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7644.patch","merged_at":"2025-06-25T17:08:01Z"},"body":"fix error from https:\/\/github.com\/huggingface\/datasets\/pull\/7643","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7644\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7644\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7643","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7643\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7643\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7643\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7643","id":3176354431,"node_id":"PR_kwDODunzps6cGEeK","number":7643,"title":"Backward compat sequence instance","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-06-25T17:05:09Z","updated_at":"2025-06-25T17:07:40Z","closed_at":"2025-06-25T17:05:44Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7643","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7643","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7643.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7643.patch","merged_at":"2025-06-25T17:05:43Z"},"body":"useful to still get `isinstance(Sequence(Value(\"int64\")), Sequence)`for downstream libs like evaluate","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7643\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7643\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7642","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7642\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7642\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7642\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7642","id":3176025890,"node_id":"PR_kwDODunzps6cE_Wr","number":7642,"title":"fix length for ci","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-06-25T15:10:38Z","updated_at":"2025-06-25T15:11:53Z","closed_at":"2025-06-25T15:11:51Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7642","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7642","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7642.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7642.patch","merged_at":"2025-06-25T15:11:51Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7642\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7642\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7641","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7641\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7641\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7641\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7641","id":3175953405,"node_id":"PR_kwDODunzps6cEwUl","number":7641,"title":"update docs and docstrings","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-06-25T14:48:58Z","updated_at":"2025-06-25T14:51:46Z","closed_at":"2025-06-25T14:49:33Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7641","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7641","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7641.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7641.patch","merged_at":"2025-06-25T14:49:33Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7641\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7641\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7640","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7640\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7640\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7640\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7640","id":3175914924,"node_id":"PR_kwDODunzps6cEofU","number":7640,"title":"better features repr","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-06-25T14:37:32Z","updated_at":"2025-06-25T14:46:47Z","closed_at":"2025-06-25T14:46:45Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7640","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7640","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7640.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7640.patch","merged_at":"2025-06-25T14:46:45Z"},"body":"following the addition of List in #7634 \r\n\r\nbefore:\r\n\r\n```python\r\nIn [3]: ds.features\r\nOut[3]: \r\n{'json': {'id': Value(dtype='string', id=None),\r\n 'metadata:transcript': [{'end': Value(dtype='float64', id=None),\r\n 'start': Value(dtype='float64', id=None),\r\n 'transcript': Value(dtype='string', id=None),\r\n 'words': [{'end': Value(dtype='float64', id=None),\r\n 'score': Value(dtype='float64', id=None),\r\n 'start': Value(dtype='float64', id=None),\r\n 'word': Value(dtype='string', id=None)}]}],\r\n 'metadata:vad': [{'end': Value(dtype='float64', id=None),\r\n 'start': Value(dtype='float64', id=None)}]},\r\n 'mp4': Value(dtype='binary', id=None),\r\n 'npz': {'boxes_and_keypoints:box': Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None),\r\n 'boxes_and_keypoints:is_valid_box': Sequence(feature=Value(dtype='bool', id=None), length=-1, id=None),\r\n 'boxes_and_keypoints:keypoints': Sequence(feature=Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None), length=-1, id=None),\r\n 'movement:EmotionArousalToken': Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None),\r\n 'movement:EmotionValenceToken': Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None),\r\n 'movement:FAUToken': Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None),\r\n 'movement:FAUValue': Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None),\r\n 'movement:alignment_head_rotation': Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None),\r\n 'movement:alignment_translation': Sequence(feature=Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None), length=-1, id=None),\r\n 'movement:emotion_arousal': Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None),\r\n 'movement:emotion_scores': Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None),\r\n 'movement:emotion_valence': Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None),\r\n 'movement:expression': Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None),\r\n 'movement:frame_latent': Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None),\r\n 'movement:gaze_encodings': Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None),\r\n 'movement:head_encodings': Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None),\r\n 'movement:hypernet_features': Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None),\r\n 'movement:is_valid': Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None),\r\n 'smplh:body_pose': Sequence(feature=Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None), length=-1, id=None),\r\n 'smplh:global_orient': Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None),\r\n 'smplh:is_valid': Sequence(feature=Value(dtype='bool', id=None), length=-1, id=None),\r\n 'smplh:left_hand_pose': Sequence(feature=Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None), length=-1, id=None),\r\n 'smplh:right_hand_pose': Sequence(feature=Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None), length=-1, id=None),\r\n 'smplh:translation': Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None)},\r\n 'wav': Audio(sampling_rate=None, mono=True, decode=True, id=None),\r\n '__key__': Value(dtype='string', id=None),\r\n '__url__': Value(dtype='string', id=None)}\r\n```\r\n\r\nafter:\r\n\r\n```python\r\nIn [3]: ds.features\r\nOut[3]: \r\n{'json': {'id': Value('string'),\r\n 'metadata:transcript': List({'end': Value('float64'), 'start': Value('float64'), 'transcript': Value('string'), 'words': List({'end': Value('float64'), 'score': Value('float64'), 'start': Value('float64'), 'word': Value('string')})}),\r\n 'metadata:vad': List({'end': Value('float64'), 'start': Value('float64')})},\r\n 'mp4': Value('binary'),\r\n 'npz': {'boxes_and_keypoints:box': List(List(Value('float32'))),\r\n 'boxes_and_keypoints:is_valid_box': List(Value('bool')),\r\n 'boxes_and_keypoints:keypoints': List(List(List(Value('float32')))),\r\n 'movement:EmotionArousalToken': List(List(Value('float32'))),\r\n 'movement:EmotionValenceToken': List(List(Value('float32'))),\r\n 'movement:FAUToken': List(List(Value('float32'))),\r\n 'movement:FAUValue': List(List(Value('float32'))),\r\n 'movement:alignment_head_rotation': List(List(Value('float32'))),\r\n 'movement:alignment_translation': List(List(List(Value('float32')))),\r\n 'movement:emotion_arousal': List(List(Value('float32'))),\r\n 'movement:emotion_scores': List(List(Value('float32'))),\r\n 'movement:emotion_valence': List(List(Value('float32'))),\r\n 'movement:expression': List(List(Value('float32'))),\r\n 'movement:frame_latent': List(List(Value('float32'))),\r\n 'movement:gaze_encodings': List(List(Value('float32'))),\r\n 'movement:head_encodings': List(List(Value('float32'))),\r\n 'movement:hypernet_features': List(List(Value('float32'))),\r\n 'movement:is_valid': List(List(Value('float32'))),\r\n 'smplh:body_pose': List(List(List(Value('float32')))),\r\n 'smplh:global_orient': List(List(Value('float32'))),\r\n 'smplh:is_valid': List(Value('bool')),\r\n 'smplh:left_hand_pose': List(List(List(Value('float32')))),\r\n 'smplh:right_hand_pose': List(List(List(Value('float32')))),\r\n 'smplh:translation': List(List(Value('float32')))},\r\n 'wav': Audio(sampling_rate=None, decode=True, stream_index=None),\r\n '__key__': Value('string'),\r\n '__url__': Value('string')}\r\n```","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7640\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7640\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7639","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7639\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7639\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7639\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7639","id":3175616169,"node_id":"PR_kwDODunzps6cDoAf","number":7639,"title":"fix save_infos","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-06-25T13:16:26Z","updated_at":"2025-06-25T13:19:33Z","closed_at":"2025-06-25T13:16:33Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7639","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7639","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7639.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7639.patch","merged_at":"2025-06-25T13:16:33Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7639\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7639\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7638","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7638\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7638\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7638\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7638","id":3172645391,"node_id":"PR_kwDODunzps6b5vpZ","number":7638,"title":"Add ignore_decode_errors option to Image feature for robust decoding #7612","user":{"login":"ArjunJagdale","id":142811259,"node_id":"U_kgDOCIMgew","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/142811259?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ArjunJagdale","html_url":"https:\/\/github.com\/ArjunJagdale","followers_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/followers","following_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/orgs","repos_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/repos","events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2025-06-24T16:47:51Z","updated_at":"2025-07-04T07:07:30Z","closed_at":null,"author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7638","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7638","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7638.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7638.patch","merged_at":null},"body":"This PR implements support for robust image decoding in the `Image` feature, as discussed in issue #7612.\r\n\r\n## \ud83d\udd27 What was added\r\n- A new boolean field: `ignore_decode_errors` (default: `False`)\r\n- If set to `True`, any exceptions during decoding will be caught, and `None` will be returned instead of raising an error\r\n\r\n```python\r\nfeatures = Features({\r\n \"image\": Image(decode=True, ignore_decode_errors=True),\r\n})\r\n````\r\n\r\nThis enables robust iteration over potentially corrupted datasets \u2014 especially useful when streaming datasets like WebDataset or image-heavy public sets where sample corruption is common.\r\n\r\n## \ud83e\uddea Behavior\r\n\r\n* If `ignore_decode_errors=False` (default), decoding behaves exactly as before\r\n* If `True`, decoding errors are caught, and a warning is emitted:\r\n\r\n ```\r\n [Image.decode_example] Skipped corrupted image: ...\r\n ```\r\n\r\n## \ud83e\uddf5 Linked issue\r\n\r\nCloses #7612\r\n\r\nLet me know if you'd like a follow-up test PR. Happy to write one!","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7638\/reactions","total_count":1,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7638\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7637","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7637\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7637\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7637\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7637","id":3171883522,"node_id":"I_kwDODunzps69DxoC","number":7637,"title":"Introduce subset_name as an alias of config_name","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2025-06-24T12:49:01Z","updated_at":"2025-07-01T16:08:33Z","closed_at":null,"author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nAdd support for `subset_name` as an alias for `config_name` in the datasets library and related tools (such as loading scripts, documentation, and metadata).\n\n### Motivation\n\nThe Hugging Face Hub dataset viewer displays a column named **\"Subset\"**, which refers to what is currently technically called config_name in the datasets library. This inconsistency has caused confusion for many users, especially those unfamiliar with the internal terminology.\n\nI have repeatedly received questions from users trying to understand what \"config\" means, and why it doesn\u2019t match what they see as \"subset\" on the Hub. Renaming everything to `subset_name` might be too disruptive, but introducing subset_name as a clear alias for config_name could significantly improve user experience without breaking backward compatibility.\n\nThis change would:\n- Align terminology across the Hub UI and datasets codebase\n- Reduce user confusion, especially for newcomers\n- Make documentation and examples more intuitive\n","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7637\/reactions","total_count":2,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":1,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7637\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7737","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7737\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7737\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7737\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7737","id":3318670801,"node_id":"PR_kwDODunzps6jf5io","number":7737,"title":"docs: Add column overwrite example to batch mapping guide","user":{"login":"Sanjaykumar030","id":183703408,"node_id":"U_kgDOCvMXcA","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/183703408?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Sanjaykumar030","html_url":"https:\/\/github.com\/Sanjaykumar030","followers_url":"https:\/\/api.github.com\/users\/Sanjaykumar030\/followers","following_url":"https:\/\/api.github.com\/users\/Sanjaykumar030\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Sanjaykumar030\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Sanjaykumar030\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Sanjaykumar030\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Sanjaykumar030\/orgs","repos_url":"https:\/\/api.github.com\/users\/Sanjaykumar030\/repos","events_url":"https:\/\/api.github.com\/users\/Sanjaykumar030\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Sanjaykumar030\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-08-13T14:20:19Z","updated_at":"2025-08-13T14:20:19Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7737","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7737","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7737.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7737.patch","merged_at":null},"body":"This PR adds a complementary example showing the **column-overwriting** pattern, which is both more direct and more flexible for many transformations.\r\n\r\n### Proposed Change\r\n\r\nThe original `remove_columns` example remains untouched. Below it, this PR introduces an alternative approach that overwrites an existing column during batch mapping.\r\n\r\nThis teaches users a core `.map()` capability for in-place transformations without extra intermediate steps.\r\n\r\n**New Example:**\r\n\r\n> ```python\r\n> >>> from datasets import Dataset\r\n> >>> dataset = Dataset.from_dict({\"a\": [0, 1, 2]})\r\n> # Overwrite \"a\" directly to duplicate each value\r\n> >>> duplicated_dataset = dataset.map(\r\n> ... lambda batch: {\"a\": [x for x in batch[\"a\"] for _ in range(2)]},\r\n> ... batched=True\r\n> ... )\r\n> >>> duplicated_dataset\r\n> Dataset({\r\n> features: ['a'],\r\n> num_rows: 6\r\n> })\r\n> >>> duplicated_dataset[\"a\"]\r\n> [0, 0, 1, 1, 2, 2]\r\n> ```\r\n","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7737\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7737\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7736","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7736\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7736\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7736\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7736","id":3311618096,"node_id":"PR_kwDODunzps6jIWQ3","number":7736,"title":"Fix type hint `train_test_split`","user":{"login":"qgallouedec","id":45557362,"node_id":"MDQ6VXNlcjQ1NTU3MzYy","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/45557362?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/qgallouedec","html_url":"https:\/\/github.com\/qgallouedec","followers_url":"https:\/\/api.github.com\/users\/qgallouedec\/followers","following_url":"https:\/\/api.github.com\/users\/qgallouedec\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/qgallouedec\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/qgallouedec\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/qgallouedec\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/qgallouedec\/orgs","repos_url":"https:\/\/api.github.com\/users\/qgallouedec\/repos","events_url":"https:\/\/api.github.com\/users\/qgallouedec\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/qgallouedec\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-08-11T20:46:53Z","updated_at":"2025-08-13T13:13:50Z","closed_at":"2025-08-13T13:13:48Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7736","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7736","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7736.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7736.patch","merged_at":"2025-08-13T13:13:48Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7736\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7736\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7735","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7735\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7735\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7735\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7735","id":3310514828,"node_id":"PR_kwDODunzps6jEq5w","number":7735,"title":"fix largelist repr","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-08-11T15:17:42Z","updated_at":"2025-08-11T15:39:56Z","closed_at":"2025-08-11T15:39:54Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7735","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7735","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7735.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7735.patch","merged_at":"2025-08-11T15:39:54Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7735\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7735\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7734","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7734\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7734\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7734\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7734","id":3306519239,"node_id":"PR_kwDODunzps6i4pmA","number":7734,"title":"Fixing __getitem__ of datasets which behaves inconsistent to documentation when setting _format_type to None","user":{"login":"awagen","id":40367113,"node_id":"MDQ6VXNlcjQwMzY3MTEz","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/40367113?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/awagen","html_url":"https:\/\/github.com\/awagen","followers_url":"https:\/\/api.github.com\/users\/awagen\/followers","following_url":"https:\/\/api.github.com\/users\/awagen\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/awagen\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/awagen\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/awagen\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/awagen\/orgs","repos_url":"https:\/\/api.github.com\/users\/awagen\/repos","events_url":"https:\/\/api.github.com\/users\/awagen\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/awagen\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-08-09T15:52:54Z","updated_at":"2025-08-13T13:10:14Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7734","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7734","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7734.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7734.patch","merged_at":null},"body":"Setting _format_type to None, should return plain python object but as of 4.0.0 returns Column. This fails in libs such as sentencetransformers (such as in generation of hard negatives) where plain python is expected.","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7734\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7734\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7733","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7733\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7733\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7733\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7733","id":3304979299,"node_id":"I_kwDODunzps7E_ftj","number":7733,"title":"Dataset Repo Paths to Locally Stored Images Not Being Appended to Image Path","user":{"login":"dennys246","id":27898715,"node_id":"MDQ6VXNlcjI3ODk4NzE1","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/27898715?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/dennys246","html_url":"https:\/\/github.com\/dennys246","followers_url":"https:\/\/api.github.com\/users\/dennys246\/followers","following_url":"https:\/\/api.github.com\/users\/dennys246\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/dennys246\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/dennys246\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/dennys246\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/dennys246\/orgs","repos_url":"https:\/\/api.github.com\/users\/dennys246\/repos","events_url":"https:\/\/api.github.com\/users\/dennys246\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/dennys246\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-08-08T19:10:58Z","updated_at":"2025-08-12T00:54:58Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI\u2019m not sure if this is a bug or a feature and I just don\u2019t fully understand how dataset loading is to work, but it appears there may be a bug with how locally stored Image() are being accessed. I\u2019ve uploaded a new dataset to hugging face (rmdig\/rocky_mountain_snowpack) but I\u2019ve come into a ton of trouble trying to have the images handled properly (at least in the way I\u2019d expect them to be handled). \n\nI find that I cannot use relative paths for loading images remotely from the Hugging Face repo or from a local repository. Any time I do it always simply appends my current working directory to the dataset. As a result to use the datasets library with my dataset I have to change my working directory to the dataset folder or abandon the dataset object structure, which I cannot imagine you intended. As a result I have to use URL\u2019s since an absolute path on my system obviously wouldn\u2019t work for others. The URL works ok, but despite me having it locally downloaded, it appears to be redownloading the dataset every time I train my snowGAN model on it (and often times I\u2019m coming into HTTPS errors for over requesting the data).\n\nOr maybe image relative paths aren't intended to be loaded directly through your datasets library as images and should be kept as strings for the user to handle? If so I feel like you\u2019re missing out on some pretty seamless functionality\n\n### Steps to reproduce the bug\n\n1. Download a local copy of the dataset (rmdig\/rocky_mountain_snowpack) through git or whatever you prefer.\n2. Alter the README.md YAML for file_path (the relative path to each image) to be type Image instead of type string\n\n`\n---\ndataset_info:\n features:\n - name: image\n dtype: Image\n - name: file_path\n dtype: Image\n`\n\n3. Initialize the dataset locally, make sure your working directory is not the dataset directory root \n\n`dataset = datasets.load_dataset(\u2018path\/to\/local\/rocky_mountain_snowpack\/\u2018)`\n \n4. Call to one of the samples and you\u2019ll get an error that the image was not found in current\/working\/directory\/preprocessed\/cores\/image_1.png. Showing that it\u2019s simply looking in the current working directory + relative path\n\n`\n>>> dataset['train'][0]\nTraceback (most recent call last):\n File \"\", line 1, in \n File \"\/Users\/dennyschaedig\/miniconda3\/lib\/python3.12\/site-packages\/datasets\/arrow_dataset.py\", line 2859, in __getitem__\n return self._getitem(key)\n ^^^^^^^^^^^^^^^^^^\n File \"\/Users\/dennyschaedig\/miniconda3\/lib\/python3.12\/site-packages\/datasets\/arrow_dataset.py\", line 2841, in _getitem\n formatted_output = format_table(\n ^^^^^^^^^^^^^\n File \"\/Users\/dennyschaedig\/miniconda3\/lib\/python3.12\/site-packages\/datasets\/formatting\/formatting.py\", line 657, in format_table\n return formatter(pa_table, query_type=query_type)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"\/Users\/dennyschaedig\/miniconda3\/lib\/python3.12\/site-packages\/datasets\/formatting\/formatting.py\", line 410, in __call__\n return self.format_row(pa_table)\n ^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"\/Users\/dennyschaedig\/miniconda3\/lib\/python3.12\/site-packages\/datasets\/formatting\/formatting.py\", line 459, in format_row\n row = self.python_features_decoder.decode_row(row)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"\/Users\/dennyschaedig\/miniconda3\/lib\/python3.12\/site-packages\/datasets\/formatting\/formatting.py\", line 223, in decode_row\n return self.features.decode_example(row, token_per_repo_id=self.token_per_repo_id) if self.features else row\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"\/Users\/dennyschaedig\/miniconda3\/lib\/python3.12\/site-packages\/datasets\/features\/features.py\", line 2093, in decode_example\n column_name: decode_nested_example(feature, value, token_per_repo_id=token_per_repo_id)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"\/Users\/dennyschaedig\/miniconda3\/lib\/python3.12\/site-packages\/datasets\/features\/features.py\", line 1405, in decode_nested_example\n return schema.decode_example(obj, token_per_repo_id=token_per_repo_id) if obj is not None else None\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"\/Users\/dennyschaedig\/miniconda3\/lib\/python3.12\/site-packages\/datasets\/features\/image.py\", line 171, in decode_example\n image = PIL.Image.open(path)\n ^^^^^^^^^^^^^^^^^^^^\n File \"\/Users\/dennyschaedig\/miniconda3\/lib\/python3.12\/site-packages\/PIL\/Image.py\", line 3277, in open\n fp = builtins.open(filename, \"rb\")\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nFileNotFoundError: [Errno 2] No such file or directory: '\/Users\/dennyschaedig\/Datasets\/preprocessed\/cores\/image_1.png'\n`\n\n### Expected behavior\n\nI expect the datasets and Image() to load the locally hosted data using path\/to\/local\/rocky_mountain_snowpack\/ (that I pass in with my datasets.load_dataset() or the you all handle on the backend) call + relative path. \n\nInstead it appears to load from my current working directory + relative path.\n\n### Environment info\n\nTested on\u2026\n\nWindows 11, Ubuntu Linux 22.04 and Mac Sequoia 15.5 Silicone M2\n\ndatasets version 4.0.0\n\nPython 3.12 and 3.13","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7733\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7733\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7732","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7732\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7732\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7732\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7732","id":3304673383,"node_id":"I_kwDODunzps7E-VBn","number":7732,"title":"webdataset: key errors when `field_name` has upper case characters","user":{"login":"YassineYousfi","id":29985433,"node_id":"MDQ6VXNlcjI5OTg1NDMz","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/29985433?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/YassineYousfi","html_url":"https:\/\/github.com\/YassineYousfi","followers_url":"https:\/\/api.github.com\/users\/YassineYousfi\/followers","following_url":"https:\/\/api.github.com\/users\/YassineYousfi\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/YassineYousfi\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/YassineYousfi\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/YassineYousfi\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/YassineYousfi\/orgs","repos_url":"https:\/\/api.github.com\/users\/YassineYousfi\/repos","events_url":"https:\/\/api.github.com\/users\/YassineYousfi\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/YassineYousfi\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-08-08T16:56:42Z","updated_at":"2025-08-08T16:56:42Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nWhen using a webdataset each sample can be a collection of different \"fields\" \nlike this:\n```\nimages17\/image194.left.jpg\nimages17\/image194.right.jpg\nimages17\/image194.json\nimages17\/image12.left.jpg\nimages17\/image12.right.jpg\nimages17\/image12.json\n```\n\nif the field_name contains upper case characters, the HF webdataset integration throws a key error when trying to load the dataset:\ne.g. from a dataset (now updated so that it doesn't throw this error)\n\n```\n---------------------------------------------------------------------------\nKeyError Traceback (most recent call last)\nCell In[1], line 2\n 1 from datasets import load_dataset\n----> 2 ds = load_dataset(\"commaai\/comma2k19\", data_files={'train': ['data-00000.tar.gz']}, num_proc=1)\n\nFile ~\/xx\/.venv\/lib\/python3.11\/site-packages\/datasets\/load.py:1412, in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, verification_mode, keep_in_memory, save_infos, revision, token, streaming, num_proc, storage_options, **config_kwargs)\n 1409 return builder_instance.as_streaming_dataset(split=split)\n 1411 # Download and prepare data\n-> 1412 builder_instance.download_and_prepare(\n 1413 download_config=download_config,\n 1414 download_mode=download_mode,\n 1415 verification_mode=verification_mode,\n 1416 num_proc=num_proc,\n 1417 storage_options=storage_options,\n 1418 )\n 1420 # Build dataset for splits\n 1421 keep_in_memory = (\n 1422 keep_in_memory if keep_in_memory is not None else is_small_dataset(builder_instance.info.dataset_size)\n 1423 )\n\nFile ~\/xx\/.venv\/lib\/python3.11\/site-packages\/datasets\/builder.py:894, in DatasetBuilder.download_and_prepare(self, output_dir, download_config, download_mode, verification_mode, dl_manager, base_path, file_format, max_shard_size, num_proc, storage_options, **download_and_prepare_kwargs)\n 892 if num_proc is not None:\n 893 prepare_split_kwargs[\"num_proc\"] = num_proc\n--> 894 self._download_and_prepare(\n 895 dl_manager=dl_manager,\n 896 verification_mode=verification_mode,\n 897 **prepare_split_kwargs,\n 898 **download_and_prepare_kwargs,\n 899 )\n 900 # Sync info\n 901 self.info.dataset_size = sum(split.num_bytes for split in self.info.splits.values())\n\nFile ~\/xx\/.venv\/lib\/python3.11\/site-packages\/datasets\/builder.py:1609, in GeneratorBasedBuilder._download_and_prepare(self, dl_manager, verification_mode, **prepare_splits_kwargs)\n 1608 def _download_and_prepare(self, dl_manager, verification_mode, **prepare_splits_kwargs):\n-> 1609 super()._download_and_prepare(\n 1610 dl_manager,\n 1611 verification_mode,\n 1612 check_duplicate_keys=verification_mode == VerificationMode.BASIC_CHECKS\n 1613 or verification_mode == VerificationMode.ALL_CHECKS,\n 1614 **prepare_splits_kwargs,\n 1615 )\n\nFile ~\/xx\/.venv\/lib\/python3.11\/site-packages\/datasets\/builder.py:948, in DatasetBuilder._download_and_prepare(self, dl_manager, verification_mode, **prepare_split_kwargs)\n 946 split_dict = SplitDict(dataset_name=self.dataset_name)\n 947 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)\n--> 948 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)\n 950 # Checksums verification\n 951 if verification_mode == VerificationMode.ALL_CHECKS and dl_manager.record_checksums:\n\nFile ~\/xx\/.venv\/lib\/python3.11\/site-packages\/datasets\/packaged_modules\/webdataset\/webdataset.py:81, in WebDataset._split_generators(self, dl_manager)\n 78 if not self.info.features:\n 79 # Get one example to get the feature types\n 80 pipeline = self._get_pipeline_from_tar(tar_paths[0], tar_iterators[0])\n---> 81 first_examples = list(islice(pipeline, self.NUM_EXAMPLES_FOR_FEATURES_INFERENCE))\n 82 if any(example.keys() != first_examples[0].keys() for example in first_examples):\n 83 raise ValueError(\n 84 \"The TAR archives of the dataset should be in WebDataset format, \"\n 85 \"but the files in the archive don't share the same prefix or the same types.\"\n 86 )\n\nFile ~\/xx\/.venv\/lib\/python3.11\/site-packages\/datasets\/packaged_modules\/webdataset\/webdataset.py:55, in WebDataset._get_pipeline_from_tar(cls, tar_path, tar_iterator)\n 53 data_extension = field_name.split(\".\")[-1]\n 54 if data_extension in cls.DECODERS:\n---> 55 current_example[field_name] = cls.DECODERS[data_extension](current_example[field_name])\n 56 if current_example:\n 57 yield current_example\n\nKeyError: 'processed_log_IMU_magnetometer_value.npy'\n```\n\n### Steps to reproduce the bug\n\nunit test was added in: https:\/\/github.com\/huggingface\/datasets\/pull\/7726\nit fails without the fixed proposed in the same PR\n\n### Expected behavior\n\nNot throwing a key error. \n\n\n### Environment info\n\n```\n- `datasets` version: 4.0.0\n- Platform: Linux-6.8.0-51-generic-x86_64-with-glibc2.39\n- Python version: 3.11.4\n- `huggingface_hub` version: 0.33.4\n- PyArrow version: 21.0.0\n- Pandas version: 2.3.1\n- `fsspec` version: 2025.7.0\n```","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7732\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7732\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7731","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7731\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7731\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7731\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7731","id":3303637075,"node_id":"I_kwDODunzps7E6YBT","number":7731,"title":"Add the possibility of a backend for audio decoding","user":{"login":"intexcor","id":142020129,"node_id":"U_kgDOCHcOIQ","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/142020129?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/intexcor","html_url":"https:\/\/github.com\/intexcor","followers_url":"https:\/\/api.github.com\/users\/intexcor\/followers","following_url":"https:\/\/api.github.com\/users\/intexcor\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/intexcor\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/intexcor\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/intexcor\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/intexcor\/orgs","repos_url":"https:\/\/api.github.com\/users\/intexcor\/repos","events_url":"https:\/\/api.github.com\/users\/intexcor\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/intexcor\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-08-08T11:08:56Z","updated_at":"2025-08-08T11:08:56Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nAdd the possibility of a backend for audio decoding. Before version 4.0.0, soundfile was used, and now torchcodec is used, but the problem is that torchcodec requires ffmpeg, which is problematic to install on the same colab. Therefore, I suggest adding a decoder selection when loading the dataset.\n\n### Motivation\n\nI use a service for training models in which ffmpeg cannot be installed.\n\n### Your contribution\n\nI use a service for training models in which ffmpeg cannot be installed.","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7731\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7731\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7730","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7730\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7730\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7730\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7730","id":3301907242,"node_id":"PR_kwDODunzps6iqTZI","number":7730,"title":"Grammar fix: correct \"showed\" to \"shown\" in fingerprint.py","user":{"login":"brchristian","id":2460418,"node_id":"MDQ6VXNlcjI0NjA0MTg=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/2460418?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/brchristian","html_url":"https:\/\/github.com\/brchristian","followers_url":"https:\/\/api.github.com\/users\/brchristian\/followers","following_url":"https:\/\/api.github.com\/users\/brchristian\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/brchristian\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/brchristian\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/brchristian\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/brchristian\/orgs","repos_url":"https:\/\/api.github.com\/users\/brchristian\/repos","events_url":"https:\/\/api.github.com\/users\/brchristian\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/brchristian\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-08-07T21:22:56Z","updated_at":"2025-08-13T18:34:30Z","closed_at":"2025-08-13T13:12:56Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7730","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7730","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7730.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7730.patch","merged_at":"2025-08-13T13:12:56Z"},"body":"This PR corrects a small grammatical issue in the outputs of fingerprint.py:\r\n\r\n```diff\r\n- \"This warning is only showed once. Subsequent hashing failures won't be showed.\"\r\n+ \"This warning is only shown once. Subsequent hashing failures won't be shown.\"\r\n```\r\n","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7730\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7730\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7729","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7729\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7729\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7729\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7729","id":3300672954,"node_id":"I_kwDODunzps7EvEW6","number":7729,"title":"OSError: libcudart.so.11.0: cannot open shared object file: No such file or directory","user":{"login":"SaleemMalik632","id":115183904,"node_id":"U_kgDOBt2RIA","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/115183904?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/SaleemMalik632","html_url":"https:\/\/github.com\/SaleemMalik632","followers_url":"https:\/\/api.github.com\/users\/SaleemMalik632\/followers","following_url":"https:\/\/api.github.com\/users\/SaleemMalik632\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/SaleemMalik632\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/SaleemMalik632\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/SaleemMalik632\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/SaleemMalik632\/orgs","repos_url":"https:\/\/api.github.com\/users\/SaleemMalik632\/repos","events_url":"https:\/\/api.github.com\/users\/SaleemMalik632\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/SaleemMalik632\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-08-07T14:07:23Z","updated_at":"2025-08-07T14:07:23Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"> Hi is there any solution for that eror i try to install this one \npip install torch==1.12.1+cpu torchaudio==0.12.1+cpu -f https:\/\/download.pytorch.org\/whl\/torch_stable.html \nthis is working fine but tell me how to install pytorch version that is fit for gpu ","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7729\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7729\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7728","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7728\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7728\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7728\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7728","id":3298854904,"node_id":"I_kwDODunzps7EoIf4","number":7728,"title":"NonMatchingSplitsSizesError and ExpectedMoreSplitsError","user":{"login":"efsotr","id":104755879,"node_id":"U_kgDOBj5ypw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/104755879?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/efsotr","html_url":"https:\/\/github.com\/efsotr","followers_url":"https:\/\/api.github.com\/users\/efsotr\/followers","following_url":"https:\/\/api.github.com\/users\/efsotr\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/efsotr\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/efsotr\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/efsotr\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/efsotr\/orgs","repos_url":"https:\/\/api.github.com\/users\/efsotr\/repos","events_url":"https:\/\/api.github.com\/users\/efsotr\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/efsotr\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-08-07T04:04:50Z","updated_at":"2025-08-07T07:31:47Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nWhen loading dataset, the info specified by `data_files` did not overwrite the original info.\n\n\n### Steps to reproduce the bug\n\n```python\nfrom datasets import load_dataset\n\ntraindata = load_dataset(\n \"allenai\/c4\",\n \"en\",\n data_files={\"train\": \"en\/c4-train.00000-of-01024.json.gz\", \n \"validation\": \"en\/c4-validation.00000-of-00008.json.gz\"},\n )\n```\n\n\n```log\nNonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=828589180707, num_examples=364868892, shard_lengths=None, dataset_name=None), 'recorded': SplitInfo(name='train', num_bytes=809262831, num_examples=356317, shard_lengths=[223006, 133311], dataset_name='c4')}, {'expected': SplitInfo(name='validation', num_bytes=825767266, num_examples=364608, shard_lengths=None, dataset_name=None), 'recorded': SplitInfo(name='validation', num_bytes=102199431, num_examples=45576, shard_lengths=None, dataset_name='c4')}]\n```\n\n```python\nfrom datasets import load_dataset\n\ntraindata = load_dataset(\n \"allenai\/c4\",\n \"en\",\n data_files={\"train\": \"en\/c4-train.00000-of-01024.json.gz\"},\n split=\"train\"\n )\n```\n\n```log\nExpectedMoreSplitsError: {'validation'}\n```\n\n### Expected behavior\n\nNo error\n\n### Environment info\n\ndatasets 4.0.0","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7728\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7728\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7727","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7727\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7727\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7727\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7727","id":3295718578,"node_id":"I_kwDODunzps7EcKyy","number":7727,"title":"config paths that start with .\/ are not valid as hf:\/\/ accessed repos, but are valid when accessed locally","user":{"login":"doctorpangloss","id":2229300,"node_id":"MDQ6VXNlcjIyMjkzMDA=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/2229300?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/doctorpangloss","html_url":"https:\/\/github.com\/doctorpangloss","followers_url":"https:\/\/api.github.com\/users\/doctorpangloss\/followers","following_url":"https:\/\/api.github.com\/users\/doctorpangloss\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/doctorpangloss\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/doctorpangloss\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/doctorpangloss\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/doctorpangloss\/orgs","repos_url":"https:\/\/api.github.com\/users\/doctorpangloss\/repos","events_url":"https:\/\/api.github.com\/users\/doctorpangloss\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/doctorpangloss\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-08-06T08:21:37Z","updated_at":"2025-08-06T08:21:37Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\n```\n- config_name: some_config\n data_files:\n - split: train\n path:\n - images\/xyz\/*.jpg\n```\nwill correctly download but\n\n```\n- config_name: some_config\n data_files:\n - split: train\n path:\n - .\/images\/xyz\/*.jpg\n```\nwill error with `FileNotFoundError` due to improper url joining. `load_dataset` on the same directory locally works fine.\n\n### Steps to reproduce the bug\n\n1. create a README.md with the front matter of the form\n\n```\n- config_name: some_config\n data_files:\n - split: train\n path:\n - .\/images\/xyz\/*.jpg\n```\n\n2. `touch .\/images\/xyz\/1.jpg`\n3. Observe this directory loads with `load_dataset(\"filesystem_path\", \"some_config\")` correctly.\n4. Observe exceptions when you load this with `load_dataset(\"repoid\/filesystem_path\", \"some_config\")`\n\n### Expected behavior\n\n`.\/` prefix should be interpreted correctly\n\n### Environment info\n\ndatasets 4.0.0\ndatasets 3.4.0\n\nreproduce","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7727\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7727\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7726","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7726\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7726\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7726\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7726","id":3293789832,"node_id":"PR_kwDODunzps6iO_oF","number":7726,"title":"fix(webdataset): don't .lower() field_name","user":{"login":"YassineYousfi","id":29985433,"node_id":"MDQ6VXNlcjI5OTg1NDMz","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/29985433?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/YassineYousfi","html_url":"https:\/\/github.com\/YassineYousfi","followers_url":"https:\/\/api.github.com\/users\/YassineYousfi\/followers","following_url":"https:\/\/api.github.com\/users\/YassineYousfi\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/YassineYousfi\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/YassineYousfi\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/YassineYousfi\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/YassineYousfi\/orgs","repos_url":"https:\/\/api.github.com\/users\/YassineYousfi\/repos","events_url":"https:\/\/api.github.com\/users\/YassineYousfi\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/YassineYousfi\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-08-05T16:57:09Z","updated_at":"2025-08-13T13:12:22Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7726","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7726","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7726.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7726.patch","merged_at":null},"body":"This fixes cases where keys have upper case identifiers","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7726\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7726\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7724","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7724\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7724\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7724\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7724","id":3292315241,"node_id":"I_kwDODunzps7EPL5p","number":7724,"title":"Can not stepinto load_dataset.py?","user":{"login":"micklexqg","id":13776012,"node_id":"MDQ6VXNlcjEzNzc2MDEy","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/13776012?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/micklexqg","html_url":"https:\/\/github.com\/micklexqg","followers_url":"https:\/\/api.github.com\/users\/micklexqg\/followers","following_url":"https:\/\/api.github.com\/users\/micklexqg\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/micklexqg\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/micklexqg\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/micklexqg\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/micklexqg\/orgs","repos_url":"https:\/\/api.github.com\/users\/micklexqg\/repos","events_url":"https:\/\/api.github.com\/users\/micklexqg\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/micklexqg\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-08-05T09:28:51Z","updated_at":"2025-08-05T09:28:51Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"I set a breakpoint in \"load_dataset.py\" and try to debug my data load codes, but it does not stop at any breakpoints, so \"load_dataset.py\" can not be stepped into ?\n\n","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7724\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7724\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7723","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7723\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7723\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7723\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7723","id":3289943261,"node_id":"I_kwDODunzps7EGIzd","number":7723,"title":"Don't remove `trust_remote_code` arg!!!","user":{"login":"autosquid","id":758925,"node_id":"MDQ6VXNlcjc1ODkyNQ==","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/758925?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/autosquid","html_url":"https:\/\/github.com\/autosquid","followers_url":"https:\/\/api.github.com\/users\/autosquid\/followers","following_url":"https:\/\/api.github.com\/users\/autosquid\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/autosquid\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/autosquid\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/autosquid\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/autosquid\/orgs","repos_url":"https:\/\/api.github.com\/users\/autosquid\/repos","events_url":"https:\/\/api.github.com\/users\/autosquid\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/autosquid\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-08-04T15:42:07Z","updated_at":"2025-08-04T15:42:07Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\ndefaulting it to False is nice balance. we need manully setting it to True in certain scenarios!\n\nAdd `trust_remote_code` arg back please!\n\n### Motivation\n\ndefaulting it to False is nice balance. we need manully setting it to True in certain scenarios!\n\n\n### Your contribution\n\ndefaulting it to False is nice balance. we need manully setting it to True in certain scenarios!\n","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7723\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7723\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7722","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7722\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7722\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7722\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7722","id":3289741064,"node_id":"I_kwDODunzps7EFXcI","number":7722,"title":"Out of memory even though using load_dataset(..., streaming=True)","user":{"login":"padmalcom","id":3961950,"node_id":"MDQ6VXNlcjM5NjE5NTA=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/3961950?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/padmalcom","html_url":"https:\/\/github.com\/padmalcom","followers_url":"https:\/\/api.github.com\/users\/padmalcom\/followers","following_url":"https:\/\/api.github.com\/users\/padmalcom\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/padmalcom\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/padmalcom\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/padmalcom\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/padmalcom\/orgs","repos_url":"https:\/\/api.github.com\/users\/padmalcom\/repos","events_url":"https:\/\/api.github.com\/users\/padmalcom\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/padmalcom\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-08-04T14:41:55Z","updated_at":"2025-08-04T14:41:55Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI am iterating over a large dataset that I load using streaming=True to avoid running out of memory. Unfortunately, I am observing that memory usage increases over time and I'm finally running in an oom.\n\n### Steps to reproduce the bug\n\n```\n ds = load_dataset(\"openslr\/librispeech_asr\", split=\"train.clean.360\", streaming=True)\n for i,sample in enumerate(tqdm(ds)):\n target_file = os.path.join(NSFW_TARGET_FOLDER, f'audio{i}.wav')\n try:\n sf.write(target_file, sample['audio']['array'], samplerate=sample['audio']['sampling_rate'])\n except Exception as e:\n print(f\"Could not write audio {i} in ds: {e}\")\n```\n\n\n### Expected behavior\n\nI'd expect to have a small memory footprint and memory being freed after each iteration of the for loop. Instead the memory usage is increasing. I tried to remove the logic to write the sound file and just print the sample but the issue remains the same.\n\n### Environment info\n\nPython 3.12.11\nUbuntu 24\ndatasets 4.0.0 and 3.6.0","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7722\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7722\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7721","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7721\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7721\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7721\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7721","id":3289426104,"node_id":"I_kwDODunzps7EEKi4","number":7721,"title":"Bad split error message when using percentages","user":{"login":"padmalcom","id":3961950,"node_id":"MDQ6VXNlcjM5NjE5NTA=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/3961950?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/padmalcom","html_url":"https:\/\/github.com\/padmalcom","followers_url":"https:\/\/api.github.com\/users\/padmalcom\/followers","following_url":"https:\/\/api.github.com\/users\/padmalcom\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/padmalcom\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/padmalcom\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/padmalcom\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/padmalcom\/orgs","repos_url":"https:\/\/api.github.com\/users\/padmalcom\/repos","events_url":"https:\/\/api.github.com\/users\/padmalcom\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/padmalcom\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-08-04T13:20:25Z","updated_at":"2025-08-14T14:42:24Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nHi, I'm trying to download a dataset. To not load the entire dataset in memory, I split it as described [here](https:\/\/huggingface.co\/docs\/datasets\/v4.0.0\/loading#slice-splits) in 10% steps.\n\nWhen doing so, the library returns this error:\n raise ValueError(f\"Bad split: {split}. Available splits: {list(splits_generators)}\")\nValueError: Bad split: train[0%:10%]. Available splits: ['train']\n\nEdit: Same happens with a split like _train[:90000]_\n### Steps to reproduce the bug\n\n```\n for split in range(10):\n split_str = f\"train[{split*10}%:{(split+1)*10}%]\"\n print(f\"Processing split {split_str}...\")\n ds = load_dataset(\"user\/dataset\", split=split_str, streaming=True)\n```\n\n\n### Expected behavior\n\nI'd expect the library to split my dataset in 10% steps.\n\n### Environment info\n\npython 3.12.11\nubuntu 24\ndataset 4.0.0","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7721\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7721\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7720","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7720\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7720\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7720\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7720","id":3287150513,"node_id":"I_kwDODunzps7D7e-x","number":7720,"title":"Datasets 4.0 map function causing column not found","user":{"login":"Darejkal","id":55143337,"node_id":"MDQ6VXNlcjU1MTQzMzM3","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/55143337?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Darejkal","html_url":"https:\/\/github.com\/Darejkal","followers_url":"https:\/\/api.github.com\/users\/Darejkal\/followers","following_url":"https:\/\/api.github.com\/users\/Darejkal\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Darejkal\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Darejkal\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Darejkal\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Darejkal\/orgs","repos_url":"https:\/\/api.github.com\/users\/Darejkal\/repos","events_url":"https:\/\/api.github.com\/users\/Darejkal\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Darejkal\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2025-08-03T12:52:34Z","updated_at":"2025-08-07T19:23:34Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nColumn returned after mapping is not found in new instance of the dataset.\n\n### Steps to reproduce the bug\n\nCode for reproduction. After running get_total_audio_length, it is errored out due to `data` not having `duration`\n```\ndef compute_duration(x):\n return {\"duration\": len(x[\"audio\"][\"array\"]) \/ x[\"audio\"][\"sampling_rate\"]}\n\n\ndef get_total_audio_length(dataset):\n data = dataset.map(compute_duration, num_proc=NUM_PROC)\n print(data)\n durations=data[\"duration\"]\n total_seconds = sum(durations)\n return total_seconds\n```\n\n### Expected behavior\n\nNew datasets.Dataset instance should have new columns attached.\n\n### Environment info\n\n- `datasets` version: 4.0.0\n- Platform: Linux-5.4.0-124-generic-x86_64-with-glibc2.31\n- Python version: 3.10.13\n- `huggingface_hub` version: 0.33.2\n- PyArrow version: 20.0.0\n- Pandas version: 2.3.0\n- `fsspec` version: 2023.12.2","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7720\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7720\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7719","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7719\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7719\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7719\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7719","id":3285928491,"node_id":"I_kwDODunzps7D20or","number":7719,"title":"Specify dataset columns types in typehint","user":{"login":"Samoed","id":36135455,"node_id":"MDQ6VXNlcjM2MTM1NDU1","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/36135455?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Samoed","html_url":"https:\/\/github.com\/Samoed","followers_url":"https:\/\/api.github.com\/users\/Samoed\/followers","following_url":"https:\/\/api.github.com\/users\/Samoed\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Samoed\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Samoed\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Samoed\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Samoed\/orgs","repos_url":"https:\/\/api.github.com\/users\/Samoed\/repos","events_url":"https:\/\/api.github.com\/users\/Samoed\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Samoed\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-08-02T13:22:31Z","updated_at":"2025-08-02T13:22:31Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nMake dataset optionaly generic to datasets usage with type annotations like it was done in `torch.Dataloader` https:\/\/github.com\/pytorch\/pytorch\/blob\/134179474539648ba7dee1317959529fbd0e7f89\/torch\/utils\/data\/dataloader.py#L131\n\n### Motivation\n\nIn MTEB we're using a lot of datasets objects, but they're a bit poor in typehints. E.g. we can specify this for dataloder\n\n```python\nfrom typing import TypedDict\nfrom torch.utils.data import DataLoader\n\nclass CorpusInput(TypedDict):\n title: list[str]\n body: list[str]\n\n\nclass QueryInput(TypedDict):\n query: list[str]\n instruction: list[str]\n\ndef queries_loader() -> DataLoader[QueryInput]:\n ...\n\ndef corpus_loader() -> DataLoader[CorpusInput]:\n ...\n```\nBut for datasets we can only specify columns in type in comments \n```python\nfrom datasets import Dataset\n\nQueryDataset = Dataset\n\"\"\"Query dataset should have `query` and `instructions` columns as `str` \"\"\"\n```\n\n### Your contribution\n\nI can create draft implementation","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7719\/reactions","total_count":2,"+1":2,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7719\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7718","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7718\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7718\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7718\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7718","id":3284221177,"node_id":"PR_kwDODunzps6hvJ6R","number":7718,"title":"add support for pyarrow string view in features","user":{"login":"onursatici","id":5051569,"node_id":"MDQ6VXNlcjUwNTE1Njk=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/5051569?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/onursatici","html_url":"https:\/\/github.com\/onursatici","followers_url":"https:\/\/api.github.com\/users\/onursatici\/followers","following_url":"https:\/\/api.github.com\/users\/onursatici\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/onursatici\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/onursatici\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/onursatici\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/onursatici\/orgs","repos_url":"https:\/\/api.github.com\/users\/onursatici\/repos","events_url":"https:\/\/api.github.com\/users\/onursatici\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/onursatici\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-08-01T14:58:39Z","updated_at":"2025-08-13T13:09:44Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7718","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7718","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7718.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7718.patch","merged_at":null},"body":null,"closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7718\/reactions","total_count":3,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":3,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7718\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7717","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7717\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7717\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7717\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7717","id":3282855127,"node_id":"I_kwDODunzps7DrGTX","number":7717,"title":"Cached dataset is not used when explicitly passing the cache_dir parameter","user":{"login":"padmalcom","id":3961950,"node_id":"MDQ6VXNlcjM5NjE5NTA=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/3961950?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/padmalcom","html_url":"https:\/\/github.com\/padmalcom","followers_url":"https:\/\/api.github.com\/users\/padmalcom\/followers","following_url":"https:\/\/api.github.com\/users\/padmalcom\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/padmalcom\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/padmalcom\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/padmalcom\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/padmalcom\/orgs","repos_url":"https:\/\/api.github.com\/users\/padmalcom\/repos","events_url":"https:\/\/api.github.com\/users\/padmalcom\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/padmalcom\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-08-01T07:12:41Z","updated_at":"2025-08-05T19:19:36Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nHi, we are pre-downloading a dataset using snapshot_download(). When loading this exact dataset with load_dataset() the cached snapshot is not used. In both calls, I provide the cache_dir parameter.\n\n### Steps to reproduce the bug\n\n```\nfrom datasets import load_dataset, concatenate_datasets\nfrom huggingface_hub import snapshot_download\n \ndef download_ds(name: str):\n snapshot_download(repo_id=name, repo_type=\"dataset\", cache_dir=\"G:\/Datasets\/cache\")\n\ndef prepare_ds():\n audio_ds = load_dataset(\"openslr\/librispeech_asr\", num_proc=4, cache_dir=\"G:\/Datasets\/cache\")\n print(sfw_ds.features)\n\nif __name__ == '__main__':\n download_ds(\"openslr\/librispeech_asr\")\n prepare_ds()\n```\n\n### Expected behavior\n\nI'd expect that the cached version of the dataset is used. Instead, the same dataset is downloaded again to the default cache directory.\n\n### Environment info\n\nWindows 11\ndatasets==4.0.0\nPython 3.12.11","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7717\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7717\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7716","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7716\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7716\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7716\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7716","id":3281204362,"node_id":"PR_kwDODunzps6hk4Mq","number":7716,"title":"typo","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-07-31T17:14:45Z","updated_at":"2025-07-31T17:17:15Z","closed_at":"2025-07-31T17:14:51Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7716","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7716","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7716.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7716.patch","merged_at":"2025-07-31T17:14:51Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7716\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7716\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7715","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7715\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7715\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7715\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7715","id":3281189955,"node_id":"PR_kwDODunzps6hk1CK","number":7715,"title":"Docs: Use Image(mode=\"F\") for PNG\/JPEG depth maps ","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-07-31T17:09:49Z","updated_at":"2025-07-31T17:12:23Z","closed_at":"2025-07-31T17:10:10Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7715","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7715","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7715.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7715.patch","merged_at":"2025-07-31T17:10:10Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7715\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7715\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7714","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7714\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7714\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7714\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7714","id":3281090499,"node_id":"PR_kwDODunzps6hkfHj","number":7714,"title":"fix num_proc=1 ci test","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-07-31T16:36:32Z","updated_at":"2025-07-31T16:39:03Z","closed_at":"2025-07-31T16:38:03Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7714","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7714","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7714.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7714.patch","merged_at":"2025-07-31T16:38:03Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7714\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7714\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7713","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7713\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7713\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7713\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7713","id":3280813699,"node_id":"PR_kwDODunzps6hjik2","number":7713,"title":"Update cli.mdx to refer to the new \"hf\" CLI","user":{"login":"evalstate","id":1936278,"node_id":"MDQ6VXNlcjE5MzYyNzg=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/1936278?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/evalstate","html_url":"https:\/\/github.com\/evalstate","followers_url":"https:\/\/api.github.com\/users\/evalstate\/followers","following_url":"https:\/\/api.github.com\/users\/evalstate\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/evalstate\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/evalstate\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/evalstate\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/evalstate\/orgs","repos_url":"https:\/\/api.github.com\/users\/evalstate\/repos","events_url":"https:\/\/api.github.com\/users\/evalstate\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/evalstate\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-07-31T15:06:11Z","updated_at":"2025-07-31T16:37:56Z","closed_at":"2025-07-31T16:37:55Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7713","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7713","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7713.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7713.patch","merged_at":"2025-07-31T16:37:55Z"},"body":"Update to refer to `hf auth login`","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7713\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7713\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7712","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7712\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7712\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7712\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7712","id":3280706762,"node_id":"PR_kwDODunzps6hjLF5","number":7712,"title":"Retry intermediate commits too","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-07-31T14:33:33Z","updated_at":"2025-07-31T14:37:43Z","closed_at":"2025-07-31T14:36:43Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7712","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7712","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7712.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7712.patch","merged_at":"2025-07-31T14:36:43Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7712\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7712\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7711","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7711\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7711\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7711\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7711","id":3280471353,"node_id":"PR_kwDODunzps6hiXm0","number":7711,"title":"Update dataset_dict push_to_hub","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-07-31T13:25:03Z","updated_at":"2025-07-31T14:18:55Z","closed_at":"2025-07-31T14:18:53Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7711","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7711","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7711.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7711.patch","merged_at":"2025-07-31T14:18:53Z"},"body":"following https:\/\/github.com\/huggingface\/datasets\/pull\/7708","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7711\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7711\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7710","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7710\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7710\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7710\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7710","id":3279878230,"node_id":"PR_kwDODunzps6hgXxW","number":7710,"title":"Concurrent IterableDataset push_to_hub","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-07-31T10:11:31Z","updated_at":"2025-07-31T10:14:00Z","closed_at":"2025-07-31T10:12:52Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7710","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7710","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7710.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7710.patch","merged_at":"2025-07-31T10:12:52Z"},"body":"Same as https:\/\/github.com\/huggingface\/datasets\/pull\/7708 but for `IterableDataset`","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7710\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7710\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7709","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7709\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7709\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7709\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7709","id":3276677990,"node_id":"I_kwDODunzps7DTiNm","number":7709,"title":"Release 4.0.0 breaks usage patterns of with_format","user":{"login":"wittenator","id":9154515,"node_id":"MDQ6VXNlcjkxNTQ1MTU=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/9154515?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/wittenator","html_url":"https:\/\/github.com\/wittenator","followers_url":"https:\/\/api.github.com\/users\/wittenator\/followers","following_url":"https:\/\/api.github.com\/users\/wittenator\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/wittenator\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/wittenator\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/wittenator\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/wittenator\/orgs","repos_url":"https:\/\/api.github.com\/users\/wittenator\/repos","events_url":"https:\/\/api.github.com\/users\/wittenator\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/wittenator\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-07-30T11:34:53Z","updated_at":"2025-08-07T08:27:18Z","closed_at":"2025-08-07T08:27:18Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nPreviously it was possible to access a whole column that was e.g. in numpy format via `with_format` by indexing the column. Now this possibility seems to be gone with the new Column() class. As far as I see, this makes working on a whole column (in-memory) more complex, i.e. normalizing an in-memory dataset for which iterating would be too slow. Is this intended behaviour? I couldn't find much documentation on the intended usage of the new Column class yet.\n\n### Steps to reproduce the bug\n\nSteps to reproduce:\n```\nfrom datasets import load_dataset\ndataset = load_dataset(\"lhoestq\/demo1\")\ndataset = dataset.with_format(\"numpy\")\nprint(dataset[\"star\"].ndim)\n```\n\n### Expected behavior\n\nWorking on whole columns should be possible.\n\n### Environment info\n\n- `datasets` version: 4.0.0\n- Platform: Linux-6.8.0-63-generic-x86_64-with-glibc2.36\n- Python version: 3.12.11\n- `huggingface_hub` version: 0.34.3\n- PyArrow version: 21.0.0\n- Pandas version: 2.3.1\n- `fsspec` version: 2025.3.0","closed_by":{"login":"wittenator","id":9154515,"node_id":"MDQ6VXNlcjkxNTQ1MTU=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/9154515?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/wittenator","html_url":"https:\/\/github.com\/wittenator","followers_url":"https:\/\/api.github.com\/users\/wittenator\/followers","following_url":"https:\/\/api.github.com\/users\/wittenator\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/wittenator\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/wittenator\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/wittenator\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/wittenator\/orgs","repos_url":"https:\/\/api.github.com\/users\/wittenator\/repos","events_url":"https:\/\/api.github.com\/users\/wittenator\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/wittenator\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7709\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7709\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7708","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7708\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7708\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7708\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7708","id":3273614584,"node_id":"PR_kwDODunzps6hLVip","number":7708,"title":"Concurrent push_to_hub","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-07-29T13:14:30Z","updated_at":"2025-07-31T10:00:50Z","closed_at":"2025-07-31T10:00:49Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7708","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7708","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7708.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7708.patch","merged_at":"2025-07-31T10:00:49Z"},"body":"Retry the step that (download + update + upload) the README.md using `create_commit(..., parent_commit=...)` if there was a commit in the meantime. This should enable concurrent `push_to_hub()` since it won't overwrite the README.md metadata anymore.\r\n\r\nNote: we fixed an issue server side to make this work:\r\n\r\n
\r\n\r\nDO NOT MERGE FOR NOW since it seems there is one bug that prevents this logic from working:\r\n\r\nI'm using parent_commit to enable concurrent push_to_hub() in datasets for a retry mechanism, but for some reason I always run into a weird situation.\r\nSometimes create_commit(.., parent_commit=...) returns error 500 but the commit did happen on the Hub side without respecting parent_commit\r\n\r\ne.g. request id\r\n```\r\nhuggingface_hub.errors.HfHubHTTPError: 500 Server Error: Internal Server Error for url: https:\/\/huggingface.co\/api\/datasets\/lhoestq\/tmp\/commit\/main (Request ID: Root=1-6888d8af-2ce517bc60c69cb378b51526;d1b17993-c5d0-4ccd-9926-060c45f9ed61)\r\n```\r\n\r\nfix coming in [internal](https:\/\/github.com\/huggingface-internal\/moon-landing\/pull\/14617)\r\n\r\n<\/details>\r\n\r\nclose https:\/\/github.com\/huggingface\/datasets\/issues\/7600","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7708\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7708\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7707","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7707\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7707\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7707\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7707","id":3271867998,"node_id":"I_kwDODunzps7DBL5e","number":7707,"title":"load_dataset() in 4.0.0 failed when decoding audio","user":{"login":"jiqing-feng","id":107918818,"node_id":"U_kgDOBm614g","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/107918818?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/jiqing-feng","html_url":"https:\/\/github.com\/jiqing-feng","followers_url":"https:\/\/api.github.com\/users\/jiqing-feng\/followers","following_url":"https:\/\/api.github.com\/users\/jiqing-feng\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/jiqing-feng\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/jiqing-feng\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/jiqing-feng\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/jiqing-feng\/orgs","repos_url":"https:\/\/api.github.com\/users\/jiqing-feng\/repos","events_url":"https:\/\/api.github.com\/users\/jiqing-feng\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/jiqing-feng\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2025-07-29T03:25:03Z","updated_at":"2025-08-01T05:15:45Z","closed_at":"2025-08-01T05:15:45Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nCannot decode audio data.\n\n\n\n### Steps to reproduce the bug\n\n```python\nfrom datasets import load_dataset\n\ndataset = load_dataset(\"hf-internal-testing\/librispeech_asr_demo\", \"clean\", split=\"validation\")\nprint(dataset[0][\"audio\"][\"array\"])\n```\n\n1st round run, got\n```\n File \"\/usr\/local\/lib\/python3.12\/dist-packages\/datasets\/features\/audio.py\", line 172, in decode_example\n raise ImportError(\"To support decoding audio data, please install 'torchcodec'.\")\nImportError: To support decoding audio data, please install 'torchcodec'.\n```\n\nAfter `pip install torchcodec` and run, got\n```\n File \"\/usr\/local\/lib\/python3.12\/dist-packages\/torchcodec\/_core\/_metadata.py\", line 16, in \n from torchcodec._core.ops import (\n File \"\/usr\/local\/lib\/python3.12\/dist-packages\/torchcodec\/_core\/ops.py\", line 84, in \n load_torchcodec_shared_libraries()\n File \"\/usr\/local\/lib\/python3.12\/dist-packages\/torchcodec\/_core\/ops.py\", line 69, in load_torchcodec_shared_libraries\n raise RuntimeError(\nRuntimeError: Could not load libtorchcodec. Likely causes:\n 1. FFmpeg is not properly installed in your environment. We support\n versions 4, 5, 6 and 7.\n 2. The PyTorch version (2.8.0a0+5228986c39.nv25.06) is not compatible with\n this version of TorchCodec. Refer to the version compatibility\n table:\n https:\/\/github.com\/pytorch\/torchcodec?tab=readme-ov-file#installing-torchcodec.\n 3. Another runtime dependency; see exceptions below.\n The following exceptions were raised as we tried to load libtorchcodec:\n\n[start of libtorchcodec loading traceback]\nFFmpeg version 7: libavutil.so.59: cannot open shared object file: No such file or directory\nFFmpeg version 6: libavutil.so.58: cannot open shared object file: No such file or directory\nFFmpeg version 5: libavutil.so.57: cannot open shared object file: No such file or directory\nFFmpeg version 4: libavutil.so.56: cannot open shared object file: No such file or directory\n[end of libtorchcodec loading traceback].\n```\n\nAfter `apt update && apt install ffmpeg -y`, got\n```\nTraceback (most recent call last):\n File \"\/workspace\/jiqing\/test_datasets.py\", line 4, in \n print(dataset[0][\"audio\"][\"array\"])\n ~~~~~~~^^^\n File \"\/usr\/local\/lib\/python3.12\/dist-packages\/datasets\/arrow_dataset.py\", line 2859, in __getitem__\n return self._getitem(key)\n ^^^^^^^^^^^^^^^^^^\n File \"\/usr\/local\/lib\/python3.12\/dist-packages\/datasets\/arrow_dataset.py\", line 2841, in _getitem\n formatted_output = format_table(\n ^^^^^^^^^^^^^\n File \"\/usr\/local\/lib\/python3.12\/dist-packages\/datasets\/formatting\/formatting.py\", line 657, in format_table\n return formatter(pa_table, query_type=query_type)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"\/usr\/local\/lib\/python3.12\/dist-packages\/datasets\/formatting\/formatting.py\", line 410, in __call__\n return self.format_row(pa_table)\n ^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"\/usr\/local\/lib\/python3.12\/dist-packages\/datasets\/formatting\/formatting.py\", line 459, in format_row\n row = self.python_features_decoder.decode_row(row)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"\/usr\/local\/lib\/python3.12\/dist-packages\/datasets\/formatting\/formatting.py\", line 223, in decode_row\n return self.features.decode_example(row, token_per_repo_id=self.token_per_repo_id) if self.features else row\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"\/usr\/local\/lib\/python3.12\/dist-packages\/datasets\/features\/features.py\", line 2093, in decode_example\n column_name: decode_nested_example(feature, value, token_per_repo_id=token_per_repo_id)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"\/usr\/local\/lib\/python3.12\/dist-packages\/datasets\/features\/features.py\", line 1405, in decode_nested_example\n return schema.decode_example(obj, token_per_repo_id=token_per_repo_id) if obj is not None else None\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"\/usr\/local\/lib\/python3.12\/dist-packages\/datasets\/features\/audio.py\", line 198, in decode_example\n audio = AudioDecoder(bytes, stream_index=self.stream_index, sample_rate=self.sampling_rate)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"\/usr\/local\/lib\/python3.12\/dist-packages\/torchcodec\/decoders\/_audio_decoder.py\", line 62, in __init__\n self._decoder = create_decoder(source=source, seek_mode=\"approximate\")\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"\/usr\/local\/lib\/python3.12\/dist-packages\/torchcodec\/decoders\/_decoder_utils.py\", line 33, in create_decoder\n return core.create_from_bytes(source, seek_mode)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"\/usr\/local\/lib\/python3.12\/dist-packages\/torchcodec\/_core\/ops.py\", line 144, in create_from_bytes\n return create_from_tensor(buffer, seek_mode)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"\/usr\/local\/lib\/python3.12\/dist-packages\/torch\/_ops.py\", line 756, in __call__\n return self._op(*args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^\nNotImplementedError: Could not run 'torchcodec_ns::create_from_tensor' with arguments from the 'CPU' backend. This could be because the operator doesn't exist for this backend, or was omitted during the selective\/custom build process (if using custom build). If you are a Facebook employee using PyTorch on mobile, please visit https:\/\/fburl.com\/ptmfixes for possible resolutions. 'torchcodec_ns::create_from_tensor' is only available for these backends: [Meta, BackendSelect, Python, FuncTorchDynamicLayerBackMode, Functionalize, Named, Conjugate, Negative, ZeroTensor, ADInplaceOrView, AutogradOther, AutogradCPU, AutogradCUDA, AutogradXLA, AutogradMPS, AutogradXPU, AutogradHPU, AutogradLazy, AutogradMTIA, AutogradMAIA, AutogradMeta, Tracer, AutocastCPU, AutocastMTIA, AutocastMAIA, AutocastXPU, AutocastMPS, AutocastCUDA, FuncTorchBatched, BatchedNestedTensor, FuncTorchVmapMode, Batched, VmapMode, FuncTorchGradWrapper, PythonTLSSnapshot, FuncTorchDynamicLayerFrontMode, PreDispatch, PythonDispatcher].\n\nMeta: registered at \/dev\/null:214 [kernel]\nBackendSelect: fallthrough registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/core\/BackendSelectFallbackKernel.cpp:3 [backend fallback]\nPython: registered at \/__w\/torchcodec\/torchcodec\/pytorch\/torchcodec\/src\/torchcodec\/_core\/custom_ops.cpp:694 [kernel]\nFuncTorchDynamicLayerBackMode: registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/functorch\/DynamicLayer.cpp:479 [backend fallback]\nFunctionalize: registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/FunctionalizeFallbackKernel.cpp:349 [backend fallback]\nNamed: registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/core\/NamedRegistrations.cpp:7 [backend fallback]\nConjugate: registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/ConjugateFallback.cpp:17 [backend fallback]\nNegative: registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/native\/NegateFallback.cpp:18 [backend fallback]\nZeroTensor: registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/ZeroTensorFallback.cpp:86 [backend fallback]\nADInplaceOrView: fallthrough registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/core\/VariableFallbackKernel.cpp:104 [backend fallback]\nAutogradOther: registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/core\/VariableFallbackKernel.cpp:63 [backend fallback]\nAutogradCPU: registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/core\/VariableFallbackKernel.cpp:67 [backend fallback]\nAutogradCUDA: registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/core\/VariableFallbackKernel.cpp:75 [backend fallback]\nAutogradXLA: registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/core\/VariableFallbackKernel.cpp:87 [backend fallback]\nAutogradMPS: registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/core\/VariableFallbackKernel.cpp:95 [backend fallback]\nAutogradXPU: registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/core\/VariableFallbackKernel.cpp:71 [backend fallback]\nAutogradHPU: registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/core\/VariableFallbackKernel.cpp:108 [backend fallback]\nAutogradLazy: registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/core\/VariableFallbackKernel.cpp:91 [backend fallback]\nAutogradMTIA: registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/core\/VariableFallbackKernel.cpp:79 [backend fallback]\nAutogradMAIA: registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/core\/VariableFallbackKernel.cpp:83 [backend fallback]\nAutogradMeta: registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/core\/VariableFallbackKernel.cpp:99 [backend fallback]\nTracer: registered at \/opt\/pytorch\/pytorch\/torch\/csrc\/autograd\/TraceTypeManual.cpp:294 [backend fallback]\nAutocastCPU: fallthrough registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/autocast_mode.cpp:322 [backend fallback]\nAutocastMTIA: fallthrough registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/autocast_mode.cpp:466 [backend fallback]\nAutocastMAIA: fallthrough registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/autocast_mode.cpp:504 [backend fallback]\nAutocastXPU: fallthrough registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/autocast_mode.cpp:542 [backend fallback]\nAutocastMPS: fallthrough registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/autocast_mode.cpp:209 [backend fallback]\nAutocastCUDA: fallthrough registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/autocast_mode.cpp:165 [backend fallback]\nFuncTorchBatched: registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/functorch\/LegacyBatchingRegistrations.cpp:731 [backend fallback]\nBatchedNestedTensor: registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/functorch\/LegacyBatchingRegistrations.cpp:758 [backend fallback]\nFuncTorchVmapMode: fallthrough registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/functorch\/VmapModeRegistrations.cpp:27 [backend fallback]\nBatched: registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/LegacyBatchingRegistrations.cpp:1075 [backend fallback]\nVmapMode: fallthrough registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/VmapModeRegistrations.cpp:33 [backend fallback]\nFuncTorchGradWrapper: registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/functorch\/TensorWrapper.cpp:208 [backend fallback]\nPythonTLSSnapshot: registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/core\/PythonFallbackKernel.cpp:202 [backend fallback]\nFuncTorchDynamicLayerFrontMode: registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/functorch\/DynamicLayer.cpp:475 [backend fallback]\nPreDispatch: registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/core\/PythonFallbackKernel.cpp:206 [backend fallback]\nPythonDispatcher: registered at \/opt\/pytorch\/pytorch\/aten\/src\/ATen\/core\/PythonFallbackKernel.cpp:198 [backend fallback]\n```\n\n### Expected behavior\n\nThe result is \n```\n[0.00238037 0.0020752 0.00198364 ... 0.00042725 0.00057983 0.0010376 ]\n```\non `datasets==3.6.0`\n\n### Environment info\n\n[NV official docker image](https:\/\/catalog.ngc.nvidia.com\/orgs\/nvidia\/containers\/pytorch): `nvcr.io\/nvidia\/pytorch:25.06-py3` \n\n```\n- `datasets` version: 4.0.0\n- Platform: Linux-5.4.292-1.el8.elrepo.x86_64-x86_64-with-glibc2.39\n- Python version: 3.12.3\n- `huggingface_hub` version: 0.34.2\n- PyArrow version: 19.0.1\n- Pandas version: 2.2.3\n- `fsspec` version: 2025.3.0\n```","closed_by":{"login":"jiqing-feng","id":107918818,"node_id":"U_kgDOBm614g","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/107918818?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/jiqing-feng","html_url":"https:\/\/github.com\/jiqing-feng","followers_url":"https:\/\/api.github.com\/users\/jiqing-feng\/followers","following_url":"https:\/\/api.github.com\/users\/jiqing-feng\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/jiqing-feng\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/jiqing-feng\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/jiqing-feng\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/jiqing-feng\/orgs","repos_url":"https:\/\/api.github.com\/users\/jiqing-feng\/repos","events_url":"https:\/\/api.github.com\/users\/jiqing-feng\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/jiqing-feng\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7707\/reactions","total_count":1,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7707\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7706","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7706\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7706\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7706\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7706","id":3271129240,"node_id":"PR_kwDODunzps6hC5uD","number":7706,"title":"Reimplemented partial split download support (revival of #6832)","user":{"login":"ArjunJagdale","id":142811259,"node_id":"U_kgDOCIMgew","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/142811259?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ArjunJagdale","html_url":"https:\/\/github.com\/ArjunJagdale","followers_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/followers","following_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/orgs","repos_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/repos","events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-07-28T19:40:40Z","updated_at":"2025-07-29T09:25:12Z","closed_at":null,"author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7706","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7706","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7706.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7706.patch","merged_at":null},"body":"(revival of #6832)\r\n\r\nhttps:\/\/github.com\/huggingface\/datasets\/pull\/7648#issuecomment-3084050130\r\n\r\nClose https:\/\/github.com\/huggingface\/datasets\/issues\/4101, and more\r\n\r\n---\r\n### PR under work!!!!\r\n","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7706\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7706\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7705","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7705\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7705\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7705\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7705","id":3269070499,"node_id":"I_kwDODunzps7C2g6j","number":7705,"title":"Can Not read installed dataset in dataset.load(.)","user":{"login":"HuangChiEn","id":52521165,"node_id":"MDQ6VXNlcjUyNTIxMTY1","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/52521165?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/HuangChiEn","html_url":"https:\/\/github.com\/HuangChiEn","followers_url":"https:\/\/api.github.com\/users\/HuangChiEn\/followers","following_url":"https:\/\/api.github.com\/users\/HuangChiEn\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/HuangChiEn\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/HuangChiEn\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/HuangChiEn\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/HuangChiEn\/orgs","repos_url":"https:\/\/api.github.com\/users\/HuangChiEn\/repos","events_url":"https:\/\/api.github.com\/users\/HuangChiEn\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/HuangChiEn\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2025-07-28T09:43:54Z","updated_at":"2025-08-05T01:24:32Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"Hi, folks, I'm newbie in huggingface dataset api.\nAs title, i'm facing the issue that the dataset.load api can not connect to the installed dataset.\n\ncode snippet :\n\"Image\"\n\ndata path : \n\"\/xxx\/joseph\/llava_ds\/vlm_ds\"\nit contains all video clips i want!\n\"Image\"\n\ni run the py script by \n\"Image\"\n\nBut bad happended, even i provide dataset path by \"HF_HUB_CACHE\", it still attempt to download data from remote side : \n\n\"Image\"\n\nAny suggestion will be appreciated!!","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7705\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7705\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7704","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7704\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7704\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7704\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7704","id":3265730177,"node_id":"PR_kwDODunzps6gwtb8","number":7704,"title":"Fix map() example in datasets documentation: define tokenizer before use","user":{"login":"Sanjaykumar030","id":183703408,"node_id":"U_kgDOCvMXcA","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/183703408?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Sanjaykumar030","html_url":"https:\/\/github.com\/Sanjaykumar030","followers_url":"https:\/\/api.github.com\/users\/Sanjaykumar030\/followers","following_url":"https:\/\/api.github.com\/users\/Sanjaykumar030\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Sanjaykumar030\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Sanjaykumar030\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Sanjaykumar030\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Sanjaykumar030\/orgs","repos_url":"https:\/\/api.github.com\/users\/Sanjaykumar030\/repos","events_url":"https:\/\/api.github.com\/users\/Sanjaykumar030\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Sanjaykumar030\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-07-26T14:18:17Z","updated_at":"2025-08-13T13:23:18Z","closed_at":"2025-08-13T13:06:37Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7704","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7704","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7704.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7704.patch","merged_at":null},"body":"## Problem\r\nThe current datasets.Dataset.map() example in the documentation demonstrates batched processing using a tokenizer object without defining or importing it. This causes a NameError when users copy and run the example as-is, breaking the expected seamless experience.\r\n\r\n## Correction\r\nThis PR fixes the issue by explicitly importing and initializing the tokenizer using the Transformers library (AutoTokenizer.from_pretrained(\"bert-base-uncased\")), making the example self-contained and runnable without errors.\r\nThis will help new users understand the workflow and apply the method correctly.\r\n\r\nCloses #7703 \r\n\r\n","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7704\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7704\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7703","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7703\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7703\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7703\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7703","id":3265648942,"node_id":"I_kwDODunzps7Cpdku","number":7703,"title":"[Docs] map() example uses undefined `tokenizer` \u2014 causes NameError","user":{"login":"Sanjaykumar030","id":183703408,"node_id":"U_kgDOCvMXcA","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/183703408?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Sanjaykumar030","html_url":"https:\/\/github.com\/Sanjaykumar030","followers_url":"https:\/\/api.github.com\/users\/Sanjaykumar030\/followers","following_url":"https:\/\/api.github.com\/users\/Sanjaykumar030\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Sanjaykumar030\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Sanjaykumar030\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Sanjaykumar030\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Sanjaykumar030\/orgs","repos_url":"https:\/\/api.github.com\/users\/Sanjaykumar030\/repos","events_url":"https:\/\/api.github.com\/users\/Sanjaykumar030\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Sanjaykumar030\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-07-26T13:35:11Z","updated_at":"2025-07-27T09:44:35Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"## Description\n\nThe current documentation example for `datasets.Dataset.map()` demonstrates batched processing but uses a `tokenizer` object without defining or importing it. This causes an error every time it's copied.\n\nHere is the problematic line:\n\n```python\n# process a batch of examples\n>>> ds = ds.map(lambda example: tokenizer(example[\"text\"]), batched=True)\n```\nThis assumes the user has already set up a tokenizer, which contradicts the goal of having self-contained, copy-paste-friendly examples. \n\n## Problem\nUsers who copy and run the example as-is will encounter:\n\n```python\nNameError: name 'tokenizer' is not defined\n```\n\nThis breaks the flow for users and violates HuggingFace's documentation principle that examples should \"work as expected\" when copied directly. \n\n## Proposal\nUpdate the example to include the required tokenizer setup using the Transformers library, like so:\n\n```python\nfrom transformers import AutoTokenizer\n\ntokenizer = AutoTokenizer.from_pretrained(\"bert-base-uncased\")\nds_tokenized = ds.map(lambda example: tokenizer(example[\"text\"]), batched=True)\n```\nThis will help new users understand the workflow and apply the method correctly.\n\n## Note\nThis PR complements ongoing improvements like #7700, which clarifies multiprocessing in .map(). My change focuses on undefined tokenizer \u2014 causes NameError\n\n\n\n\n","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7703\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7703\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7702","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7702\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7702\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7702\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7702","id":3265328549,"node_id":"PR_kwDODunzps6gvdYC","number":7702,"title":"num_proc=0 behave like None, num_proc=1 uses one worker (not main process) and clarify num_proc documentation","user":{"login":"tanuj-rai","id":84439872,"node_id":"MDQ6VXNlcjg0NDM5ODcy","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/84439872?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/tanuj-rai","html_url":"https:\/\/github.com\/tanuj-rai","followers_url":"https:\/\/api.github.com\/users\/tanuj-rai\/followers","following_url":"https:\/\/api.github.com\/users\/tanuj-rai\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/tanuj-rai\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/tanuj-rai\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/tanuj-rai\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/tanuj-rai\/orgs","repos_url":"https:\/\/api.github.com\/users\/tanuj-rai\/repos","events_url":"https:\/\/api.github.com\/users\/tanuj-rai\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/tanuj-rai\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2025-07-26T08:19:39Z","updated_at":"2025-07-31T14:52:33Z","closed_at":"2025-07-31T14:52:33Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7702","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7702","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7702.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7702.patch","merged_at":"2025-07-31T14:52:33Z"},"body":"Fixes issue #7700\r\n\r\nThis PR makes num_proc=0 behave like None in Dataset.map(), disabling multiprocessing.\r\nIt improves UX by aligning with DataLoader(num_workers=0) behavior.\r\nThe num_proc docstring is also updated to clearly explain valid values and behavior.\r\n\r\n@SunMarc\r\n","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7702\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7702\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7701","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7701\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7701\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7701\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7701","id":3265236296,"node_id":"PR_kwDODunzps6gvJ83","number":7701,"title":"Update fsspec max version to current release 2025.7.0","user":{"login":"rootAvish","id":5445560,"node_id":"MDQ6VXNlcjU0NDU1NjA=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/5445560?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/rootAvish","html_url":"https:\/\/github.com\/rootAvish","followers_url":"https:\/\/api.github.com\/users\/rootAvish\/followers","following_url":"https:\/\/api.github.com\/users\/rootAvish\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/rootAvish\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/rootAvish\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/rootAvish\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/rootAvish\/orgs","repos_url":"https:\/\/api.github.com\/users\/rootAvish\/repos","events_url":"https:\/\/api.github.com\/users\/rootAvish\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/rootAvish\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2025-07-26T06:47:59Z","updated_at":"2025-08-13T17:32:07Z","closed_at":"2025-07-28T11:58:11Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7701","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7701","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7701.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7701.patch","merged_at":"2025-07-28T11:58:11Z"},"body":"Diffusers currently asks for a max fsspec version of `2025.3.0`. This change updates it to the current latest version. This change is mainly required to resolve conflicts with other packages in an environment. In my particular case, `aider-chat` which is a part of my environment installs `2025.5.1` which is incompatible with `datasets`.","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7701\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7701\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7700","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7700\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7700\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7700\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7700","id":3263922255,"node_id":"I_kwDODunzps7Ci4BP","number":7700,"title":"[doc] map.num_proc needs clarification","user":{"login":"sfc-gh-sbekman","id":196988264,"node_id":"U_kgDOC73NaA","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/196988264?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/sfc-gh-sbekman","html_url":"https:\/\/github.com\/sfc-gh-sbekman","followers_url":"https:\/\/api.github.com\/users\/sfc-gh-sbekman\/followers","following_url":"https:\/\/api.github.com\/users\/sfc-gh-sbekman\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/sfc-gh-sbekman\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/sfc-gh-sbekman\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/sfc-gh-sbekman\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/sfc-gh-sbekman\/orgs","repos_url":"https:\/\/api.github.com\/users\/sfc-gh-sbekman\/repos","events_url":"https:\/\/api.github.com\/users\/sfc-gh-sbekman\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/sfc-gh-sbekman\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-07-25T17:35:09Z","updated_at":"2025-07-25T17:39:36Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"https:\/\/huggingface.co\/docs\/datasets\/v4.0.0\/en\/package_reference\/main_classes#datasets.Dataset.map.num_proc\n```\nnum_proc (int, optional, defaults to None) \u2014 Max number of processes when generating cache. Already cached\nshards are loaded sequentially.\n```\n\nfor batch:\n```\nnum_proc (int, optional, defaults to None): The number of processes to use for multiprocessing. If None, no \nmultiprocessing is used. This can significantly speed up batching for large datasets.\n```\n\nSo what happens to `map.num_proc` - is it the same behavior as `batch.num_proc` - so only if `num_proc=None` then no multiprocessing is used?\n\nLet's update the doc to be unambiguous.\n\n**bonus**: we could make all of these behave similarly to `DataLoader.num_workers` - where `num_workers==0` implies no multiprocessing. I think that's the most intuitive, IMHO. 0 workers - the main process has to do all the work. `None` could be the same as `0`.\n\ncontext: debugging a failing `map`\n\nThank you!","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7700\/reactions","total_count":1,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7700\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7699","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7699\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7699\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7699\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7699","id":3261053171,"node_id":"I_kwDODunzps7CX7jz","number":7699,"title":"Broken link in documentation for \"Create a video dataset\"","user":{"login":"cleong110","id":122366389,"node_id":"U_kgDOB0sptQ","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/122366389?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/cleong110","html_url":"https:\/\/github.com\/cleong110","followers_url":"https:\/\/api.github.com\/users\/cleong110\/followers","following_url":"https:\/\/api.github.com\/users\/cleong110\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/cleong110\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/cleong110\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/cleong110\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/cleong110\/orgs","repos_url":"https:\/\/api.github.com\/users\/cleong110\/repos","events_url":"https:\/\/api.github.com\/users\/cleong110\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/cleong110\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-07-24T19:46:28Z","updated_at":"2025-07-25T15:27:47Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"The link to \"the [WebDataset documentation](https:\/\/webdataset.github.io\/webdataset).\" is broken. \nhttps:\/\/huggingface.co\/docs\/datasets\/main\/en\/video_dataset#webdataset \n\n\"Image\"","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7699\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7699\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7698","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7698\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7698\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7698\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7698","id":3255350916,"node_id":"I_kwDODunzps7CCLaE","number":7698,"title":"NotImplementedError when using streaming=True in Google Colab environment","user":{"login":"Aniket17200","id":100470741,"node_id":"U_kgDOBf0P1Q","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/100470741?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Aniket17200","html_url":"https:\/\/github.com\/Aniket17200","followers_url":"https:\/\/api.github.com\/users\/Aniket17200\/followers","following_url":"https:\/\/api.github.com\/users\/Aniket17200\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Aniket17200\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Aniket17200\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Aniket17200\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Aniket17200\/orgs","repos_url":"https:\/\/api.github.com\/users\/Aniket17200\/repos","events_url":"https:\/\/api.github.com\/users\/Aniket17200\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Aniket17200\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-07-23T08:04:53Z","updated_at":"2025-07-23T15:06:23Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nWhen attempting to load a large dataset (like tiiuae\/falcon-refinedweb or allenai\/c4) using streaming=True in a standard Google Colab notebook, the process fails with a NotImplementedError: Loading a streaming dataset cached in a LocalFileSystem is not supported yet. This issue persists even after upgrading datasets and huggingface_hub and restarting the session.\n\n### Steps to reproduce the bug\n\nOpen a new Google Colab notebook.\n\n(Optional but recommended) Run !pip install --upgrade datasets huggingface_hub and restart the runtime.\n\nRun the following code:\n\nPython\n\nfrom datasets import load_dataset\n\ntry:\n print(\"Attempting to load a stream...\")\n streaming_dataset = load_dataset('tiiuae\/falcon-refinedweb', streaming=True)\n print(\"Success!\")\nexcept Exception as e:\n print(e)\n\n### Expected behavior\n\nThe load_dataset command should return a StreamingDataset object without raising an error, allowing iteration over the dataset.\n\nActual Behavior\nThe code fails and prints the following error traceback:\n\n[PASTE THE FULL ERROR TRACEBACK HERE]\n(Note: Copy the entire error message you received, from Traceback... to the final error line, and paste it in this section.)\n\n### Environment info\n\nPlatform: Google Colab\n\ndatasets version: [Run !pip show datasets in Colab and paste the version here]\n\nhuggingface_hub version: [Run !pip show huggingface_hub and paste the version here]\n\nPython version: [Run !python --version and paste the version here]","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7698\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7698\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7697","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7697\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7697\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7697\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7697","id":3254526399,"node_id":"I_kwDODunzps7B_CG_","number":7697,"title":"-","user":{"login":"kakamond","id":44517413,"node_id":"MDQ6VXNlcjQ0NTE3NDEz","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/44517413?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/kakamond","html_url":"https:\/\/github.com\/kakamond","followers_url":"https:\/\/api.github.com\/users\/kakamond\/followers","following_url":"https:\/\/api.github.com\/users\/kakamond\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/kakamond\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/kakamond\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/kakamond\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/kakamond\/orgs","repos_url":"https:\/\/api.github.com\/users\/kakamond\/repos","events_url":"https:\/\/api.github.com\/users\/kakamond\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/kakamond\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-07-23T01:30:32Z","updated_at":"2025-07-25T15:21:39Z","closed_at":"2025-07-25T15:21:39Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"-","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7697\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7697\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7696","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7696\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7696\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7696\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7696","id":3253433350,"node_id":"I_kwDODunzps7B63QG","number":7696,"title":"load_dataset() in 4.0.0 returns different audio samples compared to earlier versions breaking reproducibility","user":{"login":"Manalelaidouni","id":25346345,"node_id":"MDQ6VXNlcjI1MzQ2MzQ1","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/25346345?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Manalelaidouni","html_url":"https:\/\/github.com\/Manalelaidouni","followers_url":"https:\/\/api.github.com\/users\/Manalelaidouni\/followers","following_url":"https:\/\/api.github.com\/users\/Manalelaidouni\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Manalelaidouni\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Manalelaidouni\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Manalelaidouni\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Manalelaidouni\/orgs","repos_url":"https:\/\/api.github.com\/users\/Manalelaidouni\/repos","events_url":"https:\/\/api.github.com\/users\/Manalelaidouni\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Manalelaidouni\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-07-22T17:02:17Z","updated_at":"2025-07-30T14:22:21Z","closed_at":"2025-07-30T14:22:21Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nIn datasets 4.0.0 release, `load_dataset()` returns different audio samples compared to earlier versions, this breaks integration tests that depend on consistent sample data across different environments (first and second envs specified below).\n\n\n\n### Steps to reproduce the bug\n\n```python\nfrom datasets import Audio, load_dataset\n\nds = load_dataset(\"hf-internal-testing\/librispeech_asr_dummy\", \"clean\", split=\"validation\")\nds = ds.cast_column(\"audio\", Audio(24000))\nsample= ds[0][\"audio\"][\"array\"]\nprint(sample)\n\n# sample in 3.6.0 \n[0.00231914 0.00245417 0.00187414 ... 0.00061956 0.00101157 0.00076325]\n\n\n# sample in 4.0.0 \narray([0.00238037, 0.00220794, 0.00198703, ..., 0.00057983, 0.00085863,\n 0.00115309], dtype=float32)\n```\n\n### Expected behavior\n\nThe same dataset should load identical samples across versions to maintain reproducibility.\n\n### Environment info\n\nFirst env:\n- datasets version: 3.6.0\n- Platform: Windows-10-10.0.26100-SP0\n- Python: 3.11.0\n\nSecond env:\n- datasets version: 4.0.0\n- Platform: Linux-6.1.123+-x86_64-with-glibc2.35\n- Python: 3.11.13","closed_by":{"login":"Manalelaidouni","id":25346345,"node_id":"MDQ6VXNlcjI1MzQ2MzQ1","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/25346345?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Manalelaidouni","html_url":"https:\/\/github.com\/Manalelaidouni","followers_url":"https:\/\/api.github.com\/users\/Manalelaidouni\/followers","following_url":"https:\/\/api.github.com\/users\/Manalelaidouni\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Manalelaidouni\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Manalelaidouni\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Manalelaidouni\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Manalelaidouni\/orgs","repos_url":"https:\/\/api.github.com\/users\/Manalelaidouni\/repos","events_url":"https:\/\/api.github.com\/users\/Manalelaidouni\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Manalelaidouni\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7696\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7696\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7695","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7695\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7695\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7695\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7695","id":3251904843,"node_id":"PR_kwDODunzps6gB7jS","number":7695,"title":"Support downloading specific splits in load_dataset","user":{"login":"ArjunJagdale","id":142811259,"node_id":"U_kgDOCIMgew","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/142811259?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ArjunJagdale","html_url":"https:\/\/github.com\/ArjunJagdale","followers_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/followers","following_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/orgs","repos_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/repos","events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2025-07-22T09:33:54Z","updated_at":"2025-07-28T17:33:30Z","closed_at":"2025-07-28T17:15:45Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7695","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7695","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7695.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7695.patch","merged_at":null},"body":"This PR builds on #6832 by @mariosasko.\r\n\r\nMay close - #4101, #2538\r\n\r\nDiscussion - https:\/\/github.com\/huggingface\/datasets\/pull\/7648#issuecomment-3084050130\r\n\r\n---\r\n### Note - This PR is under work and frequent changes will be pushed.","closed_by":{"login":"ArjunJagdale","id":142811259,"node_id":"U_kgDOCIMgew","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/142811259?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ArjunJagdale","html_url":"https:\/\/github.com\/ArjunJagdale","followers_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/followers","following_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/orgs","repos_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/repos","events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7695\/reactions","total_count":1,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":1,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7695\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7694","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7694\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7694\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7694\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7694","id":3247600408,"node_id":"I_kwDODunzps7BknMY","number":7694,"title":"Dataset.to_json consumes excessive memory, appears to not be a streaming operation","user":{"login":"ycq0125","id":49603999,"node_id":"MDQ6VXNlcjQ5NjAzOTk5","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/49603999?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ycq0125","html_url":"https:\/\/github.com\/ycq0125","followers_url":"https:\/\/api.github.com\/users\/ycq0125\/followers","following_url":"https:\/\/api.github.com\/users\/ycq0125\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ycq0125\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ycq0125\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ycq0125\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ycq0125\/orgs","repos_url":"https:\/\/api.github.com\/users\/ycq0125\/repos","events_url":"https:\/\/api.github.com\/users\/ycq0125\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ycq0125\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-07-21T07:51:25Z","updated_at":"2025-07-25T14:42:21Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nWhen exporting a Dataset object to a JSON Lines file using the .to_json(lines=True) method, the process consumes a very large amount of memory. The memory usage is proportional to the size of the entire Dataset object being saved, rather than being a low, constant memory operation.\n\nThis behavior is unexpected, as the JSONL format is line-oriented and ideally suited for streaming writes. This issue can easily lead to Out-of-Memory (OOM) errors when exporting large datasets, especially in memory-constrained environments like Docker containers.\n\n\"Image\"\n\n### Steps to reproduce the bug\n\n```\nimport os\nfrom datasets import load_dataset, Dataset\nfrom loguru import logger\n\n# A public dataset to test with\nREPO_ID = \"adam89\/TinyStoriesChinese\"\nSUBSET = \"default\"\nSPLIT = \"train\"\nNUM_ROWS_TO_LOAD = 10 # Use a reasonably large number to see the memory spike\n\n\ndef run_test():\n \"\"\"Loads data into memory and then saves it, triggering the memory issue.\"\"\"\n logger.info(\"Step 1: Loading data into an in-memory Dataset object...\")\n\n # Create an in-memory Dataset object from a stream\n # This simulates having a processed dataset ready to be saved\n iterable_dataset = load_dataset(REPO_ID, name=SUBSET, split=SPLIT, streaming=True)\n limited_stream = iterable_dataset.take(NUM_ROWS_TO_LOAD)\n in_memory_dataset = Dataset.from_generator(limited_stream.__iter__)\n\n logger.info(f\"Dataset with {len(in_memory_dataset)} rows created in memory.\")\n\n output_path = \".\/test_output.jsonl\"\n logger.info(f\"Step 2: Saving the dataset to {output_path} using .to_json()...\")\n logger.info(\"Please monitor memory usage during this step.\")\n\n # This is the step that causes the massive memory allocation\n in_memory_dataset.to_json(output_path, force_ascii=False)\n\n logger.info(\"Save operation complete.\")\n os.remove(output_path)\n\n\nif __name__ == \"__main__\":\n # To see the memory usage clearly, run this script with a memory profiler:\n # python -m memray run your_script_name.py\n # python -m memray tree xxx.bin\n run_test()\n\n```\n\n### Expected behavior\n\nI would expect the .to_json(lines=True) method to be a memory-efficient, streaming operation. The memory usage should remain low and relatively constant, as data is converted and written to the file line-by-line or in small batches. The memory footprint should not be proportional to the total number of rows in the in_memory_dataset.\n\n### Environment info\n\ndatasets version:3.6.0\nPython version:3.9.18\nos:macOS 15.3.1 (arm64)","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7694\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7694\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7693","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7693\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7693\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7693\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7693","id":3246369678,"node_id":"I_kwDODunzps7Bf6uO","number":7693,"title":"Dataset scripts are no longer supported, but found superb.py","user":{"login":"edwinzajac","id":114297534,"node_id":"U_kgDOBtAKvg","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/114297534?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/edwinzajac","html_url":"https:\/\/github.com\/edwinzajac","followers_url":"https:\/\/api.github.com\/users\/edwinzajac\/followers","following_url":"https:\/\/api.github.com\/users\/edwinzajac\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/edwinzajac\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/edwinzajac\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/edwinzajac\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/edwinzajac\/orgs","repos_url":"https:\/\/api.github.com\/users\/edwinzajac\/repos","events_url":"https:\/\/api.github.com\/users\/edwinzajac\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/edwinzajac\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2025-07-20T13:48:06Z","updated_at":"2025-08-11T10:30:47Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nHello,\n\nI'm trying to follow the [Hugging Face Pipelines tutorial](https:\/\/huggingface.co\/docs\/transformers\/main_classes\/pipelines) but the tutorial seems to work only on old datasets versions.\n\nI then get the error :\n\n```\n--------------------------------------------------------------------------\nRuntimeError Traceback (most recent call last)\nCell In[65], [line 1](vscode-notebook-cell:?execution_count=65&line=1)\n----> [1](vscode-notebook-cell:?execution_count=65&line=1) dataset = datasets.load_dataset(\"superb\", name=\"asr\", split=\"test\")\n 3 # KeyDataset (only *pt*) will simply return the item in the dict returned by the dataset item\n 4 # as we're not interested in the *target* part of the dataset. For sentence pair use KeyPairDataset\n 5 for out in tqdm(pipe(KeyDataset(dataset, \"file\"))):\n\nFile ~\/Desktop\/debug\/llm_course\/.venv\/lib\/python3.11\/site-packages\/datasets\/load.py:1392, in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, verification_mode, keep_in_memory, save_infos, revision, token, streaming, num_proc, storage_options, **config_kwargs)\n 1387 verification_mode = VerificationMode(\n 1388 (verification_mode or VerificationMode.BASIC_CHECKS) if not save_infos else VerificationMode.ALL_CHECKS\n 1389 )\n 1391 # Create a dataset builder\n-> [1392](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/edwin\/Desktop\/debug\/llm_course\/~\/Desktop\/debug\/llm_course\/.venv\/lib\/python3.11\/site-packages\/datasets\/load.py:1392) builder_instance = load_dataset_builder(\n 1393 path=path,\n 1394 name=name,\n 1395 data_dir=data_dir,\n 1396 data_files=data_files,\n 1397 cache_dir=cache_dir,\n 1398 features=features,\n 1399 download_config=download_config,\n 1400 download_mode=download_mode,\n 1401 revision=revision,\n 1402 token=token,\n 1403 storage_options=storage_options,\n 1404 **config_kwargs,\n 1405 )\n 1407 # Return iterable dataset in case of streaming\n 1408 if streaming:\n\nFile ~\/Desktop\/debug\/llm_course\/.venv\/lib\/python3.11\/site-packages\/datasets\/load.py:1132, in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, token, storage_options, **config_kwargs)\n 1130 if features is not None:\n 1131 features = _fix_for_backward_compatible_features(features)\n-> [1132](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/edwin\/Desktop\/debug\/llm_course\/~\/Desktop\/debug\/llm_course\/.venv\/lib\/python3.11\/site-packages\/datasets\/load.py:1132) dataset_module = dataset_module_factory(\n 1133 path,\n 1134 revision=revision,\n 1135 download_config=download_config,\n 1136 download_mode=download_mode,\n 1137 data_dir=data_dir,\n 1138 data_files=data_files,\n 1139 cache_dir=cache_dir,\n 1140 )\n 1141 # Get dataset builder class\n 1142 builder_kwargs = dataset_module.builder_kwargs\n\nFile ~\/Desktop\/debug\/llm_course\/.venv\/lib\/python3.11\/site-packages\/datasets\/load.py:1031, in dataset_module_factory(path, revision, download_config, download_mode, data_dir, data_files, cache_dir, **download_kwargs)\n 1026 if isinstance(e1, FileNotFoundError):\n 1027 raise FileNotFoundError(\n 1028 f\"Couldn't find any data file at {relative_to_absolute_path(path)}. \"\n 1029 f\"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}\"\n 1030 ) from None\n-> [1031](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/edwin\/Desktop\/debug\/llm_course\/~\/Desktop\/debug\/llm_course\/.venv\/lib\/python3.11\/site-packages\/datasets\/load.py:1031) raise e1 from None\n 1032 else:\n 1033 raise FileNotFoundError(f\"Couldn't find any data file at {relative_to_absolute_path(path)}.\")\n\nFile ~\/Desktop\/debug\/llm_course\/.venv\/lib\/python3.11\/site-packages\/datasets\/load.py:989, in dataset_module_factory(path, revision, download_config, download_mode, data_dir, data_files, cache_dir, **download_kwargs)\n 981 try:\n 982 api.hf_hub_download(\n 983 repo_id=path,\n 984 filename=filename,\n (...) 987 proxies=download_config.proxies,\n 988 )\n--> [989](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/edwin\/Desktop\/debug\/llm_course\/~\/Desktop\/debug\/llm_course\/.venv\/lib\/python3.11\/site-packages\/datasets\/load.py:989) raise RuntimeError(f\"Dataset scripts are no longer supported, but found {filename}\")\n 990 except EntryNotFoundError:\n 991 # Use the infos from the parquet export except in some cases:\n 992 if data_dir or data_files or (revision and revision != \"main\"):\n\nRuntimeError: Dataset scripts are no longer supported, but found superb.py\n```\n\nNB : I tried to replace \"superb\" by \"anton-l\/superb_demo\" but I get a 'torchcodec' importing error. Maybe I misunderstood something.\n\n### Steps to reproduce the bug\n\n```\nimport datasets\nfrom transformers import pipeline\nfrom transformers.pipelines.pt_utils import KeyDataset\nfrom tqdm.auto import tqdm\n\npipe = pipeline(\"automatic-speech-recognition\", model=\"facebook\/wav2vec2-base-960h\", device=0)\ndataset = datasets.load_dataset(\"superb\", name=\"asr\", split=\"test\")\n\n# KeyDataset (only *pt*) will simply return the item in the dict returned by the dataset item\n# as we're not interested in the *target* part of the dataset. For sentence pair use KeyPairDataset\nfor out in tqdm(pipe(KeyDataset(dataset, \"file\"))):\n print(out)\n # {\"text\": \"NUMBER TEN FRESH NELLY IS WAITING ON YOU GOOD NIGHT HUSBAND\"}\n # {\"text\": ....}\n # ....\n```\n\n### Expected behavior\n\nGet the tutorial expected results\n\n### Environment info\n\n--- SYSTEM INFO ---\nOperating System: Ubuntu 24.10 \nKernel: Linux 6.11.0-29-generic\nArchitecture: x86-64\n\n--- PYTHON ---\nPython 3.11.13\n\n--- VENV INFO ----\ndatasets=4.0.0\ntransformers=4.53\ntqdm=4.67.1","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7693\/reactions","total_count":2,"+1":2,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7693\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7692","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7692\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7692\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7692\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7692","id":3246268635,"node_id":"I_kwDODunzps7BfiDb","number":7692,"title":"xopen: invalid start byte for streaming dataset with trust_remote_code=True","user":{"login":"sedol1339","id":5188731,"node_id":"MDQ6VXNlcjUxODg3MzE=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/5188731?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/sedol1339","html_url":"https:\/\/github.com\/sedol1339","followers_url":"https:\/\/api.github.com\/users\/sedol1339\/followers","following_url":"https:\/\/api.github.com\/users\/sedol1339\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/sedol1339\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/sedol1339\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/sedol1339\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/sedol1339\/orgs","repos_url":"https:\/\/api.github.com\/users\/sedol1339\/repos","events_url":"https:\/\/api.github.com\/users\/sedol1339\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/sedol1339\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-07-20T11:08:20Z","updated_at":"2025-07-25T14:38:54Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI am trying to load YODAS2 dataset with datasets==3.6.0\n```\nfrom datasets import load_dataset\nnext(iter(load_dataset('espnet\/yodas2', name='ru000', split='train', streaming=True, trust_remote_code=True)))\n```\nAnd get `UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa8 in position 1: invalid start byte`\n\nThe cause of the error is the following:\n\n```\nfrom datasets.utils.file_utils import xopen\n\nfilepath = 'https:\/\/huggingface.co\/datasets\/espnet\/yodas2\/resolve\/c9674490249665d658f527e2684848377108d82c\/data\/ru000\/text\/00000000.json'\nxopen(filepath, 'r').read()\n>>> UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa8 in position 1: invalid start byte\n```\n\nAnd the cause of this is the following:\n\n```\nimport fsspec\n\nfsspec.open(\n 'hf:\/\/datasets\/espnet\/yodas2@c9674490249665d658f527e2684848377108d82c\/data\/ru000\/text\/00000000.json',\n mode='r',\n hf={'token': None, 'endpoint': 'https:\/\/huggingface.co'},\n).open().read()\n>>> UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa8 in position 1: invalid start byte\n```\n\nIs it true that streaming=True loading is not supported anymore for trust_remote_code=True, even with datasets==3.6.0? This breaks backward compatibility.\n\n### Steps to reproduce the bug\n\n```\nfrom datasets import load_dataset\nnext(iter(load_dataset('espnet\/yodas2', name='ru000', split='train', streaming=True)))\n```\n\n### Expected behavior\n\nNo errors expected\n\n### Environment info\n\ndatasets==3.6.0, ubuntu 24.04","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7692\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7692\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7691","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7691\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7691\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7691\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7691","id":3245547170,"node_id":"I_kwDODunzps7Bcx6i","number":7691,"title":"Large WebDataset: pyarrow.lib.ArrowCapacityError on load() even with streaming","user":{"login":"cleong110","id":122366389,"node_id":"U_kgDOB0sptQ","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/122366389?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/cleong110","html_url":"https:\/\/github.com\/cleong110","followers_url":"https:\/\/api.github.com\/users\/cleong110\/followers","following_url":"https:\/\/api.github.com\/users\/cleong110\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/cleong110\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/cleong110\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/cleong110\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/cleong110\/orgs","repos_url":"https:\/\/api.github.com\/users\/cleong110\/repos","events_url":"https:\/\/api.github.com\/users\/cleong110\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/cleong110\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2025-07-19T18:40:27Z","updated_at":"2025-07-25T08:51:10Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI am creating a large WebDataset-format dataset for sign language processing research, and a number of the videos are over 2GB. The instant I hit one of the shards with one of those videos, I get a ArrowCapacityError, even with streaming. \n\n\n\nI made a config for the dataset that specifically includes just one problem shard, and the error triggers the instant you even run load_dataset(), even with streaming=True\n```\nds = load_dataset(\"bible-nlp\/sign-bibles\", \"ase_chronological_bible_translation_in_american_sign_language_119_introductions_and_passages_debugging_problem_shard\", streaming=True, split=\"train\")\n```\n\nThis gives: \n```\nFile \"\/opt\/home\/cleong\/projects\/semantic_and_visual_similarity\/sign-bibles-dataset\/sign_bibles_dataset\/tasks\/test_iteration.py\", line 13, in iterate_keys\n ds = load_dataset(\"bible-nlp\/sign-bibles\", language_subset, streaming=True, split=\"train\")\n File \"\/opt\/home\/cleong\/envs\/sign-bibles-dataset\/lib\/python3.13\/site-packages\/datasets\/load.py\", line 1409, in load_dataset\n return builder_instance.as_streaming_dataset(split=split)\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^\n File \"\/opt\/home\/cleong\/envs\/sign-bibles-dataset\/lib\/python3.13\/site-packages\/datasets\/builder.py\", line 1225, in as_streaming_dataset\n splits_generators = {sg.name: sg for sg in self._split_generators(dl_manager)}\n ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^\n File \"\/opt\/home\/cleong\/envs\/sign-bibles-dataset\/lib\/python3.13\/site-packages\/datasets\/packaged_modules\/webdataset\/webdataset.py\", line 88, in _split_generators\n pa.Table.from_pylist(cast_to_python_objects([example], only_1d_for_numpy=True))\n ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"pyarrow\/table.pxi\", line 2046, in pyarrow.lib._Tabular.from_pylist\n File \"pyarrow\/table.pxi\", line 6431, in pyarrow.lib._from_pylist\n File \"pyarrow\/table.pxi\", line 4893, in pyarrow.lib.Table.from_arrays\n File \"pyarrow\/table.pxi\", line 1607, in pyarrow.lib._sanitize_arrays\n File \"pyarrow\/table.pxi\", line 1588, in pyarrow.lib._schema_from_arrays\n File \"pyarrow\/array.pxi\", line 375, in pyarrow.lib.array\n File \"pyarrow\/array.pxi\", line 45, in pyarrow.lib._sequence_to_array\n File \"pyarrow\/error.pxi\", line 155, in pyarrow.lib.pyarrow_internal_check_status\n File \"pyarrow\/error.pxi\", line 92, in pyarrow.lib.check_status\npyarrow.lib.ArrowCapacityError: array cannot contain more than 2147483646 bytes, have 3980158992\n```\n\n### Steps to reproduce the bug\n\n```python\n#!\/usr\/bin\/env python\n\nimport argparse\nfrom datasets import get_dataset_config_names, load_dataset\nfrom tqdm import tqdm\nfrom pyarrow.lib import ArrowCapacityError, ArrowInvalid\n\n\ndef iterate_keys(language_subset: str) -> None:\n \"\"\"Iterate over all samples in the Sign Bibles dataset and print idx and sample key.\"\"\"\n\n # https:\/\/huggingface.co\/docs\/datasets\/v4.0.0\/en\/package_reference\/loading_methods#datasets.load_dataset\n ds = load_dataset(\"bible-nlp\/sign-bibles\", language_subset, streaming=True, split=\"train\")\n\n print(f\"\\n==> Loaded dataset config '{language_subset}'\")\n\n idx = 0\n estimated_shard_index = 0\n samples_per_shard = 5\n with tqdm(desc=f\"{language_subset} samples\") as pbar:\n iterator = iter(ds)\n while True:\n try:\n if idx % samples_per_shard == 0 and idx > 0: # 5 samples per shard: 0, 1, 2, 3, 4\n print(f\"Estimated Shard idx (starting at 0, {samples_per_shard}\/shard): {estimated_shard_index}\")\n estimated_shard_index += 1\n sample = next(iterator)\n sample_key = sample.get(\"__key__\", \"missing-key\")\n print(f\"[{language_subset}] idx={idx}, key={sample_key}\")\n idx += 1\n\n pbar.update(1)\n\n except StopIteration:\n print(f\"Finished iterating through {idx} samples of {language_subset}\")\n break\n\n except (ArrowCapacityError, ArrowInvalid) as e:\n print(f\"PyArrow error on idx={idx}, config={language_subset}: {e}\")\n idx += 1\n pbar.update(1)\n continue\n\n except KeyError as e:\n print(f\"Missing key error on idx={idx}, config={language_subset}: {e}\")\n idx += 1\n pbar.update(1)\n continue\n\n\ndef main():\n configs = get_dataset_config_names(\"bible-nlp\/sign-bibles\")\n print(f\"Available configs: {configs}\")\n configs = [\n \"ase_chronological_bible_translation_in_american_sign_language_119_introductions_and_passages_debugging_problem_shard\"\n ]\n\n for language_subset in configs:\n print(f\"TESTING CONFIG {language_subset}\")\n iterate_keys(language_subset)\n # try:\n\n # except (ArrowCapacityError, ArrowInvalid) as e:\n # print(f\"PyArrow error at config level for {language_subset}: {e}\")\n # continue\n # except RuntimeError as e:\n # print(f\"RuntimeError at config level for {language_subset}: {e}\")\n # continue\n\n\nif __name__ == \"__main__\":\n parser = argparse.ArgumentParser(description=\"Iterate through Sign Bibles dataset and print sample keys.\")\n args = parser.parse_args()\n\n main()\n```\n\n\n\n### Expected behavior\n\nI expect, when I load with streaming=True, that there should not be any data loaded or anything like that.\nhttps:\/\/huggingface.co\/docs\/datasets\/main\/en\/package_reference\/loading_methods#datasets.load_dataset says that with streaming=true, \n\nI did expect to have some trouble with large files, but that the streaming mode would not actually try to load them unless requested, e.g. with sample[\"mp4\"]\n\n>In the streaming case:\n> Don\u2019t download or cache anything. Instead, the dataset is lazily loaded and will be streamed on-the-fly when iterating on it.\n\n### Environment info\n\nLocal setup: Conda environment on Ubuntu, pip list includes the following\ndatasets 4.0.0\npyarrow 20.0.0\n\nVerified on Colab: https:\/\/colab.research.google.com\/drive\/1HdN8stlROWrLSYXUoNeV0vQ9pClhIVM8?usp=sharing, though there it crashes by using up all available RAM\n","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7691\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7691\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7690","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7690\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7690\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7690\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7690","id":3244380691,"node_id":"PR_kwDODunzps6fozag","number":7690,"title":"HDF5 support","user":{"login":"klamike","id":17013474,"node_id":"MDQ6VXNlcjE3MDEzNDc0","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/17013474?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/klamike","html_url":"https:\/\/github.com\/klamike","followers_url":"https:\/\/api.github.com\/users\/klamike\/followers","following_url":"https:\/\/api.github.com\/users\/klamike\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/klamike\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/klamike\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/klamike\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/klamike\/orgs","repos_url":"https:\/\/api.github.com\/users\/klamike\/repos","events_url":"https:\/\/api.github.com\/users\/klamike\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/klamike\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2025-07-18T21:09:41Z","updated_at":"2025-08-12T19:47:56Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7690","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7690","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7690.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7690.patch","merged_at":null},"body":"This PR adds support for tabular HDF5 file(s) by converting each row to an Arrow table. It supports columns with the usual dtypes including up to 5-dimensional arrays as well as support for complex\/compound types by using `Features(dict)`. All datasets within the HDF5 file should have rows on the first dimension (groups\/subgroups are still allowed). Closes #3113.\r\n\r\nReplaces #7625 which only supports a relatively small subset of HDF5.","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7690\/reactions","total_count":1,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":1,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7690\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7689","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7689\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7689\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7689\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7689","id":3242580301,"node_id":"I_kwDODunzps7BRdlN","number":7689,"title":"BadRequestError for loading dataset?","user":{"login":"WPoelman","id":45011687,"node_id":"MDQ6VXNlcjQ1MDExNjg3","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/45011687?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/WPoelman","html_url":"https:\/\/github.com\/WPoelman","followers_url":"https:\/\/api.github.com\/users\/WPoelman\/followers","following_url":"https:\/\/api.github.com\/users\/WPoelman\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/WPoelman\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/WPoelman\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/WPoelman\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/WPoelman\/orgs","repos_url":"https:\/\/api.github.com\/users\/WPoelman\/repos","events_url":"https:\/\/api.github.com\/users\/WPoelman\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/WPoelman\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":17,"created_at":"2025-07-18T09:30:04Z","updated_at":"2025-07-18T11:59:51Z","closed_at":"2025-07-18T11:52:29Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nUp until a couple days ago I was having no issues loading `Helsinki-NLP\/europarl` and `Helsinki-NLP\/un_pc`, but now suddenly I get the following error:\n\n```\nhuggingface_hub.errors.BadRequestError: (Request ID: ...)\n\nBad request:\n* Invalid input: expected array, received string * at paths * Invalid input: expected boolean, received string * at expand\n\u2716 Invalid input: expected array, received string\n \u2192 at paths\n\u2716 Invalid input: expected boolean, received string\n \u2192 at expand\n```\n\nI tried with both `4.0.0` and `3.5.1` since this dataset uses `trust_remote_code`, but I get the same error with both.\n\nWhat can I do to load the dataset? I checked the documentation and GitHub issues here, but couldn't find a solution.\n\n### Steps to reproduce the bug\n\n```python\nimport datasets\nds = datasets.load_dataset(\"Helsinki-NLP\/europarl\", \"en-fr\", streaming=True, trust_remote_code=True)[\"train\"]\n```\n\n### Expected behavior\n\nThat the dataset loads as it did a couple days ago.\n\n### Environment info\n\n- `datasets` version: 3.5.1\n- Platform: Linux-4.18.0-513.24.1.el8_9.x86_64-x86_64-with-glibc2.28\n- Python version: 3.11.11\n- `huggingface_hub` version: 0.30.2\n- PyArrow version: 20.0.0\n- Pandas version: 2.2.2\n- `fsspec` version: 2024.6.1","closed_by":{"login":"sergiopaniego","id":17179696,"node_id":"MDQ6VXNlcjE3MTc5Njk2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/17179696?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/sergiopaniego","html_url":"https:\/\/github.com\/sergiopaniego","followers_url":"https:\/\/api.github.com\/users\/sergiopaniego\/followers","following_url":"https:\/\/api.github.com\/users\/sergiopaniego\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/sergiopaniego\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/sergiopaniego\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/sergiopaniego\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/sergiopaniego\/orgs","repos_url":"https:\/\/api.github.com\/users\/sergiopaniego\/repos","events_url":"https:\/\/api.github.com\/users\/sergiopaniego\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/sergiopaniego\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7689\/reactions","total_count":23,"+1":23,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7689\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7688","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7688\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7688\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7688\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7688","id":3238851443,"node_id":"I_kwDODunzps7BDPNz","number":7688,"title":"No module named \"distributed\"","user":{"login":"yingtongxiong","id":45058324,"node_id":"MDQ6VXNlcjQ1MDU4MzI0","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/45058324?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/yingtongxiong","html_url":"https:\/\/github.com\/yingtongxiong","followers_url":"https:\/\/api.github.com\/users\/yingtongxiong\/followers","following_url":"https:\/\/api.github.com\/users\/yingtongxiong\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/yingtongxiong\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/yingtongxiong\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/yingtongxiong\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/yingtongxiong\/orgs","repos_url":"https:\/\/api.github.com\/users\/yingtongxiong\/repos","events_url":"https:\/\/api.github.com\/users\/yingtongxiong\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/yingtongxiong\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2025-07-17T09:32:35Z","updated_at":"2025-07-25T15:14:19Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nhello, when I run the command \"from datasets.distributed import split_dataset_by_node\", I always met the bug \"No module named 'datasets.distributed\" in different version like 4.0.0, 2.21.0 and so on. How can I solve this?\n\n### Steps to reproduce the bug\n\n1. pip install datasets\n2. from datasets.distributed import split_dataset_by_node\n\n### Expected behavior\n\nexpecting the command \"from datasets.distributed import split_dataset_by_node\" can be ran successfully\n\n### Environment info\n\npython: 3.12","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7688\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7688\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7687","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7687\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7687\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7687\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7687","id":3238760301,"node_id":"I_kwDODunzps7BC49t","number":7687,"title":"Datasets keeps rebuilding the dataset every time i call the python script","user":{"login":"CALEB789","id":58883113,"node_id":"MDQ6VXNlcjU4ODgzMTEz","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/58883113?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/CALEB789","html_url":"https:\/\/github.com\/CALEB789","followers_url":"https:\/\/api.github.com\/users\/CALEB789\/followers","following_url":"https:\/\/api.github.com\/users\/CALEB789\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/CALEB789\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/CALEB789\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/CALEB789\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/CALEB789\/orgs","repos_url":"https:\/\/api.github.com\/users\/CALEB789\/repos","events_url":"https:\/\/api.github.com\/users\/CALEB789\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/CALEB789\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-07-17T09:03:38Z","updated_at":"2025-07-25T15:21:31Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nEvery time it runs, somehow, samples increase.\nThis can cause a 12mb dataset to have other built versions of 400 mbs+\n\n\"Image\"\n\n### Steps to reproduce the bug\n\n\n`from datasets import load_dataset\ns = load_dataset('~\/.cache\/huggingface\/datasets\/databricks___databricks-dolly-15k')['train']\n`\n1. A dataset needs to be available in the .cache folder\n2. Run the code multiple times, and every time it runs, more versions are created\n\n\n### Expected behavior\n\nThe number of samples increases every time the script runs\n\n### Environment info\n\n- `datasets` version: 3.6.0\n- Platform: Windows-11-10.0.26100-SP0\n- Python version: 3.13.3\n- `huggingface_hub` version: 0.32.3\n- PyArrow version: 20.0.0\n- Pandas version: 2.2.3\n- `fsspec` version: 2025.3.0\n","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7687\/reactions","total_count":2,"+1":2,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7687\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7686","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7686\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7686\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7686\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7686","id":3237201090,"node_id":"I_kwDODunzps7A88TC","number":7686,"title":"load_dataset does not check .no_exist files in the hub cache","user":{"login":"jmaccarl","id":3627235,"node_id":"MDQ6VXNlcjM2MjcyMzU=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/3627235?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/jmaccarl","html_url":"https:\/\/github.com\/jmaccarl","followers_url":"https:\/\/api.github.com\/users\/jmaccarl\/followers","following_url":"https:\/\/api.github.com\/users\/jmaccarl\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/jmaccarl\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/jmaccarl\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/jmaccarl\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/jmaccarl\/orgs","repos_url":"https:\/\/api.github.com\/users\/jmaccarl\/repos","events_url":"https:\/\/api.github.com\/users\/jmaccarl\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/jmaccarl\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-07-16T20:04:00Z","updated_at":"2025-07-16T20:04:00Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI'm not entirely sure if this should be submitted as a bug in the `datasets` library or the `huggingface_hub` library, given it could be fixed at different levels of the stack.\n\nThe fundamental issue is that the `load_datasets` api doesn't use the `.no_exist` files in the hub cache unlike other wrapper APIs that do. This is because the `utils.file_utils.cached_path` used directly calls `hf_hub_download` instead of using `file_download.try_to_load_from_cache` from `huggingface_hub` (see `transformers` library `utils.hub.cached_files` for one alternate example).\n\nThis results in unnecessary metadata HTTP requests occurring for files that don't exist on every call. It won't generate the .no_exist cache files, nor will it use them.\n\n### Steps to reproduce the bug\n\nRun the following snippet as one example (setting cache dirs to clean paths for clarity)\n`env HF_HOME=~\/local_hf_hub python repro.py`\n```\nfrom datasets import load_dataset\n\nimport huggingface_hub\n\n# monkeypatch to print out metadata requests being made\noriginal_get_hf_file_metadata = huggingface_hub.file_download.get_hf_file_metadata\n\ndef get_hf_file_metadata_wrapper(*args, **kwargs):\n print(\"File metadata request made (get_hf_file_metadata):\", args, kwargs)\n return original_get_hf_file_metadata(*args, **kwargs)\n\n# Apply the patch\nhuggingface_hub.file_download.get_hf_file_metadata = get_hf_file_metadata_wrapper\n\ndataset = load_dataset(\n \"Salesforce\/wikitext\",\n \"wikitext-2-v1\",\n split=\"test\",\n trust_remote_code=True,\n cache_dir=\"~\/local_datasets\",\n revision=\"b08601e04326c79dfdd32d625aee71d232d685c3\",\n)\n```\n\nThis may be called over and over again, and you will see the same calls for files that don't exist:\n```\nFile metadata request made (get_hf_file_metadata): () {'url': 'https:\/\/huggingface.co\/datasets\/Salesforce\/wikitext\/resolve\/b08601e04326c79dfdd32d625aee71d232d685c3\/wikitext.py', 'proxies': None, 'timeout': 10, 'headers': {'user-agent': 'datasets\/3.6.0; hf_hub\/0.33.2; python\/3.12.11; torch\/2.7.0; huggingface_hub\/0.33.2; pyarrow\/20.0.0; jax\/0.5.3'}, 'token': None}\nFile metadata request made (get_hf_file_metadata): () {'url': 'https:\/\/huggingface.co\/datasets\/Salesforce\/wikitext\/resolve\/b08601e04326c79dfdd32d625aee71d232d685c3\/.huggingface.yaml', 'proxies': None, 'timeout': 10, 'headers': {'user-agent': 'datasets\/3.6.0; hf_hub\/0.33.2; python\/3.12.11; torch\/2.7.0; huggingface_hub\/0.33.2; pyarrow\/20.0.0; jax\/0.5.3'}, 'token': None}\nFile metadata request made (get_hf_file_metadata): () {'url': 'https:\/\/huggingface.co\/datasets\/Salesforce\/wikitext\/resolve\/b08601e04326c79dfdd32d625aee71d232d685c3\/dataset_infos.json', 'proxies': None, 'timeout': 10, 'headers': {'user-agent': 'datasets\/3.6.0; hf_hub\/0.33.2; python\/3.12.11; torch\/2.7.0; huggingface_hub\/0.33.2; pyarrow\/20.0.0; jax\/0.5.3'}, 'token': None}\n```\n\nAnd you can see that the .no_exist folder is never created\n```\n$ ls ~\/local_hf_hub\/hub\/datasets--Salesforce--wikitext\/\nblobs refs snapshots\n```\n\n\n### Expected behavior\n\nThe expected behavior is for the print \"File metadata request made\" to stop after the first call, and for .no_exist directory & files to be populated under ~\/local_hf_hub\/hub\/datasets--Salesforce--wikitext\/\n\n### Environment info\n\n- `datasets` version: 3.6.0\n- Platform: Linux-6.5.13-65-650-4141-22041-coreweave-amd64-85c45edc-x86_64-with-glibc2.35\n- Python version: 3.12.11\n- `huggingface_hub` version: 0.33.2\n- PyArrow version: 20.0.0\n- Pandas version: 2.3.1\n- `fsspec` version: 2024.9.0","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7686\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7686\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7685","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7685\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7685\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7685\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7685","id":3236979340,"node_id":"I_kwDODunzps7A8GKM","number":7685,"title":"Inconsistent range request behavior for parquet REST api","user":{"login":"universalmind303","id":21327470,"node_id":"MDQ6VXNlcjIxMzI3NDcw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/21327470?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/universalmind303","html_url":"https:\/\/github.com\/universalmind303","followers_url":"https:\/\/api.github.com\/users\/universalmind303\/followers","following_url":"https:\/\/api.github.com\/users\/universalmind303\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/universalmind303\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/universalmind303\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/universalmind303\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/universalmind303\/orgs","repos_url":"https:\/\/api.github.com\/users\/universalmind303\/repos","events_url":"https:\/\/api.github.com\/users\/universalmind303\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/universalmind303\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2025-07-16T18:39:44Z","updated_at":"2025-08-11T08:16:54Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nFirst off, I do apologize if this is not the correct repo for submitting this issue. Please direct me to another one if it's more appropriate elsewhere. \n\nThe datasets rest api is inconsistently giving `416 Range Not Satisfiable` when using a range request to get portions of the parquet files. More often than not, I am seeing 416, but other times for an identical request, it gives me the data along with `206 Partial Content` as expected. \n\n\n\n\n### Steps to reproduce the bug\n\nrepeating this request multiple times will return either 416 or 206. \n```sh\n$ curl -v -L -H \"Range: bytes=217875070-218006142\" -o output.parquet \"https:\/\/huggingface.co\/api\/datasets\/HuggingFaceTB\/smoltalk2\/parquet\/Mid\/Llama_Nemotron_Post_Training_Dataset_reasoning_r1\/0.parquet\"\n```\nNote: this is not limited to just the above file, I tried with many different datasets and am able to consistently reproduce issue across multiple datasets.\n\nwhen the 416 is returned, I get the following headers\n```\n< HTTP\/2 416\n< content-type: text\/html\n< content-length: 49\n< server: CloudFront\n< date: Wed, 16 Jul 2025 14:58:43 GMT\n< expires: Wed, 16 Jul 2025 14:58:43 GMT\n< content-range: bytes *\/177\n< x-cache: Error from cloudfront\n< via: 1.1 873527676a354c5998cad133525df9c0.cloudfront.net (CloudFront)\n<\n```\n\nthis suggests to me that there is likely a CDN\/caching\/routing issue happening and the request is not getting routed properly. \n\n\n\nFull verbose output via curl. \n
\n\n\u276f curl -v -L -H \"Range: bytes=217875070-218006142\" -o output.parquet \"https:\/\/huggingface.co\/api\/datasets\/HuggingFaceTB\/smoltalk2\/parquet\/Mid\/Llama_Nemotron_Post_Training_Dataset_reasoning_r1\/0.parquet\"\n % Total % Received % Xferd Average Speed Time Time Time Current\n Dload Upload Total Spent Left Speed\n 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Host huggingface.co:443 was resolved.\n* IPv6: (none)\n* IPv4: 18.160.102.96, 18.160.102.110, 18.160.102.4, 18.160.102.86\n* Trying 18.160.102.96:443...\n* Connected to huggingface.co (18.160.102.96) port 443\n* ALPN: curl offers h2,http\/1.1\n* (304) (OUT), TLS handshake, Client hello (1):\n} [319 bytes data]\n* CAfile: \/etc\/ssl\/cert.pem\n* CApath: none\n* (304) (IN), TLS handshake, Server hello (2):\n{ [122 bytes data]\n* (304) (IN), TLS handshake, Unknown (8):\n{ [19 bytes data]\n* (304) (IN), TLS handshake, Certificate (11):\n{ [3821 bytes data]\n* (304) (IN), TLS handshake, CERT verify (15):\n{ [264 bytes data]\n* (304) (IN), TLS handshake, Finished (20):\n{ [36 bytes data]\n* (304) (OUT), TLS handshake, Finished (20):\n} [36 bytes data]\n* SSL connection using TLSv1.3 \/ AEAD-AES128-GCM-SHA256 \/ [blank] \/ UNDEF\n* ALPN: server accepted h2\n* Server certificate:\n* subject: CN=huggingface.co\n* start date: Apr 13 00:00:00 2025 GMT\n* expire date: May 12 23:59:59 2026 GMT\n* subjectAltName: host \"huggingface.co\" matched cert's \"huggingface.co\"\n* issuer: C=US; O=Amazon; CN=Amazon RSA 2048 M02\n* SSL certificate verify ok.\n* using HTTP\/2\n* [HTTP\/2] [1] OPENED stream for https:\/\/huggingface.co\/api\/datasets\/HuggingFaceTB\/smoltalk2\/parquet\/Mid\/Llama_Nemotron_Post_Training_Dataset_reasoning_r1\/0.parquet\n* [HTTP\/2] [1] [:method: GET]\n* [HTTP\/2] [1] [:scheme: https]\n* [HTTP\/2] [1] [:authority: huggingface.co]\n* [HTTP\/2] [1] [:path: \/api\/datasets\/HuggingFaceTB\/smoltalk2\/parquet\/Mid\/Llama_Nemotron_Post_Training_Dataset_reasoning_r1\/0.parquet]\n* [HTTP\/2] [1] [user-agent: curl\/8.7.1]\n* [HTTP\/2] [1] [accept: *\/*]\n* [HTTP\/2] [1] [range: bytes=217875070-218006142]\n> GET \/api\/datasets\/HuggingFaceTB\/smoltalk2\/parquet\/Mid\/Llama_Nemotron_Post_Training_Dataset_reasoning_r1\/0.parquet HTTP\/2\n> Host: huggingface.co\n> User-Agent: curl\/8.7.1\n> Accept: *\/*\n> Range: bytes=217875070-218006142\n>\n* Request completely sent off\n< HTTP\/2 416\n< content-type: text\/html\n< content-length: 49\n< server: CloudFront\n< date: Wed, 16 Jul 2025 14:58:41 GMT\n< expires: Wed, 16 Jul 2025 14:58:41 GMT\n< content-range: bytes *\/177\n< x-cache: Error from cloudfront\n< via: 1.1 e2f1bed2f82641d6d5439eac20a790ba.cloudfront.net (CloudFront)\n< x-amz-cf-pop: MSP50-P1\n< x-amz-cf-id: Mo8hn-EZLJqE_hoBday8DdhmVXhV3v9-Wg-EEHI6gX_fNlkanVIUBA==\n<\n{ [49 bytes data]\n100 49 100 49 0 0 2215 0 --:--:-- --:--:-- --:--:-- 2227\n* Connection #0 to host huggingface.co left intact\n\n(.venv) Daft main*\u200b* \u2261\u276f curl -v -L -H \"Range: bytes=217875070-218006142\" -o output.parquet \"https:\/\/huggingface.co\/api\/datasets\/HuggingFaceTB\/smoltalk2\/parquet\/Mid\/Llama_Nemotron_Post_Training_Dataset_reasoning_r1\/0.parquet\"\n % Total % Received % Xferd Average Speed Time Time Time Current\n Dload Upload Total Spent Left Speed\n 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Host huggingface.co:443 was resolved.\n* IPv6: (none)\n* IPv4: 18.160.102.96, 18.160.102.110, 18.160.102.4, 18.160.102.86\n* Trying 18.160.102.96:443...\n* Connected to huggingface.co (18.160.102.96) port 443\n* ALPN: curl offers h2,http\/1.1\n* (304) (OUT), TLS handshake, Client hello (1):\n} [319 bytes data]\n* CAfile: \/etc\/ssl\/cert.pem\n* CApath: none\n* (304) (IN), TLS handshake, Server hello (2):\n{ [122 bytes data]\n* (304) (IN), TLS handshake, Unknown (8):\n{ [19 bytes data]\n* (304) (IN), TLS handshake, Certificate (11):\n{ [3821 bytes data]\n* (304) (IN), TLS handshake, CERT verify (15):\n{ [264 bytes data]\n* (304) (IN), TLS handshake, Finished (20):\n{ [36 bytes data]\n* (304) (OUT), TLS handshake, Finished (20):\n} [36 bytes data]\n* SSL connection using TLSv1.3 \/ AEAD-AES128-GCM-SHA256 \/ [blank] \/ UNDEF\n* ALPN: server accepted h2\n* Server certificate:\n* subject: CN=huggingface.co\n* start date: Apr 13 00:00:00 2025 GMT\n* expire date: May 12 23:59:59 2026 GMT\n* subjectAltName: host \"huggingface.co\" matched cert's \"huggingface.co\"\n* issuer: C=US; O=Amazon; CN=Amazon RSA 2048 M02\n* SSL certificate verify ok.\n* using HTTP\/2\n* [HTTP\/2] [1] OPENED stream for https:\/\/huggingface.co\/api\/datasets\/HuggingFaceTB\/smoltalk2\/parquet\/Mid\/Llama_Nemotron_Post_Training_Dataset_reasoning_r1\/0.parquet\n* [HTTP\/2] [1] [:method: GET]\n* [HTTP\/2] [1] [:scheme: https]\n* [HTTP\/2] [1] [:authority: huggingface.co]\n* [HTTP\/2] [1] [:path: \/api\/datasets\/HuggingFaceTB\/smoltalk2\/parquet\/Mid\/Llama_Nemotron_Post_Training_Dataset_reasoning_r1\/0.parquet]\n* [HTTP\/2] [1] [user-agent: curl\/8.7.1]\n* [HTTP\/2] [1] [accept: *\/*]\n* [HTTP\/2] [1] [range: bytes=217875070-218006142]\n> GET \/api\/datasets\/HuggingFaceTB\/smoltalk2\/parquet\/Mid\/Llama_Nemotron_Post_Training_Dataset_reasoning_r1\/0.parquet HTTP\/2\n> Host: huggingface.co\n> User-Agent: curl\/8.7.1\n> Accept: *\/*\n> Range: bytes=217875070-218006142\n>\n* Request completely sent off\n< HTTP\/2 416\n< content-type: text\/html\n< content-length: 49\n< server: CloudFront\n< date: Wed, 16 Jul 2025 14:58:42 GMT\n< expires: Wed, 16 Jul 2025 14:58:42 GMT\n< content-range: bytes *\/177\n< x-cache: Error from cloudfront\n< via: 1.1 bb352451e1eacf85f8786ee3ecd07eca.cloudfront.net (CloudFront)\n< x-amz-cf-pop: MSP50-P1\n< x-amz-cf-id: 9xy-CX9KvlS8Ye4eFr8jXMDobZHFkvdyvkLJGmK_qiwZQywCCwfq7Q==\n<\n{ [49 bytes data]\n100 49 100 49 0 0 2381 0 --:--:-- --:--:-- --:--:-- 2450\n* Connection #0 to host huggingface.co left intact\n\n(.venv) Daft main*\u200b* \u2261\u276f curl -v -L -H \"Range: bytes=217875070-218006142\" -o output.parquet \"https:\/\/huggingface.co\/api\/datasets\/HuggingFaceTB\/smoltalk2\/parquet\/Mid\/Llama_Nemotron_Post_Training_Dataset_reasoning_r1\/0.parquet\"\n % Total % Received % Xferd Average Speed Time Time Time Current\n Dload Upload Total Spent Left Speed\n 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Host huggingface.co:443 was resolved.\n* IPv6: (none)\n* IPv4: 18.160.102.96, 18.160.102.110, 18.160.102.4, 18.160.102.86\n* Trying 18.160.102.96:443...\n* Connected to huggingface.co (18.160.102.96) port 443\n* ALPN: curl offers h2,http\/1.1\n* (304) (OUT), TLS handshake, Client hello (1):\n} [319 bytes data]\n* CAfile: \/etc\/ssl\/cert.pem\n* CApath: none\n* (304) (IN), TLS handshake, Server hello (2):\n{ [122 bytes data]\n* (304) (IN), TLS handshake, Unknown (8):\n{ [19 bytes data]\n* (304) (IN), TLS handshake, Certificate (11):\n{ [3821 bytes data]\n* (304) (IN), TLS handshake, CERT verify (15):\n{ [264 bytes data]\n* (304) (IN), TLS handshake, Finished (20):\n{ [36 bytes data]\n* (304) (OUT), TLS handshake, Finished (20):\n} [36 bytes data]\n* SSL connection using TLSv1.3 \/ AEAD-AES128-GCM-SHA256 \/ [blank] \/ UNDEF\n* ALPN: server accepted h2\n* Server certificate:\n* subject: CN=huggingface.co\n* start date: Apr 13 00:00:00 2025 GMT\n* expire date: May 12 23:59:59 2026 GMT\n* subjectAltName: host \"huggingface.co\" matched cert's \"huggingface.co\"\n* issuer: C=US; O=Amazon; CN=Amazon RSA 2048 M02\n* SSL certificate verify ok.\n* using HTTP\/2\n* [HTTP\/2] [1] OPENED stream for https:\/\/huggingface.co\/api\/datasets\/HuggingFaceTB\/smoltalk2\/parquet\/Mid\/Llama_Nemotron_Post_Training_Dataset_reasoning_r1\/0.parquet\n* [HTTP\/2] [1] [:method: GET]\n* [HTTP\/2] [1] [:scheme: https]\n* [HTTP\/2] [1] [:authority: huggingface.co]\n* [HTTP\/2] [1] [:path: \/api\/datasets\/HuggingFaceTB\/smoltalk2\/parquet\/Mid\/Llama_Nemotron_Post_Training_Dataset_reasoning_r1\/0.parquet]\n* [HTTP\/2] [1] [user-agent: curl\/8.7.1]\n* [HTTP\/2] [1] [accept: *\/*]\n* [HTTP\/2] [1] [range: bytes=217875070-218006142]\n> GET \/api\/datasets\/HuggingFaceTB\/smoltalk2\/parquet\/Mid\/Llama_Nemotron_Post_Training_Dataset_reasoning_r1\/0.parquet HTTP\/2\n> Host: huggingface.co\n> User-Agent: curl\/8.7.1\n> Accept: *\/*\n> Range: bytes=217875070-218006142\n>\n* Request completely sent off\n< HTTP\/2 416\n< content-type: text\/html\n< content-length: 49\n< server: CloudFront\n< date: Wed, 16 Jul 2025 14:58:43 GMT\n< expires: Wed, 16 Jul 2025 14:58:43 GMT\n< content-range: bytes *\/177\n< x-cache: Error from cloudfront\n< via: 1.1 873527676a354c5998cad133525df9c0.cloudfront.net (CloudFront)\n< x-amz-cf-pop: MSP50-P1\n< x-amz-cf-id: wtBgwY4u4YJ2pD1ovM8UV770UiJoqWfs7i7VzschDyoLv5g7swGGmw==\n<\n{ [49 bytes data]\n100 49 100 49 0 0 2273 0 --:--:-- --:--:-- --:--:-- 2333\n* Connection #0 to host huggingface.co left intact\n\n(.venv) Daft main*\u200b* \u2261\u276f curl -v -L -H \"Range: bytes=217875070-218006142\" -o output.parquet \"https:\/\/huggingface.co\/api\/datasets\/HuggingFaceTB\/smoltalk2\/parquet\/Mid\/Llama_Nemotron_Post_Training_Dataset_reasoning_r1\/0.parquet\"\n % Total % Received % Xferd Average Speed Time Time Time Current\n Dload Upload Total Spent Left Speed\n 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Host huggingface.co:443 was resolved.\n* IPv6: (none)\n* IPv4: 18.160.102.96, 18.160.102.110, 18.160.102.4, 18.160.102.86\n* Trying 18.160.102.96:443...\n* Connected to huggingface.co (18.160.102.96) port 443\n* ALPN: curl offers h2,http\/1.1\n* (304) (OUT), TLS handshake, Client hello (1):\n} [319 bytes data]\n* CAfile: \/etc\/ssl\/cert.pem\n* CApath: none\n* (304) (IN), TLS handshake, Server hello (2):\n{ [122 bytes data]\n* (304) (IN), TLS handshake, Unknown (8):\n{ [19 bytes data]\n* (304) (IN), TLS handshake, Certificate (11):\n{ [3821 bytes data]\n* (304) (IN), TLS handshake, CERT verify (15):\n{ [264 bytes data]\n* (304) (IN), TLS handshake, Finished (20):\n{ [36 bytes data]\n* (304) (OUT), TLS handshake, Finished (20):\n} [36 bytes data]\n* SSL connection using TLSv1.3 \/ AEAD-AES128-GCM-SHA256 \/ [blank] \/ UNDEF\n* ALPN: server accepted h2\n* Server certificate:\n* subject: CN=huggingface.co\n* start date: Apr 13 00:00:00 2025 GMT\n* expire date: May 12 23:59:59 2026 GMT\n* subjectAltName: host \"huggingface.co\" matched cert's \"huggingface.co\"\n* issuer: C=US; O=Amazon; CN=Amazon RSA 2048 M02\n* SSL certificate verify ok.\n* using HTTP\/2\n* [HTTP\/2] [1] OPENED stream for https:\/\/huggingface.co\/api\/datasets\/HuggingFaceTB\/smoltalk2\/parquet\/Mid\/Llama_Nemotron_Post_Training_Dataset_reasoning_r1\/0.parquet\n* [HTTP\/2] [1] [:method: GET]\n* [HTTP\/2] [1] [:scheme: https]\n* [HTTP\/2] [1] [:authority: huggingface.co]\n* [HTTP\/2] [1] [:path: \/api\/datasets\/HuggingFaceTB\/smoltalk2\/parquet\/Mid\/Llama_Nemotron_Post_Training_Dataset_reasoning_r1\/0.parquet]\n* [HTTP\/2] [1] [user-agent: curl\/8.7.1]\n* [HTTP\/2] [1] [accept: *\/*]\n* [HTTP\/2] [1] [range: bytes=217875070-218006142]\n> GET \/api\/datasets\/HuggingFaceTB\/smoltalk2\/parquet\/Mid\/Llama_Nemotron_Post_Training_Dataset_reasoning_r1\/0.parquet HTTP\/2\n> Host: huggingface.co\n> User-Agent: curl\/8.7.1\n> Accept: *\/*\n> Range: bytes=217875070-218006142\n>\n* Request completely sent off\n< HTTP\/2 302\n< content-type: text\/plain; charset=utf-8\n< content-length: 177\n< location: https:\/\/huggingface.co\/datasets\/HuggingFaceTB\/smoltalk2\/resolve\/refs%2Fconvert%2Fparquet\/Mid\/Llama_Nemotron_Post_Training_Dataset_reasoning_r1\/0000.parquet\n< date: Wed, 16 Jul 2025 14:58:44 GMT\n< x-powered-by: huggingface-moon\n< cross-origin-opener-policy: same-origin\n< referrer-policy: strict-origin-when-cross-origin\n< x-request-id: Root=1-6877be24-476860f03849cb1a1570c9d8\n< access-control-allow-origin: https:\/\/huggingface.co\n< access-control-expose-headers: X-Repo-Commit,X-Request-Id,X-Error-Code,X-Error-Message,X-Total-Count,ETag,Link,Accept-Ranges,Content-Range,X-Linked-Size,X-Linked-ETag,X-Xet-Hash\n< set-cookie: token=; Path=\/; Expires=Thu, 01 Jan 1970 00:00:00 GMT; Secure; SameSite=None\n< set-cookie: token=; Domain=huggingface.co; Path=\/; Expires=Thu, 01 Jan 1970 00:00:00 GMT; Secure; SameSite=Lax\n< x-cache: Miss from cloudfront\n< via: 1.1 dd5af138aa8a11d8a70d5ef690ad1a2a.cloudfront.net (CloudFront)\n< x-amz-cf-pop: MSP50-P1\n< x-amz-cf-id: xuSi0X5RpH1OZqQOM8gGQLQLU8eOM6Gbkk-bgIX_qBnTTaa1VNkExA==\n<\n* Ignoring the response-body\n100 177 100 177 0 0 2021 0 --:--:-- --:--:-- --:--:-- 2034\n* Connection #0 to host huggingface.co left intact\n* Issue another request to this URL: 'https:\/\/huggingface.co\/datasets\/HuggingFaceTB\/smoltalk2\/resolve\/refs%2Fconvert%2Fparquet\/Mid\/Llama_Nemotron_Post_Training_Dataset_reasoning_r1\/0000.parquet'\n* Found bundle for host: 0x600002d54570 [can multiplex]\n* Re-using existing connection with host huggingface.co\n* [HTTP\/2] [3] OPENED stream for https:\/\/huggingface.co\/datasets\/HuggingFaceTB\/smoltalk2\/resolve\/refs%2Fconvert%2Fparquet\/Mid\/Llama_Nemotron_Post_Training_Dataset_reasoning_r1\/0000.parquet\n* [HTTP\/2] [3] [:method: GET]\n* [HTTP\/2] [3] [:scheme: https]\n* [HTTP\/2] [3] [:authority: huggingface.co]\n* [HTTP\/2] [3] [:path: \/datasets\/HuggingFaceTB\/smoltalk2\/resolve\/refs%2Fconvert%2Fparquet\/Mid\/Llama_Nemotron_Post_Training_Dataset_reasoning_r1\/0000.parquet]\n* [HTTP\/2] [3] [user-agent: curl\/8.7.1]\n* [HTTP\/2] [3] [accept: *\/*]\n* [HTTP\/2] [3] [range: bytes=217875070-218006142]\n> GET \/datasets\/HuggingFaceTB\/smoltalk2\/resolve\/refs%2Fconvert%2Fparquet\/Mid\/Llama_Nemotron_Post_Training_Dataset_reasoning_r1\/0000.parquet HTTP\/2\n> Host: huggingface.co\n> User-Agent: curl\/8.7.1\n> Accept: *\/*\n> Range: bytes=217875070-218006142\n>\n* Request completely sent off\n< HTTP\/2 302\n< content-type: text\/plain; charset=utf-8\n< content-length: 1317\n< location: https:\/\/cas-bridge.xethub.hf.co\/xet-bridge-us\/686fc33898943c873b45c9a0\/cf8a3a5665cf8b2ff667fb5236a1e5cb13c7582955f9533c88e1387997ef3af9?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=cas%2F20250716%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250716T145416Z&X-Amz-Expires=3600&X-Amz-Signature=21a15b50740d73fd8ce82d5105733ca067d2e612ada22570e09e93ebcc7f8842&X-Amz-SignedHeaders=host&X-Xet-Cas-Uid=public&response-content-disposition=inline%3B+filename*%3DUTF-8%27%270000.parquet%3B+filename%3D%220000.parquet%22%3B&x-id=GetObject&Expires=1752681256&Policy=eyJTdGF0ZW1lbnQiOlt7IkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTc1MjY4MTI1Nn19LCJSZXNvdXJjZSI6Imh0dHBzOi8vY2FzLWJyaWRnZS54ZXRodWIuaGYuY28veGV0LWJyaWRnZS11cy82ODZmYzMzODk4OTQzYzg3M2I0NWM5YTAvY2Y4YTNhNTY2NWNmOGIyZmY2NjdmYjUyMzZhMWU1Y2IxM2M3NTgyOTU1Zjk1MzNjODhlMTM4Nzk5N2VmM2FmOSoifV19&Signature=Tl3xorJ-7yaWvG6Y1AhhRlV2Wko9QpoK1tdPOfNZaRbHo%7EdaAkJRJfcLAYD5YzozfHWBZMLlJsaMPJ1MAne21nr5%7E737sE6yLfBwHdP3ZFZhgrLsN%7EvkIWK2GYX543qTg-pVsf3it92w1oWyoyYNQ9srxLfEIuG2AKV2Nu3Ejl7S%7EaAq4Gv4jNemvRTLBFGgYPdUeuavudl4OD4RGkSGTnpzh-P-OBk5WvgpdZZnbb1cRAP73tFHsPDX4%7ETfQIor109G%7E0TB3Jq0wopO9WV0sMQyQs9peZc6bxONiTxb9aHM4yNvWNbVGtlPuC6YS4c9T1e9%7EehdgU4sDOI%7EhpaCvg__&Key-Pair-Id=K2L8F4GPSG1IFC\n< date: Wed, 16 Jul 2025 14:58:44 GMT\n< x-powered-by: huggingface-moon\n< cross-origin-opener-policy: same-origin\n< referrer-policy: strict-origin-when-cross-origin\n< x-request-id: Root=1-6877be24-4f628b292dc8a7a5339c41d3\n< access-control-allow-origin: https:\/\/huggingface.co\n< vary: Origin, Accept\n< access-control-expose-headers: X-Repo-Commit,X-Request-Id,X-Error-Code,X-Error-Message,X-Total-Count,ETag,Link,Accept-Ranges,Content-Range,X-Linked-Size,X-Linked-ETag,X-Xet-Hash\n< set-cookie: token=; Path=\/; Expires=Thu, 01 Jan 1970 00:00:00 GMT; Secure; SameSite=None\n< set-cookie: token=; Domain=huggingface.co; Path=\/; Expires=Thu, 01 Jan 1970 00:00:00 GMT; Secure; SameSite=Lax\n< x-repo-commit: 712df366ffbc959d9f4279bf2da579230b7ca5d8\n< accept-ranges: bytes\n< x-linked-size: 218006142\n< x-linked-etag: \"01736bf26d0046ddec4ab8900fba3f0dc6500b038314b44d0edb73a7c88dec07\"\n< x-xet-hash: cf8a3a5665cf8b2ff667fb5236a1e5cb13c7582955f9533c88e1387997ef3af9\n< link: ; rel=\"xet-auth\", ; rel=\"xet-reconstruction-info\"\n< x-cache: Miss from cloudfront\n< via: 1.1 dd5af138aa8a11d8a70d5ef690ad1a2a.cloudfront.net (CloudFront)\n< x-amz-cf-pop: MSP50-P1\n< x-amz-cf-id: 0qXw2sJGrWCLVt7c-Vtn09uE3nu6CrJw9RmAKvNr_flG75muclvlIg==\n<\n* Ignoring the response-body\n100 1317 100 1317 0 0 9268 0 --:--:-- --:--:-- --:--:-- 9268\n* Connection #0 to host huggingface.co left intact\n* Issue another request to this URL: 'https:\/\/cas-bridge.xethub.hf.co\/xet-bridge-us\/686fc33898943c873b45c9a0\/cf8a3a5665cf8b2ff667fb5236a1e5cb13c7582955f9533c88e1387997ef3af9?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=cas%2F20250716%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250716T145416Z&X-Amz-Expires=3600&X-Amz-Signature=21a15b50740d73fd8ce82d5105733ca067d2e612ada22570e09e93ebcc7f8842&X-Amz-SignedHeaders=host&X-Xet-Cas-Uid=public&response-content-disposition=inline%3B+filename*%3DUTF-8%27%270000.parquet%3B+filename%3D%220000.parquet%22%3B&x-id=GetObject&Expires=1752681256&Policy=eyJTdGF0ZW1lbnQiOlt7IkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTc1MjY4MTI1Nn19LCJSZXNvdXJjZSI6Imh0dHBzOi8vY2FzLWJyaWRnZS54ZXRodWIuaGYuY28veGV0LWJyaWRnZS11cy82ODZmYzMzODk4OTQzYzg3M2I0NWM5YTAvY2Y4YTNhNTY2NWNmOGIyZmY2NjdmYjUyMzZhMWU1Y2IxM2M3NTgyOTU1Zjk1MzNjODhlMTM4Nzk5N2VmM2FmOSoifV19&Signature=Tl3xorJ-7yaWvG6Y1AhhRlV2Wko9QpoK1tdPOfNZaRbHo%7EdaAkJRJfcLAYD5YzozfHWBZMLlJsaMPJ1MAne21nr5%7E737sE6yLfBwHdP3ZFZhgrLsN%7EvkIWK2GYX543qTg-pVsf3it92w1oWyoyYNQ9srxLfEIuG2AKV2Nu3Ejl7S%7EaAq4Gv4jNemvRTLBFGgYPdUeuavudl4OD4RGkSGTnpzh-P-OBk5WvgpdZZnbb1cRAP73tFHsPDX4%7ETfQIor109G%7E0TB3Jq0wopO9WV0sMQyQs9peZc6bxONiTxb9aHM4yNvWNbVGtlPuC6YS4c9T1e9%7EehdgU4sDOI%7EhpaCvg__&Key-Pair-Id=K2L8F4GPSG1IFC'\n* Host cas-bridge.xethub.hf.co:443 was resolved.\n* IPv6: (none)\n* IPv4: 18.160.181.55, 18.160.181.54, 18.160.181.52, 18.160.181.88\n* Trying 18.160.181.55:443...\n* Connected to cas-bridge.xethub.hf.co (18.160.181.55) port 443\n* ALPN: curl offers h2,http\/1.1\n* (304) (OUT), TLS handshake, Client hello (1):\n} [328 bytes data]\n* (304) (IN), TLS handshake, Server hello (2):\n{ [122 bytes data]\n* (304) (IN), TLS handshake, Unknown (8):\n{ [19 bytes data]\n* (304) (IN), TLS handshake, Certificate (11):\n{ [3818 bytes data]\n* (304) (IN), TLS handshake, CERT verify (15):\n{ [264 bytes data]\n* (304) (IN), TLS handshake, Finished (20):\n{ [36 bytes data]\n* (304) (OUT), TLS handshake, Finished (20):\n} [36 bytes data]\n* SSL connection using TLSv1.3 \/ AEAD-AES128-GCM-SHA256 \/ [blank] \/ UNDEF\n* ALPN: server accepted h2\n* Server certificate:\n* subject: CN=cas-bridge.xethub.hf.co\n* start date: Jun 4 00:00:00 2025 GMT\n* expire date: Jul 3 23:59:59 2026 GMT\n* subjectAltName: host \"cas-bridge.xethub.hf.co\" matched cert's \"cas-bridge.xethub.hf.co\"\n* issuer: C=US; O=Amazon; CN=Amazon RSA 2048 M04\n* SSL certificate verify ok.\n* using HTTP\/2\n* [HTTP\/2] [1] OPENED stream for https:\/\/cas-bridge.xethub.hf.co\/xet-bridge-us\/686fc33898943c873b45c9a0\/cf8a3a5665cf8b2ff667fb5236a1e5cb13c7582955f9533c88e1387997ef3af9?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=cas%2F20250716%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250716T145416Z&X-Amz-Expires=3600&X-Amz-Signature=21a15b50740d73fd8ce82d5105733ca067d2e612ada22570e09e93ebcc7f8842&X-Amz-SignedHeaders=host&X-Xet-Cas-Uid=public&response-content-disposition=inline%3B+filename*%3DUTF-8%27%270000.parquet%3B+filename%3D%220000.parquet%22%3B&x-id=GetObject&Expires=1752681256&Policy=eyJTdGF0ZW1lbnQiOlt7IkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTc1MjY4MTI1Nn19LCJSZXNvdXJjZSI6Imh0dHBzOi8vY2FzLWJyaWRnZS54ZXRodWIuaGYuY28veGV0LWJyaWRnZS11cy82ODZmYzMzODk4OTQzYzg3M2I0NWM5YTAvY2Y4YTNhNTY2NWNmOGIyZmY2NjdmYjUyMzZhMWU1Y2IxM2M3NTgyOTU1Zjk1MzNjODhlMTM4Nzk5N2VmM2FmOSoifV19&Signature=Tl3xorJ-7yaWvG6Y1AhhRlV2Wko9QpoK1tdPOfNZaRbHo%7EdaAkJRJfcLAYD5YzozfHWBZMLlJsaMPJ1MAne21nr5%7E737sE6yLfBwHdP3ZFZhgrLsN%7EvkIWK2GYX543qTg-pVsf3it92w1oWyoyYNQ9srxLfEIuG2AKV2Nu3Ejl7S%7EaAq4Gv4jNemvRTLBFGgYPdUeuavudl4OD4RGkSGTnpzh-P-OBk5WvgpdZZnbb1cRAP73tFHsPDX4%7ETfQIor109G%7E0TB3Jq0wopO9WV0sMQyQs9peZc6bxONiTxb9aHM4yNvWNbVGtlPuC6YS4c9T1e9%7EehdgU4sDOI%7EhpaCvg__&Key-Pair-Id=K2L8F4GPSG1IFC\n* [HTTP\/2] [1] [:method: GET]\n* [HTTP\/2] [1] [:scheme: https]\n* [HTTP\/2] [1] [:authority: cas-bridge.xethub.hf.co]\n* [HTTP\/2] [1] [:path: \/xet-bridge-us\/686fc33898943c873b45c9a0\/cf8a3a5665cf8b2ff667fb5236a1e5cb13c7582955f9533c88e1387997ef3af9?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=cas%2F20250716%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250716T145416Z&X-Amz-Expires=3600&X-Amz-Signature=21a15b50740d73fd8ce82d5105733ca067d2e612ada22570e09e93ebcc7f8842&X-Amz-SignedHeaders=host&X-Xet-Cas-Uid=public&response-content-disposition=inline%3B+filename*%3DUTF-8%27%270000.parquet%3B+filename%3D%220000.parquet%22%3B&x-id=GetObject&Expires=1752681256&Policy=eyJTdGF0ZW1lbnQiOlt7IkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTc1MjY4MTI1Nn19LCJSZXNvdXJjZSI6Imh0dHBzOi8vY2FzLWJyaWRnZS54ZXRodWIuaGYuY28veGV0LWJyaWRnZS11cy82ODZmYzMzODk4OTQzYzg3M2I0NWM5YTAvY2Y4YTNhNTY2NWNmOGIyZmY2NjdmYjUyMzZhMWU1Y2IxM2M3NTgyOTU1Zjk1MzNjODhlMTM4Nzk5N2VmM2FmOSoifV19&Signature=Tl3xorJ-7yaWvG6Y1AhhRlV2Wko9QpoK1tdPOfNZaRbHo%7EdaAkJRJfcLAYD5YzozfHWBZMLlJsaMPJ1MAne21nr5%7E737sE6yLfBwHdP3ZFZhgrLsN%7EvkIWK2GYX543qTg-pVsf3it92w1oWyoyYNQ9srxLfEIuG2AKV2Nu3Ejl7S%7EaAq4Gv4jNemvRTLBFGgYPdUeuavudl4OD4RGkSGTnpzh-P-OBk5WvgpdZZnbb1cRAP73tFHsPDX4%7ETfQIor109G%7E0TB3Jq0wopO9WV0sMQyQs9peZc6bxONiTxb9aHM4yNvWNbVGtlPuC6YS4c9T1e9%7EehdgU4sDOI%7EhpaCvg__&Key-Pair-Id=K2L8F4GPSG1IFC]\n* [HTTP\/2] [1] [user-agent: curl\/8.7.1]\n* [HTTP\/2] [1] [accept: *\/*]\n* [HTTP\/2] [1] [range: bytes=217875070-218006142]\n> GET \/xet-bridge-us\/686fc33898943c873b45c9a0\/cf8a3a5665cf8b2ff667fb5236a1e5cb13c7582955f9533c88e1387997ef3af9?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=cas%2F20250716%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250716T145416Z&X-Amz-Expires=3600&X-Amz-Signature=21a15b50740d73fd8ce82d5105733ca067d2e612ada22570e09e93ebcc7f8842&X-Amz-SignedHeaders=host&X-Xet-Cas-Uid=public&response-content-disposition=inline%3B+filename*%3DUTF-8%27%270000.parquet%3B+filename%3D%220000.parquet%22%3B&x-id=GetObject&Expires=1752681256&Policy=eyJTdGF0ZW1lbnQiOlt7IkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTc1MjY4MTI1Nn19LCJSZXNvdXJjZSI6Imh0dHBzOi8vY2FzLWJyaWRnZS54ZXRodWIuaGYuY28veGV0LWJyaWRnZS11cy82ODZmYzMzODk4OTQzYzg3M2I0NWM5YTAvY2Y4YTNhNTY2NWNmOGIyZmY2NjdmYjUyMzZhMWU1Y2IxM2M3NTgyOTU1Zjk1MzNjODhlMTM4Nzk5N2VmM2FmOSoifV19&Signature=Tl3xorJ-7yaWvG6Y1AhhRlV2Wko9QpoK1tdPOfNZaRbHo%7EdaAkJRJfcLAYD5YzozfHWBZMLlJsaMPJ1MAne21nr5%7E737sE6yLfBwHdP3ZFZhgrLsN%7EvkIWK2GYX543qTg-pVsf3it92w1oWyoyYNQ9srxLfEIuG2AKV2Nu3Ejl7S%7EaAq4Gv4jNemvRTLBFGgYPdUeuavudl4OD4RGkSGTnpzh-P-OBk5WvgpdZZnbb1cRAP73tFHsPDX4%7ETfQIor109G%7E0TB3Jq0wopO9WV0sMQyQs9peZc6bxONiTxb9aHM4yNvWNbVGtlPuC6YS4c9T1e9%7EehdgU4sDOI%7EhpaCvg__&Key-Pair-Id=K2L8F4GPSG1IFC HTTP\/2\n> Host: cas-bridge.xethub.hf.co\n> User-Agent: curl\/8.7.1\n> Accept: *\/*\n> Range: bytes=217875070-218006142\n>\n* Request completely sent off\n< HTTP\/2 206\n< content-length: 131072\n< date: Mon, 14 Jul 2025 08:40:28 GMT\n< x-request-id: 01K041FDPVA03RR2PRXDZSN30G\n< content-disposition: inline; filename*=UTF-8''0000.parquet; filename=\"0000.parquet\";\n< cache-control: public, max-age=31536000\n< etag: \"cf8a3a5665cf8b2ff667fb5236a1e5cb13c7582955f9533c88e1387997ef3af9\"\n< access-control-allow-origin: *\n< access-control-allow-headers: Content-Range, Content-Type, Content-Disposition, ETag\n< access-control-expose-headers: Accept-Ranges, Content-Range, Content-Type, Content-Disposition, ETag, X-Cache\n< x-cache: Hit from cloudfront\n< via: 1.1 1c857e24a4dc84d2d9c78d5b3463bed6.cloudfront.net (CloudFront)\n< x-amz-cf-pop: MSP50-P2\n< x-amz-cf-id: 3SxFmQa5wLeeXbNiwaAo0_RwoR_n7-SivjsLjDLG-Pwn5UhG2oiEQA==\n< age: 195496\n< content-security-policy: default-src 'none'; sandbox\n< content-range: bytes 217875070-218006141\/218006142\n<\n{ [8192 bytes data]\n100 128k 100 128k 0 0 769k 0 --:--:-- --:--:-- --:--:-- 769k\n* Connection #1 to host cas-bridge.xethub.hf.co left intact\n\n<\/details>\n\n### Expected behavior\n\nalways get back a `206` \n\n### Environment info\n\nn\/a","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7685\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7685\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7684","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7684\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7684\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7684\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7684","id":3231680474,"node_id":"PR_kwDODunzps6e9SjQ","number":7684,"title":"fix audio cast storage from array + sampling_rate","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-07-15T10:13:42Z","updated_at":"2025-07-15T10:24:08Z","closed_at":"2025-07-15T10:24:07Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7684","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7684","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7684.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7684.patch","merged_at":"2025-07-15T10:24:07Z"},"body":"fix https:\/\/github.com\/huggingface\/datasets\/issues\/7682","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7684\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7684\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7683","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7683\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7683\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7683\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7683","id":3231553161,"node_id":"PR_kwDODunzps6e82iW","number":7683,"title":"Convert to string when needed + faster .zstd","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-07-15T09:37:44Z","updated_at":"2025-07-15T10:13:58Z","closed_at":"2025-07-15T10:13:56Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7683","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7683","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7683.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7683.patch","merged_at":"2025-07-15T10:13:56Z"},"body":"for https:\/\/huggingface.co\/datasets\/allenai\/olmo-mix-1124","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7683\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7683\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7682","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7682\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7682\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7682\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7682","id":3229687253,"node_id":"I_kwDODunzps7AgR3V","number":7682,"title":"Fail to cast Audio feature for numpy arrays in datasets 4.0.0","user":{"login":"luatil-cloud","id":163345686,"node_id":"U_kgDOCbx1Fg","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/163345686?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/luatil-cloud","html_url":"https:\/\/github.com\/luatil-cloud","followers_url":"https:\/\/api.github.com\/users\/luatil-cloud\/followers","following_url":"https:\/\/api.github.com\/users\/luatil-cloud\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/luatil-cloud\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/luatil-cloud\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/luatil-cloud\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/luatil-cloud\/orgs","repos_url":"https:\/\/api.github.com\/users\/luatil-cloud\/repos","events_url":"https:\/\/api.github.com\/users\/luatil-cloud\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/luatil-cloud\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-07-14T18:41:02Z","updated_at":"2025-07-15T12:10:39Z","closed_at":"2025-07-15T10:24:08Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nCasting features with Audio for numpy arrays - done here with `ds.map(gen_sine, features=features)` fails\nin version 4.0.0 but not in version 3.6.0\n\n\n### Steps to reproduce the bug\n\nThe following `uv script` should be able to reproduce the bug in version 4.0.0\nand pass in version 3.6.0 on a macOS Sequoia 15.5\n\n```python\n# \/\/\/ script\n# requires-python = \">=3.13\"\n# dependencies = [\n# \"datasets[audio]==4.0.0\",\n# \"librosa>=0.11.0\",\n# ]\n# \/\/\/\n# NAME\n# create_audio_dataset.py - create an audio dataset of sine waves\n#\n# SYNOPSIS\n# uv run create_audio_dataset.py\n#\n# DESCRIPTION\n# Create an audio dataset using the Hugging Face [datasets] library.\n# Illustrates how to create synthetic audio datasets using the [map]\n# datasets function.\n#\n# The strategy is to first create a dataset with the input to the\n# generation function, then execute the map function that generates\n# the result, and finally cast the final features.\n#\n# BUG\n# Casting features with Audio for numpy arrays -\n# done here with `ds.map(gen_sine, features=features)` fails\n# in version 4.0.0 but not in version 3.6.0\n#\n# This happens both in cases where --extra audio is provided and where is not.\n# When audio is not provided i've installed the latest compatible version\n# of soundfile.\n#\n# The error when soundfile is installed but the audio --extra is not\n# indicates that the array values do not have the `.T` property,\n# whilst also indicating that the value is a list instead of a numpy array.\n#\n# Last lines of error report when for datasets + soundfile case\n# ...\n#\n# File \"\/Users\/luasantilli\/.cache\/uv\/archive-v0\/tc_5IhQe7Zpw8ZXgQWpnl\/lib\/python3.13\/site-packages\/datasets\/features\/audio.py\", line 239, in cast_storage\n# storage = pa.array([Audio().encode_example(x) if x is not None else None for x in storage.to_pylist()])\n# ~~~~~~~~~~~~~~~~~~~~~~^^^\n# File \"\/Users\/luasantilli\/.cache\/uv\/archive-v0\/tc_5IhQe7Zpw8ZXgQWpnl\/lib\/python3.13\/site-packages\/datasets\/features\/audio.py\", line 122, in encode_example\n# sf.write(buffer, value[\"array\"].T, value[\"sampling_rate\"], format=\"wav\")\n# ^^^^^^^^^^^^^^^^\n# AttributeError: 'list' object has no attribute 'T'\n# ...\n#\n# For the case of datasets[audio] without explicit adding soundfile I get an FFmpeg\n# error.\n#\n# Last lines of error report:\n#\n# ...\n# RuntimeError: Could not load libtorchcodec. Likely causes:\n# 1. FFmpeg is not properly installed in your environment. We support\n# versions 4, 5, 6 and 7.\n# 2. The PyTorch version (2.7.1) is not compatible with\n# this version of TorchCodec. Refer to the version compatibility\n# table:\n# https:\/\/github.com\/pytorch\/torchcodec?tab=readme-ov-file#installing-torchcodec.\n# 3. Another runtime dependency; see exceptions below.\n# The following exceptions were raised as we tried to load libtorchcodec:\n#\n# [start of libtorchcodec loading traceback]\n# FFmpeg version 7: dlopen(\/Users\/luasantilli\/.cache\/uv\/archive-v0\/RK3IAlGfiICwDkHm2guLC\/lib\/python3.13\/site-packages\/torchcodec\/libtorchcodec_decoder7.dylib, 0x0006): Library not loaded: @rpath\/libavutil.59.dylib\n# Referenced from: <6DB21246-F28A-31A6-910A-D8F3355D1064> \/Users\/luasantilli\/.cache\/uv\/archive-v0\/RK3IAlGfiICwDkHm2guLC\/lib\/python3.13\/site-packages\/torchcodec\/libtorchcodec_decoder7.dylib\n# Reason: no LC_RPATH's found\n# FFmpeg version 6: dlopen(\/Users\/luasantilli\/.cache\/uv\/archive-v0\/RK3IAlGfiICwDkHm2guLC\/lib\/python3.13\/site-packages\/torchcodec\/libtorchcodec_decoder6.dylib, 0x0006): Library not loaded: @rpath\/libavutil.58.dylib\n# Referenced from: \/Users\/luasantilli\/.cache\/uv\/archive-v0\/RK3IAlGfiICwDkHm2guLC\/lib\/python3.13\/site-packages\/torchcodec\/libtorchcodec_decoder6.dylib\n# Reason: no LC_RPATH's found\n# FFmpeg version 5: dlopen(\/Users\/luasantilli\/.cache\/uv\/archive-v0\/RK3IAlGfiICwDkHm2guLC\/lib\/python3.13\/site-packages\/torchcodec\/libtorchcodec_decoder5.dylib, 0x0006): Library not loaded: @rpath\/libavutil.57.dylib\n# Referenced from: \/Users\/luasantilli\/.cache\/uv\/archive-v0\/RK3IAlGfiICwDkHm2guLC\/lib\/python3.13\/site-packages\/torchcodec\/libtorchcodec_decoder5.dylib\n# Reason: no LC_RPATH's found\n# FFmpeg version 4: dlopen(\/Users\/luasantilli\/.cache\/uv\/archive-v0\/RK3IAlGfiICwDkHm2guLC\/lib\/python3.13\/site-packages\/torchcodec\/libtorchcodec_decoder4.dylib, 0x0006): Library not loaded: @rpath\/libavutil.56.dylib\n# Referenced from: <6E59F017-C703-3AF6-A271-6277DD5F8170> \/Users\/luasantilli\/.cache\/uv\/archive-v0\/RK3IAlGfiICwDkHm2guLC\/lib\/python3.13\/site-packages\/torchcodec\/libtorchcodec_decoder4.dylib\n# Reason: no LC_RPATH's found\n# ...\n#\n# This is strange because the the same error does not happen when using version 3.6.0 with datasets[audio].\n#\n# The same error appears in python3.12\n## Imports\nimport numpy as np\nfrom datasets import Dataset, Features, Audio, Value\n\n## Parameters\nNUM_WAVES = 128\nSAMPLE_RATE = 16_000\nDURATION = 1.0\n\n## Input dataset arguments\nfreqs = np.linspace(100, 2000, NUM_WAVES).tolist()\nds = Dataset.from_dict({\"frequency\": freqs})\n\n## Features for the final dataset\nfeatures = Features(\n {\"frequency\": Value(\"float32\"), \"audio\": Audio(sampling_rate=SAMPLE_RATE)}\n)\n\n\n## Generate audio sine waves and cast features\ndef gen_sine(example):\n t = np.linspace(0, DURATION, int(SAMPLE_RATE * DURATION), endpoint=False)\n wav = np.sin(2 * np.pi * example[\"frequency\"] * t)\n return {\n \"frequency\": example[\"frequency\"],\n \"audio\": {\"array\": wav, \"sampling_rate\": SAMPLE_RATE},\n }\n\n\nds = ds.map(gen_sine, features=features)\n\nprint(ds)\nprint(ds.features)\n```\n\n### Expected behavior\n\nI expect the result of version `4.0.0` to be the same of that in version `3.6.0`. Switching the value\nof the script above to `3.6.0` I get the following, expected, result: \n\n```\n$ uv run bug_report.py\nMap: 100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 128\/128 [00:00<00:00, 204.58 examples\/s]\nDataset({\n features: ['frequency', 'audio'],\n num_rows: 128\n})\n{'frequency': Value(dtype='float32', id=None), 'audio': Audio(sampling_rate=16000, mono=True, decode=True, id=None)}\n```\n\n### Environment info\n\n- `datasets` version: 4.0.0\n- Platform: macOS-15.5-arm64-arm-64bit-Mach-O\n- Python version: 3.13.1\n- `huggingface_hub` version: 0.33.4\n- PyArrow version: 20.0.0\n- Pandas version: 2.3.1\n- `fsspec` version: 2025.3.0","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7682\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7682\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7681","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7681\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7681\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7681\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7681","id":3227112736,"node_id":"I_kwDODunzps7AWdUg","number":7681,"title":"Probabilistic High Memory Usage and Freeze on Python 3.10","user":{"login":"ryan-minato","id":82735346,"node_id":"MDQ6VXNlcjgyNzM1MzQ2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/82735346?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ryan-minato","html_url":"https:\/\/github.com\/ryan-minato","followers_url":"https:\/\/api.github.com\/users\/ryan-minato\/followers","following_url":"https:\/\/api.github.com\/users\/ryan-minato\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ryan-minato\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ryan-minato\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ryan-minato\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ryan-minato\/orgs","repos_url":"https:\/\/api.github.com\/users\/ryan-minato\/repos","events_url":"https:\/\/api.github.com\/users\/ryan-minato\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ryan-minato\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-07-14T01:57:16Z","updated_at":"2025-07-14T01:57:16Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nA probabilistic issue encountered when processing datasets containing PIL.Image columns using the huggingface\/datasets library on Python 3.10. The process occasionally experiences a sudden and significant memory spike, reaching 100% utilization, leading to a complete freeze. During this freeze, the process becomes unresponsive, cannot be forcefully terminated, and does not throw any exceptions.\n\nI have attempted to mitigate this issue by setting `datasets.config.IN_MEMORY_MAX_SIZE`, but it had no effect. In fact, based on the document of `load_dataset`, I suspect that setting `IN_MEMORY_MAX_SIZE` might even have a counterproductive effect.\n\nThis bug is not consistently reproducible, but its occurrence rate significantly decreases or disappears entirely when upgrading Python to version 3.11 or higher. Therefore, this issue also serves to share a potential solution for others who might encounter similar problems.\n\n### Steps to reproduce the bug\n\nDue to the probabilistic nature of this bug, consistent reproduction cannot be guaranteed for every run. However, in my environment, processing large datasets like timm\/imagenet-1k-wds(whether reading, casting, or mapping operations) almost certainly triggers the issue at some point.\nThe probability of the issue occurring drastically increases when num_proc is set to a value greater than 1 during operations.\n\nWhen the issue occurs, my system logs repeatedly show the following warnings:\n```\nWARN: very high memory utilization: 57.74GiB \/ 57.74GiB (100 %)\nWARN: container is unhealthy: triggered memory limits (OOM)\nWARN: container is unhealthy: triggered memory limits (OOM)\nWARN: container is unhealthy: triggered memory limits (OOM)\n```\n\n### Expected behavior\n\nThe dataset should be read and processed normally without memory exhaustion or freezing. If an unrecoverable error occurs, an appropriate exception should be raised.\n\nI have found that upgrading Python to version 3.11 or above completely resolves this issue. On Python 3.11, when memory usage approaches 100%, it suddenly drops before slowly increasing again. I suspect this behavior is due to an expected memory management action, possibly involving writing to disk cache, which prevents the complete freeze observed in Python 3.10.\n\n### Environment info\n\n- `datasets` version: 4.0.0\n- Platform: Linux-5.15.0-71-generic-x86_64-with-glibc2.35\n- Python version: 3.10.12\n- `huggingface_hub` version: 0.33.4\n- PyArrow version: 20.0.0\n- Pandas version: 2.3.1\n- `fsspec` version: 2025.3.0","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7681\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7681\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7680","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7680\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7680\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7680\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7680","id":3224824151,"node_id":"I_kwDODunzps7ANulX","number":7680,"title":"Question about iterable dataset and streaming","user":{"login":"Tavish9","id":73541181,"node_id":"MDQ6VXNlcjczNTQxMTgx","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/73541181?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Tavish9","html_url":"https:\/\/github.com\/Tavish9","followers_url":"https:\/\/api.github.com\/users\/Tavish9\/followers","following_url":"https:\/\/api.github.com\/users\/Tavish9\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Tavish9\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Tavish9\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Tavish9\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Tavish9\/orgs","repos_url":"https:\/\/api.github.com\/users\/Tavish9\/repos","events_url":"https:\/\/api.github.com\/users\/Tavish9\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Tavish9\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2025-07-12T04:48:30Z","updated_at":"2025-08-01T13:01:48Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"In the doc, I found the following example: https:\/\/github.com\/huggingface\/datasets\/blob\/611f5a592359ebac6f858f515c776aa7d99838b2\/docs\/source\/stream.mdx?plain=1#L65-L78\n\nI am confused, \n1. If we have already loaded the dataset, why doing `to_iterable_dataset`? Does it go through the dataset faster than map-style dataset?\n2. `load_dataset(streaming=True)` is useful for huge dataset, but the speed is slow. How to make it comparable to `to_iterable_dataset` without loading the whole dataset into RAM?","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7680\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7680\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7679","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7679\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7679\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7679\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7679","id":3220787371,"node_id":"I_kwDODunzps6_-VCr","number":7679,"title":"metric glue breaks with 4.0.0","user":{"login":"stas00","id":10676103,"node_id":"MDQ6VXNlcjEwNjc2MTAz","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/10676103?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/stas00","html_url":"https:\/\/github.com\/stas00","followers_url":"https:\/\/api.github.com\/users\/stas00\/followers","following_url":"https:\/\/api.github.com\/users\/stas00\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/stas00\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/stas00\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/stas00\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/stas00\/orgs","repos_url":"https:\/\/api.github.com\/users\/stas00\/repos","events_url":"https:\/\/api.github.com\/users\/stas00\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/stas00\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-07-10T21:39:50Z","updated_at":"2025-07-11T17:42:01Z","closed_at":"2025-07-11T17:42:01Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nworked fine with 3.6.0, and with 4.0.0 `eval_metric = metric.compute()` in HF Accelerate breaks.\n\nThe code that fails is:\nhttps:\/\/huggingface.co\/spaces\/evaluate-metric\/glue\/blob\/v0.4.0\/glue.py#L84\n\n```\ndef simple_accuracy(preds, labels):\n print(preds, labels)\n print(f\"{preds==labels}\")\n return float((preds == labels).mean())\n```\ndata:\n```\nColumn([1, 0, 0, 1, 1]) Column([1, 0, 0, 1, 0])\nFalse\n```\n\n```\n[rank0]: return float((preds == labels).mean())\n[rank0]: ^^^^^^^^^^^^^^^^^^^^^^\n[rank0]: AttributeError: 'bool' object has no attribute 'mean'\n```\n\nSome behavior has changed in this new major release of `datasets` and requires updating HF accelerate and perhaps the glue metric code, all belong to HF.\n\n### Environment info\n\ndatasets=4.0.0","closed_by":{"login":"stas00","id":10676103,"node_id":"MDQ6VXNlcjEwNjc2MTAz","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/10676103?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/stas00","html_url":"https:\/\/github.com\/stas00","followers_url":"https:\/\/api.github.com\/users\/stas00\/followers","following_url":"https:\/\/api.github.com\/users\/stas00\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/stas00\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/stas00\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/stas00\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/stas00\/orgs","repos_url":"https:\/\/api.github.com\/users\/stas00\/repos","events_url":"https:\/\/api.github.com\/users\/stas00\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/stas00\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7679\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7679\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7678","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7678\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7678\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7678\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7678","id":3218625544,"node_id":"I_kwDODunzps6_2FQI","number":7678,"title":"To support decoding audio data, please install 'torchcodec'.","user":{"login":"alpcansoydas","id":48163702,"node_id":"MDQ6VXNlcjQ4MTYzNzAy","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/48163702?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/alpcansoydas","html_url":"https:\/\/github.com\/alpcansoydas","followers_url":"https:\/\/api.github.com\/users\/alpcansoydas\/followers","following_url":"https:\/\/api.github.com\/users\/alpcansoydas\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/alpcansoydas\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/alpcansoydas\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/alpcansoydas\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/alpcansoydas\/orgs","repos_url":"https:\/\/api.github.com\/users\/alpcansoydas\/repos","events_url":"https:\/\/api.github.com\/users\/alpcansoydas\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/alpcansoydas\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-07-10T09:43:13Z","updated_at":"2025-07-22T03:46:52Z","closed_at":"2025-07-11T05:05:42Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"\nIn the latest version of datasets==4.0.0, i cannot print the audio data on the Colab notebook. But it works on the 3.6.0 version.\n\n!pip install -q -U datasets huggingface_hub fsspec\n\nfrom datasets import load_dataset\n\ndownloaded_dataset = load_dataset(\"ymoslem\/MediaSpeech\", \"tr\", split=\"train\")\nprint(downloaded_dataset[\"audio\"][0])\n\n---------------------------------------------------------------------------\nImportError Traceback (most recent call last)\n[\/tmp\/ipython-input-4-90623240.py](https:\/\/localhost:8080\/#) in ()\n----> 1 downloaded_dataset[\"audio\"][0]\n\n10 frames\n[\/usr\/local\/lib\/python3.11\/dist-packages\/datasets\/features\/audio.py](https:\/\/localhost:8080\/#) in decode_example(self, value, token_per_repo_id)\n 170 from ._torchcodec import AudioDecoder\n 171 else:\n--> 172 raise ImportError(\"To support decoding audio data, please install 'torchcodec'.\")\n 173 \n 174 if not self.decode:\n\nImportError: To support decoding audio data, please install 'torchcodec'. \n\n### Environment info\n\n- `datasets` version: 4.0.0\n- Platform: Linux-6.1.123+-x86_64-with-glibc2.35\n- Python version: 3.11.13\n- `huggingface_hub` version: 0.33.2\n- PyArrow version: 18.1.0\n- Pandas version: 2.2.2\n- `fsspec` version: 2025.3.0","closed_by":{"login":"alpcansoydas","id":48163702,"node_id":"MDQ6VXNlcjQ4MTYzNzAy","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/48163702?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/alpcansoydas","html_url":"https:\/\/github.com\/alpcansoydas","followers_url":"https:\/\/api.github.com\/users\/alpcansoydas\/followers","following_url":"https:\/\/api.github.com\/users\/alpcansoydas\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/alpcansoydas\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/alpcansoydas\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/alpcansoydas\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/alpcansoydas\/orgs","repos_url":"https:\/\/api.github.com\/users\/alpcansoydas\/repos","events_url":"https:\/\/api.github.com\/users\/alpcansoydas\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/alpcansoydas\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7678\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7678\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7677","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7677\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7677\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7677\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7677","id":3218044656,"node_id":"I_kwDODunzps6_z3bw","number":7677,"title":"Toxicity fails with datasets 4.0.0","user":{"login":"serena-ruan","id":82044803,"node_id":"MDQ6VXNlcjgyMDQ0ODAz","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/82044803?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/serena-ruan","html_url":"https:\/\/github.com\/serena-ruan","followers_url":"https:\/\/api.github.com\/users\/serena-ruan\/followers","following_url":"https:\/\/api.github.com\/users\/serena-ruan\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/serena-ruan\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/serena-ruan\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/serena-ruan\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/serena-ruan\/orgs","repos_url":"https:\/\/api.github.com\/users\/serena-ruan\/repos","events_url":"https:\/\/api.github.com\/users\/serena-ruan\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/serena-ruan\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-07-10T06:15:22Z","updated_at":"2025-07-11T04:40:59Z","closed_at":"2025-07-11T04:40:59Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nWith the latest 4.0.0 release, huggingface toxicity evaluation module fails with error: `ValueError: text input must be of type `str` (single example), `List[str]` (batch or single pretokenized example) or `List[List[str]]` (batch of pretokenized examples).`\n\n### Steps to reproduce the bug\n\nRepro:\n```\n>>> toxicity.compute(predictions=[\"This is a response\"])\nTraceback (most recent call last):\n File \"\", line 1, in \n File \"\/Users\/serena.ruan\/miniconda3\/envs\/mlflow-310\/lib\/python3.10\/site-packages\/evaluate\/module.py\", line 467, in compute\n output = self._compute(**inputs, **compute_kwargs)\n File \"\/Users\/serena.ruan\/.cache\/huggingface\/modules\/evaluate_modules\/metrics\/evaluate-measurement--toxicity\/2390290fa0bf6d78480143547c6b08f3d4f8805b249df8c7a8e80d0ce8e3778b\/toxicity.py\", line 135, in _compute\n scores = toxicity(predictions, self.toxic_classifier, toxic_label)\n File \"\/Users\/serena.ruan\/.cache\/huggingface\/modules\/evaluate_modules\/metrics\/evaluate-measurement--toxicity\/2390290fa0bf6d78480143547c6b08f3d4f8805b249df8c7a8e80d0ce8e3778b\/toxicity.py\", line 103, in toxicity\n for pred_toxic in toxic_classifier(preds):\n File \"\/Users\/serena.ruan\/miniconda3\/envs\/mlflow-310\/lib\/python3.10\/site-packages\/transformers\/pipelines\/text_classification.py\", line 159, in __call__\n result = super().__call__(*inputs, **kwargs)\n File \"\/Users\/serena.ruan\/miniconda3\/envs\/mlflow-310\/lib\/python3.10\/site-packages\/transformers\/pipelines\/base.py\", line 1431, in __call__\n return self.run_single(inputs, preprocess_params, forward_params, postprocess_params)\n File \"\/Users\/serena.ruan\/miniconda3\/envs\/mlflow-310\/lib\/python3.10\/site-packages\/transformers\/pipelines\/base.py\", line 1437, in run_single\n model_inputs = self.preprocess(inputs, **preprocess_params)\n File \"\/Users\/serena.ruan\/miniconda3\/envs\/mlflow-310\/lib\/python3.10\/site-packages\/transformers\/pipelines\/text_classification.py\", line 183, in preprocess\n return self.tokenizer(inputs, return_tensors=return_tensors, **tokenizer_kwargs)\n File \"\/Users\/serena.ruan\/miniconda3\/envs\/mlflow-310\/lib\/python3.10\/site-packages\/transformers\/tokenization_utils_base.py\", line 2867, in __call__\n encodings = self._call_one(text=text, text_pair=text_pair, **all_kwargs)\n File \"\/Users\/serena.ruan\/miniconda3\/envs\/mlflow-310\/lib\/python3.10\/site-packages\/transformers\/tokenization_utils_base.py\", line 2927, in _call_one\n raise ValueError(\nValueError: text input must be of type `str` (single example), `List[str]` (batch or single pretokenized example) or `List[List[str]]` (batch of pretokenized examples).\n```\n\n### Expected behavior\n\nThis works before 4.0.0 release\n\n### Environment info\n\n- `datasets` version: 4.0.0\n- Platform: macOS-15.5-arm64-arm-64bit\n- Python version: 3.10.16\n- `huggingface_hub` version: 0.33.0\n- PyArrow version: 19.0.1\n- Pandas version: 2.2.3\n- `fsspec` version: 2024.12.0","closed_by":{"login":"serena-ruan","id":82044803,"node_id":"MDQ6VXNlcjgyMDQ0ODAz","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/82044803?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/serena-ruan","html_url":"https:\/\/github.com\/serena-ruan","followers_url":"https:\/\/api.github.com\/users\/serena-ruan\/followers","following_url":"https:\/\/api.github.com\/users\/serena-ruan\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/serena-ruan\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/serena-ruan\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/serena-ruan\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/serena-ruan\/orgs","repos_url":"https:\/\/api.github.com\/users\/serena-ruan\/repos","events_url":"https:\/\/api.github.com\/users\/serena-ruan\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/serena-ruan\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7677\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7677\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7676","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7676\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7676\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7676\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7676","id":3216857559,"node_id":"I_kwDODunzps6_vVnX","number":7676,"title":"Many things broken since the new 4.0.0 release","user":{"login":"mobicham","id":37179323,"node_id":"MDQ6VXNlcjM3MTc5MzIz","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/37179323?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/mobicham","html_url":"https:\/\/github.com\/mobicham","followers_url":"https:\/\/api.github.com\/users\/mobicham\/followers","following_url":"https:\/\/api.github.com\/users\/mobicham\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/mobicham\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/mobicham\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/mobicham\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/mobicham\/orgs","repos_url":"https:\/\/api.github.com\/users\/mobicham\/repos","events_url":"https:\/\/api.github.com\/users\/mobicham\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/mobicham\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2025-07-09T18:59:50Z","updated_at":"2025-07-21T10:38:01Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nThe new changes in 4.0.0 are breaking many datasets, including those from lm-evaluation-harness. \nI am trying to revert back to older versions, like 3.6.0 to make the eval work but I keep getting:\n``` Python\nFile \/venv\/main\/lib\/python3.12\/site-packages\/datasets\/features\/features.py:1474, in generate_from_dict(obj)\n 1471 class_type = _FEATURE_TYPES.get(_type, None) or globals().get(_type, None)\n 1473 if class_type is None:\n-> 1474 raise ValueError(f\"Feature type '{_type}' not found. Available feature types: {list(_FEATURE_TYPES.keys())}\")\n 1476 if class_type == LargeList:\n 1477 feature = obj.pop(\"feature\")\n\nValueError: Feature type 'List' not found. Available feature types: ['Value', 'ClassLabel', 'Translation', 'TranslationVariableLanguages', 'LargeList', 'Sequence', 'Array2D', 'Array3D', 'Array4D', 'Array5D', 'Audio', 'Image', 'Video', 'Pdf']\n\n```\n\n\n\n### Steps to reproduce the bug\n\n``` Python\nimport lm_eval\nmodel_eval = lm_eval.models.huggingface.HFLM(pretrained=model, tokenizer=tokenizer)\nlm_eval.evaluator.simple_evaluate(model_eval, tasks=[\"winogrande\"], num_fewshot=5, batch_size=1)\n```\n\n### Expected behavior\n\nOlder `datasets` versions should work just fine as before\n\n### Environment info\n\n- `datasets` version: 3.6.0\n- Platform: Linux-6.8.0-60-generic-x86_64-with-glibc2.39\n- Python version: 3.12.11\n- `huggingface_hub` version: 0.33.1\n- PyArrow version: 20.0.0\n- Pandas version: 2.3.1\n- `fsspec` version: 2025.3.0\n","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7676\/reactions","total_count":13,"+1":13,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7676\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7675","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7675\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7675\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7675\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7675","id":3216699094,"node_id":"I_kwDODunzps6_uu7W","number":7675,"title":"common_voice_11_0.py failure in dataset library","user":{"login":"egegurel","id":98793855,"node_id":"U_kgDOBeN5fw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/98793855?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/egegurel","html_url":"https:\/\/github.com\/egegurel","followers_url":"https:\/\/api.github.com\/users\/egegurel\/followers","following_url":"https:\/\/api.github.com\/users\/egegurel\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/egegurel\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/egegurel\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/egegurel\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/egegurel\/orgs","repos_url":"https:\/\/api.github.com\/users\/egegurel\/repos","events_url":"https:\/\/api.github.com\/users\/egegurel\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/egegurel\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2025-07-09T17:47:59Z","updated_at":"2025-07-22T09:35:42Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI tried to download dataset but have got this error:\n\nfrom datasets import load_dataset\nload_dataset(\"mozilla-foundation\/common_voice_11_0\", \"en\", split=\"test\", streaming=True) \n---------------------------------------------------------------------------\nRuntimeError Traceback (most recent call last)\nCell In[8], line 4\n 1 from datasets import load_dataset\n----> 4 load_dataset(\"mozilla-foundation\/common_voice_11_0\", \"en\", split=\"test\", streaming=True)\n\nFile c:\\Users\\ege_g\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\datasets\\load.py:1392, in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, verification_mode, keep_in_memory, save_infos, revision, token, streaming, num_proc, storage_options, **config_kwargs)\n 1387 verification_mode = VerificationMode(\n 1388 (verification_mode or VerificationMode.BASIC_CHECKS) if not save_infos else VerificationMode.ALL_CHECKS\n 1389 )\n 1391 # Create a dataset builder\n-> 1392 builder_instance = load_dataset_builder(\n 1393 path=path,\n 1394 name=name,\n 1395 data_dir=data_dir,\n 1396 data_files=data_files,\n 1397 cache_dir=cache_dir,\n 1398 features=features,\n 1399 download_config=download_config,\n 1400 download_mode=download_mode,\n 1401 revision=revision,\n 1402 token=token,\n 1403 storage_options=storage_options,\n 1404 **config_kwargs,\n 1405 )\n 1407 # Return iterable dataset in case of streaming\n 1408 if streaming:\n\nFile c:\\Users\\ege_g\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\datasets\\load.py:1132, in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, token, storage_options, **config_kwargs)\n 1130 if features is not None:\n 1131 features = _fix_for_backward_compatible_features(features)\n-> 1132 dataset_module = dataset_module_factory(\n 1133 path,\n 1134 revision=revision,\n 1135 download_config=download_config,\n 1136 download_mode=download_mode,\n 1137 data_dir=data_dir,\n 1138 data_files=data_files,\n 1139 cache_dir=cache_dir,\n 1140 )\n 1141 # Get dataset builder class\n 1142 builder_kwargs = dataset_module.builder_kwargs\n\nFile c:\\Users\\ege_g\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\datasets\\load.py:1031, in dataset_module_factory(path, revision, download_config, download_mode, data_dir, data_files, cache_dir, **download_kwargs)\n 1026 if isinstance(e1, FileNotFoundError):\n 1027 raise FileNotFoundError(\n 1028 f\"Couldn't find any data file at {relative_to_absolute_path(path)}. \"\n 1029 f\"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}\"\n 1030 ) from None\n-> 1031 raise e1 from None\n 1032 else:\n 1033 raise FileNotFoundError(f\"Couldn't find any data file at {relative_to_absolute_path(path)}.\")\n\nFile c:\\Users\\ege_g\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\datasets\\load.py:989, in dataset_module_factory(path, revision, download_config, download_mode, data_dir, data_files, cache_dir, **download_kwargs)\n 981 try:\n 982 api.hf_hub_download(\n 983 repo_id=path,\n 984 filename=filename,\n (...)\n 987 proxies=download_config.proxies,\n 988 )\n--> 989 raise RuntimeError(f\"Dataset scripts are no longer supported, but found {filename}\")\n 990 except EntryNotFoundError:\n 991 # Use the infos from the parquet export except in some cases:\n 992 if data_dir or data_files or (revision and revision != \"main\"):\n\nRuntimeError: Dataset scripts are no longer supported, but found common_voice_11_0.py\n\n### Steps to reproduce the bug\n\nfrom datasets import load_dataset\nload_dataset(\"mozilla-foundation\/common_voice_11_0\", \"en\", split=\"test\", streaming=True)\n\n\n### Expected behavior\n\nits supposed to download this dataset.\n\n### Environment info\n\nPython 3.12 , Windows 11 ","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7675\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7675\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7674","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7674\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7674\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7674\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7674","id":3216251069,"node_id":"PR_kwDODunzps6eJGo5","number":7674,"title":"set dev version","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-07-09T15:01:25Z","updated_at":"2025-07-09T15:04:01Z","closed_at":"2025-07-09T15:01:33Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7674","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7674","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7674.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7674.patch","merged_at":"2025-07-09T15:01:33Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7674\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7674\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7673","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7673\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7673\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7673\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7673","id":3216075633,"node_id":"PR_kwDODunzps6eIgj-","number":7673,"title":"Release: 4.0.0","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-07-09T14:03:16Z","updated_at":"2025-07-09T14:36:19Z","closed_at":"2025-07-09T14:36:18Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7673","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7673","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7673.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7673.patch","merged_at":"2025-07-09T14:36:18Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7673\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7673\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7672","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7672\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7672\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7672\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7672","id":3215287164,"node_id":"PR_kwDODunzps6eF1vj","number":7672,"title":"Fix double sequence","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-07-09T09:53:39Z","updated_at":"2025-07-09T09:56:29Z","closed_at":"2025-07-09T09:56:28Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7672","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7672","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7672.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7672.patch","merged_at":"2025-07-09T09:56:27Z"},"body":"```python\r\n>>> Features({\"a\": Sequence(Sequence({\"c\": Value(\"int64\")}))})\r\n{'a': List({'c': List(Value('int64'))})}\r\n```\r\n\r\ninstead of `{'a': {'c': List(List(Value('int64')))}}`","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7672\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7672\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7671","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7671\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7671\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7671\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7671","id":3213223886,"node_id":"I_kwDODunzps6_hefO","number":7671,"title":"Mapping function not working if the first example is returned as None","user":{"login":"dnaihao","id":46325823,"node_id":"MDQ6VXNlcjQ2MzI1ODIz","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/46325823?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/dnaihao","html_url":"https:\/\/github.com\/dnaihao","followers_url":"https:\/\/api.github.com\/users\/dnaihao\/followers","following_url":"https:\/\/api.github.com\/users\/dnaihao\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/dnaihao\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/dnaihao\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/dnaihao\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/dnaihao\/orgs","repos_url":"https:\/\/api.github.com\/users\/dnaihao\/repos","events_url":"https:\/\/api.github.com\/users\/dnaihao\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/dnaihao\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-07-08T17:07:47Z","updated_at":"2025-07-09T12:30:32Z","closed_at":"2025-07-09T12:30:32Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nhttps:\/\/github.com\/huggingface\/datasets\/blob\/8a19de052e3d79f79cea26821454bbcf0e9dcd68\/src\/datasets\/arrow_dataset.py#L3652C29-L3652C37\n\nHere we can see the writer is initialized on `i==0`. However, there can be cases where in the user mapping function, the first example is filtered out (length constraints, etc).\n\nIn this case, the writer would be a `None` type and the code will report `NoneType has no write function`.\n\nA simple fix is available, simply change line 3652 from `if i == 0:` to `if writer is None:`\n\n### Steps to reproduce the bug\n\nPrepare a dataset\n\nhave this function\n\n```\nimport datasets\n\n\ndef make_map_fn(split, max_prompt_tokens=3):\n def process_fn(example, idx):\n\n question = example['question']\n reasoning_steps = example['reasoning_steps']\n label = example['label']\n\n answer_format = \"\"\n for i in range(len(reasoning_steps)):\n system_message = \"Dummy\"\n\n all_steps_formatted = []\n\n content = f\"\"\"Dummy\"\"\"\n\n prompt = [\n {\"role\": \"system\", \"content\": system_message},\n {\"role\": \"user\", \"content\": content},\n ]\n tokenized = tokenizer.apply_chat_template(prompt, return_tensors=\"pt\", truncation=False)\n if tokenized.shape[1] > max_prompt_tokens:\n return None # skip overly long examples\n\n data = {\n \"dummy\": \"dummy\"\n }\n\n return data\n\n return process_fn\n\n...\n# load your dataset\n...\ntrain = train.map(function=make_map_fn('train'), with_indices=True)\n```\n\n### Expected behavior\n\nThe dataset mapping shall behave even when the first example is filtered out.\n\n### Environment info\n\nI am using `datasets==3.6.0` but I have observed this issue in the github repo too: https:\/\/github.com\/huggingface\/datasets\/blob\/8a19de052e3d79f79cea26821454bbcf0e9dcd68\/src\/datasets\/arrow_dataset.py#L3652C29-L3652C37","closed_by":{"login":"dnaihao","id":46325823,"node_id":"MDQ6VXNlcjQ2MzI1ODIz","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/46325823?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/dnaihao","html_url":"https:\/\/github.com\/dnaihao","followers_url":"https:\/\/api.github.com\/users\/dnaihao\/followers","following_url":"https:\/\/api.github.com\/users\/dnaihao\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/dnaihao\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/dnaihao\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/dnaihao\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/dnaihao\/orgs","repos_url":"https:\/\/api.github.com\/users\/dnaihao\/repos","events_url":"https:\/\/api.github.com\/users\/dnaihao\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/dnaihao\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7671\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7671\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7670","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7670\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7670\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7670\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7670","id":3208962372,"node_id":"PR_kwDODunzps6dwgOc","number":7670,"title":"Fix audio bytes","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-07-07T13:05:15Z","updated_at":"2025-07-07T13:07:47Z","closed_at":"2025-07-07T13:05:33Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7670","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7670","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7670.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7670.patch","merged_at":"2025-07-07T13:05:33Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7670\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7670\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7669","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7669\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7669\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7669\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7669","id":3203541091,"node_id":"I_kwDODunzps6-8ihj","number":7669,"title":"How can I add my custom data to huggingface datasets","user":{"login":"xiagod","id":219205504,"node_id":"U_kgDODRDPgA","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/219205504?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/xiagod","html_url":"https:\/\/github.com\/xiagod","followers_url":"https:\/\/api.github.com\/users\/xiagod\/followers","following_url":"https:\/\/api.github.com\/users\/xiagod\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/xiagod\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/xiagod\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/xiagod\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/xiagod\/orgs","repos_url":"https:\/\/api.github.com\/users\/xiagod\/repos","events_url":"https:\/\/api.github.com\/users\/xiagod\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/xiagod\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-07-04T19:19:54Z","updated_at":"2025-07-05T18:19:37Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"I want to add my custom dataset in huggingface dataset. Please guide me how to achieve that.","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7669\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7669\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7668","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7668\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7668\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7668\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7668","id":3199039322,"node_id":"I_kwDODunzps6-rXda","number":7668,"title":"Broken EXIF crash the whole program","user":{"login":"Seas0","id":30485844,"node_id":"MDQ6VXNlcjMwNDg1ODQ0","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/30485844?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Seas0","html_url":"https:\/\/github.com\/Seas0","followers_url":"https:\/\/api.github.com\/users\/Seas0\/followers","following_url":"https:\/\/api.github.com\/users\/Seas0\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Seas0\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Seas0\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Seas0\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Seas0\/orgs","repos_url":"https:\/\/api.github.com\/users\/Seas0\/repos","events_url":"https:\/\/api.github.com\/users\/Seas0\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Seas0\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-07-03T11:24:15Z","updated_at":"2025-07-03T12:27:16Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nWhen parsing this image in the ImageNet1K dataset, the `datasets` crashs whole training process just because unable to parse an invalid EXIF tag.\n![Image](https:\/\/github.com\/user-attachments\/assets\/3c840203-ac8c-41a0-9cf7-45f64488037d)\n\n### Steps to reproduce the bug\n\nUse the `datasets.Image.decode_example` method to decode the aforementioned image could reproduce the bug.\nThe decoding function will throw an unhandled exception at the `image.getexif()` method call due to invalid utf-8 stream in EXIF tags.\n```\nFile lib\/python3.12\/site-packages\/datasets\/features\/image.py:188, in Image.decode_example(self, value, token_per_repo_id)\n 186 image = PIL.Image.open(BytesIO(bytes_))\n 187 image.load() # to avoid \"Too many open files\" errors\n--> 188 if image.getexif().get(PIL.Image.ExifTags.Base.Orientation) is not None:\n 189 image = PIL.ImageOps.exif_transpose(image)\n 190 if self.mode and self.mode != image.mode:\n\nFile lib\/python3.12\/site-packages\/PIL\/Image.py:1542, in Image.getexif(self)\n 1540 xmp_tags = self.info.get(\"XML:com.adobe.xmp\")\n 1541 if not xmp_tags and (xmp_tags := self.info.get(\"xmp\")):\n-> 1542 xmp_tags = xmp_tags.decode(\"utf-8\")\n 1543 if xmp_tags:\n 1544 match = re.search(r'tiff:Orientation(=\"|>)([0-9])', xmp_tags)\n\nUnicodeDecodeError: 'utf-8' codec can't decode byte 0xa8 in position 4312: invalid start byte\n```\n\n### Expected behavior\n\nThe invalid EXIF tag should simply be ignored or issue a warning message, instead of crash the whole program at once.\n\n### Environment info\n\n- `datasets` version: 3.6.0\n- Platform: Linux-6.5.0-18-generic-x86_64-with-glibc2.35\n- Python version: 3.12.11\n- `huggingface_hub` version: 0.33.0\n- PyArrow version: 20.0.0\n- Pandas version: 2.3.0\n- `fsspec` version: 2025.3.0","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7668\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7668\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7667","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7667\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7667\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7667\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7667","id":3196251707,"node_id":"PR_kwDODunzps6dGmm8","number":7667,"title":"Fix infer list of images","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-07-02T15:07:58Z","updated_at":"2025-07-02T15:10:28Z","closed_at":"2025-07-02T15:08:03Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7667","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7667","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7667.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7667.patch","merged_at":"2025-07-02T15:08:03Z"},"body":"cc @kashif ","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7667\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7667\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7666","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7666\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7666\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7666\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7666","id":3196220722,"node_id":"PR_kwDODunzps6dGf7E","number":7666,"title":"Backward compat list feature","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-07-02T14:58:00Z","updated_at":"2025-07-02T15:00:37Z","closed_at":"2025-07-02T14:59:40Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7666","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7666","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7666.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7666.patch","merged_at":"2025-07-02T14:59:40Z"},"body":"cc @kashif ","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7666\/reactions","total_count":1,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":1,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7666\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7665","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7665\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7665\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7665\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7665","id":3193239955,"node_id":"I_kwDODunzps6-VPmT","number":7665,"title":"Function load_dataset() misinterprets string field content as part of dataset schema when dealing with `.jsonl` files","user":{"login":"zdzichukowalski","id":1151198,"node_id":"MDQ6VXNlcjExNTExOTg=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/1151198?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/zdzichukowalski","html_url":"https:\/\/github.com\/zdzichukowalski","followers_url":"https:\/\/api.github.com\/users\/zdzichukowalski\/followers","following_url":"https:\/\/api.github.com\/users\/zdzichukowalski\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/zdzichukowalski\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/zdzichukowalski\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/zdzichukowalski\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/zdzichukowalski\/orgs","repos_url":"https:\/\/api.github.com\/users\/zdzichukowalski\/repos","events_url":"https:\/\/api.github.com\/users\/zdzichukowalski\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/zdzichukowalski\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-07-01T17:14:53Z","updated_at":"2025-07-01T17:17:48Z","closed_at":"2025-07-01T17:17:48Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nWhen loading a `.jsonl` file using `load_dataset(\"json\", data_files=\"data.jsonl\", split=\"train\")`, the function misinterprets the content of a string field as if it were part of the dataset schema. \n\nIn my case there is a field `body:` with a string value \n```\n\"### Describe the bug (...) ,action: string, datetime: timestamp[s], author: string, (...) Pandas version: 1.3.4\"\n```\nAs a result, I got an exception \n```\n\"TypeError: Couldn't cast array of type timestamp[s] to null\". \n```\nFull stack-trace in the attached file below.\n\nI also attach a minimized dataset (data.json, a single entry) that reproduces the error.\n\n**Observations**(on the minimal example): \n- if I remove _all fields before_ `body`, a different error appears,\n- if I remove _all fields after_ `body`, yet another error appears,\n- if `body` is _the only field_, the error disappears.\n\nSo this might be one complex bug or several edge cases interacting. I haven\u2019t dug deeper.\n\nAlso changing the file extension to `.json` or `.txt` avoids the problem. This suggests **a possible workaround** for the general case: convert `.jsonl` to `.json`. Though I haven\u2019t verified correctness of that workaround yet.\n\nAnyway my understanding is that `load_dataset` with first argument set to \"json\" should properly handle `.jsonl` files. Correct me if I'm wrong.\n\n[stack_trace.txt](https:\/\/github.com\/user-attachments\/files\/21004153\/stack_trace.txt)\n[data.json](https:\/\/github.com\/user-attachments\/files\/21004164\/data.json)\n\nP.S.\nI discovered this while going through the HuggingFace tutorial. Specifically [this part](https:\/\/huggingface.co\/learn\/llm-course\/chapter5\/5?fw=pt).I will try to inform the tutorial team about this issue, as it can be a showstopper for young \ud83e\udd17 adepts.\n\n### Steps to reproduce the bug\n\n1. Download attached [data.json](https:\/\/github.com\/user-attachments\/files\/21004164\/data.json) file.\n2. Run the following code which should work correctly:\n```\nfrom datasets import load_dataset\nload_dataset(\"json\", data_files=\"data.json\", split=\"train\")\n```\n3. Change extension of the `data` file to `.jsonl` and run:\n```\nfrom datasets import load_dataset\nload_dataset(\"json\", data_files=\"data.jsonl\", split=\"train\")\n```\n\nThis will trigger an error like the one in the attached [stack_trace.txt](https:\/\/github.com\/user-attachments\/files\/21004153\/stack_trace.txt).\n\nOne can also try removing fields before the `body` field and after it. These actions give different errors.\n\n\n### Expected behavior\n\nParsing data in `.jsonl` format should yield the same result as parsing the same data in `.json` format. In any case, the content of a string field should never be interpreted as part of the dataset schema.\n\n### Environment info\n\ndatasets version: _3.6.0_\npyarrow version: _20.0.0_\nPython version: _3.11.9_\nplatform version: _macOS-15.5-arm64-arm-64bit_","closed_by":{"login":"zdzichukowalski","id":1151198,"node_id":"MDQ6VXNlcjExNTExOTg=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/1151198?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/zdzichukowalski","html_url":"https:\/\/github.com\/zdzichukowalski","followers_url":"https:\/\/api.github.com\/users\/zdzichukowalski\/followers","following_url":"https:\/\/api.github.com\/users\/zdzichukowalski\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/zdzichukowalski\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/zdzichukowalski\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/zdzichukowalski\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/zdzichukowalski\/orgs","repos_url":"https:\/\/api.github.com\/users\/zdzichukowalski\/repos","events_url":"https:\/\/api.github.com\/users\/zdzichukowalski\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/zdzichukowalski\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7665\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7665\/timeline","performed_via_github_app":null,"state_reason":"duplicate","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7664","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7664\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7664\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7664\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7664","id":3193239035,"node_id":"I_kwDODunzps6-VPX7","number":7664,"title":"Function load_dataset() misinterprets string field content as part of dataset schema when dealing with `.jsonl` files","user":{"login":"zdzichukowalski","id":1151198,"node_id":"MDQ6VXNlcjExNTExOTg=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/1151198?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/zdzichukowalski","html_url":"https:\/\/github.com\/zdzichukowalski","followers_url":"https:\/\/api.github.com\/users\/zdzichukowalski\/followers","following_url":"https:\/\/api.github.com\/users\/zdzichukowalski\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/zdzichukowalski\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/zdzichukowalski\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/zdzichukowalski\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/zdzichukowalski\/orgs","repos_url":"https:\/\/api.github.com\/users\/zdzichukowalski\/repos","events_url":"https:\/\/api.github.com\/users\/zdzichukowalski\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/zdzichukowalski\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2025-07-01T17:14:32Z","updated_at":"2025-07-09T13:14:11Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nWhen loading a `.jsonl` file using `load_dataset(\"json\", data_files=\"data.jsonl\", split=\"train\")`, the function misinterprets the content of a string field as if it were part of the dataset schema. \n\nIn my case there is a field `body:` with a string value \n```\n\"### Describe the bug (...) ,action: string, datetime: timestamp[s], author: string, (...) Pandas version: 1.3.4\"\n```\nAs a result, I got an exception \n```\n\"TypeError: Couldn't cast array of type timestamp[s] to null\". \n```\nFull stack-trace in the attached file below.\n\nI also attach a minimized dataset (data.json, a single entry) that reproduces the error.\n\n**Observations**(on the minimal example): \n- if I remove _all fields before_ `body`, a different error appears,\n- if I remove _all fields after_ `body`, yet another error appears,\n- if `body` is _the only field_, the error disappears.\n\nSo this might be one complex bug or several edge cases interacting. I haven\u2019t dug deeper.\n\nAlso changing the file extension to `.json` or `.txt` avoids the problem. This suggests **a possible workaround** for the general case: convert `.jsonl` to `.json`. Though I haven\u2019t verified correctness of that workaround yet.\n\nAnyway my understanding is that `load_dataset` with first argument set to \"json\" should properly handle `.jsonl` files. Correct me if I'm wrong.\n\n[stack_trace.txt](https:\/\/github.com\/user-attachments\/files\/21004153\/stack_trace.txt)\n[data.json](https:\/\/github.com\/user-attachments\/files\/21004164\/data.json)\n\nP.S.\nI discovered this while going through the HuggingFace tutorial. Specifically [this part](https:\/\/huggingface.co\/learn\/llm-course\/chapter5\/5?fw=pt). I will try to inform the tutorial team about this issue, as it can be a showstopper for young \ud83e\udd17 adepts.\n\n### Steps to reproduce the bug\n\n1. Download attached [data.json](https:\/\/github.com\/user-attachments\/files\/21004164\/data.json) file.\n2. Run the following code which should work correctly:\n```\nfrom datasets import load_dataset\nload_dataset(\"json\", data_files=\"data.json\", split=\"train\")\n```\n3. Change extension of the `data` file to `.jsonl` and run:\n```\nfrom datasets import load_dataset\nload_dataset(\"json\", data_files=\"data.jsonl\", split=\"train\")\n```\n\nThis will trigger an error like the one in the attached [stack_trace.txt](https:\/\/github.com\/user-attachments\/files\/21004153\/stack_trace.txt).\n\nOne can also try removing fields before the `body` field and after it. These actions give different errors.\n\n\n### Expected behavior\n\nParsing data in `.jsonl` format should yield the same result as parsing the same data in `.json` format. In any case, the content of a string field should never be interpreted as part of the dataset schema.\n\n### Environment info\n\ndatasets version: _3.6.0_\npyarrow version: _20.0.0_\nPython version: _3.11.9_\nplatform version: _macOS-15.5-arm64-arm-64bit_","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7664\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7664\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7663","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7663\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7663\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7663\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7663","id":3192582371,"node_id":"PR_kwDODunzps6c6aJF","number":7663,"title":"Custom metadata filenames","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-07-01T13:50:36Z","updated_at":"2025-07-01T13:58:41Z","closed_at":"2025-07-01T13:58:39Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7663","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7663","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7663.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7663.patch","merged_at":"2025-07-01T13:58:39Z"},"body":"example: https:\/\/huggingface.co\/datasets\/lhoestq\/overlapping-subsets-imagefolder\/tree\/main\r\n\r\nTo make multiple subsets for an imagefolder (one metadata file per subset), e.g.\r\n\r\n```yaml\r\nconfigs:\r\n - config_name: default\r\n metadata_filenames:\r\n - metadata.csv\r\n - config_name: other\r\n metadata_filenames:\r\n - metadata2.csv\r\n```","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7663\/reactions","total_count":1,"+1":0,"-1":0,"laugh":0,"hooray":1,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7663\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7662","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7662\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7662\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7662\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7662","id":3190805531,"node_id":"I_kwDODunzps6-L9Qb","number":7662,"title":"Applying map after transform with multiprocessing will cause OOM","user":{"login":"JunjieLl","id":26482910,"node_id":"MDQ6VXNlcjI2NDgyOTEw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/26482910?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/JunjieLl","html_url":"https:\/\/github.com\/JunjieLl","followers_url":"https:\/\/api.github.com\/users\/JunjieLl\/followers","following_url":"https:\/\/api.github.com\/users\/JunjieLl\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/JunjieLl\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/JunjieLl\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/JunjieLl\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/JunjieLl\/orgs","repos_url":"https:\/\/api.github.com\/users\/JunjieLl\/repos","events_url":"https:\/\/api.github.com\/users\/JunjieLl\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/JunjieLl\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2025-07-01T05:45:57Z","updated_at":"2025-07-10T06:17:40Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI have a 30TB dataset. When I perform add_column and cast_column operations on it and then execute a multiprocessing map, it results in an OOM (Out of Memory) error. However, if I skip the add_column and cast_column steps and directly run the map, there is no OOM. After debugging step by step, I found that the OOM is caused at this point, and I suspect it\u2019s because the add_column and cast_column operations are not cached, which causes the entire dataset to be loaded in each subprocess, leading to the OOM. The critical line of code is: https:\/\/github.com\/huggingface\/datasets\/blob\/e71b0b19d79c7531f9b9bea7c09916b5f6157f42\/src\/datasets\/utils\/py_utils.py#L607\n\n\nNote num_process=1 would not cause OOM. I'm confused.\n\n### Steps to reproduce the bug\n\nFor reproduce, you can load dataset and set cache_dir (for caching): amphion\/Emilia-Dataset which is a veru large datasets that RAM can not fits.\nAnd apply the map with multiprocessing after a transform operation (e.g. add_column, cast_column).\nAs long as num_process>1, it must cause OOM.\n\n### Expected behavior\n\nIt should not cause OOM.\n\n### Environment info\n\n- `datasets` version: 3.6.0\n- Platform: Linux-5.10.134-16.101.al8.x86_64-x86_64-with-glibc2.35\n- Python version: 3.10.12\n- `huggingface_hub` version: 0.33.1\n- PyArrow version: 20.0.0\n- Pandas version: 2.3.0\n- `fsspec` version: 2024.6.1","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7662\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7662\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7661","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7661\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7661\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7661\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7661","id":3190408237,"node_id":"PR_kwDODunzps6czBDi","number":7661,"title":"fix del tqdm lock error","user":{"login":"Hypothesis-Z","id":44766273,"node_id":"MDQ6VXNlcjQ0NzY2Mjcz","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/44766273?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Hypothesis-Z","html_url":"https:\/\/github.com\/Hypothesis-Z","followers_url":"https:\/\/api.github.com\/users\/Hypothesis-Z\/followers","following_url":"https:\/\/api.github.com\/users\/Hypothesis-Z\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Hypothesis-Z\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Hypothesis-Z\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Hypothesis-Z\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Hypothesis-Z\/orgs","repos_url":"https:\/\/api.github.com\/users\/Hypothesis-Z\/repos","events_url":"https:\/\/api.github.com\/users\/Hypothesis-Z\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Hypothesis-Z\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-07-01T02:04:02Z","updated_at":"2025-08-13T13:16:44Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7661","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7661","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7661.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7661.patch","merged_at":null},"body":"fixes https:\/\/github.com\/huggingface\/datasets\/issues\/7660","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7661\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7661\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7660","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7660\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7660\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7660\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7660","id":3189028251,"node_id":"I_kwDODunzps6-FLWb","number":7660,"title":"AttributeError: type object 'tqdm' has no attribute '_lock'","user":{"login":"Hypothesis-Z","id":44766273,"node_id":"MDQ6VXNlcjQ0NzY2Mjcz","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/44766273?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Hypothesis-Z","html_url":"https:\/\/github.com\/Hypothesis-Z","followers_url":"https:\/\/api.github.com\/users\/Hypothesis-Z\/followers","following_url":"https:\/\/api.github.com\/users\/Hypothesis-Z\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Hypothesis-Z\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Hypothesis-Z\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Hypothesis-Z\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Hypothesis-Z\/orgs","repos_url":"https:\/\/api.github.com\/users\/Hypothesis-Z\/repos","events_url":"https:\/\/api.github.com\/users\/Hypothesis-Z\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Hypothesis-Z\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-06-30T15:57:16Z","updated_at":"2025-07-03T15:14:27Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\n`AttributeError: type object 'tqdm' has no attribute '_lock'`\n\nIt occurs when I'm trying to load datasets in thread pool.\n\nIssue https:\/\/github.com\/huggingface\/datasets\/issues\/6066 and PR https:\/\/github.com\/huggingface\/datasets\/pull\/6067 https:\/\/github.com\/huggingface\/datasets\/pull\/6068 tried to fix this. \n\n\n### Steps to reproduce the bug\n\nWill have to try several times to reproduce the error because it is concerned with threads.\n \n1. save some datasets for test\n```pythonfrom datasets import Dataset, DatasetDict\nimport os\n\nos.makedirs(\"test_dataset_shards\", exist_ok=True)\n\nfor i in range(10):\n data = Dataset.from_dict({\"text\": [f\"example {j}\" for j in range(1000000)]})\n data = DatasetDict({'train': data})\n data.save_to_disk(f\"test_dataset_shards\/shard_{i}\")\n```\n\n2. load them in a thread pool \n```python\nfrom datasets import load_from_disk\nfrom tqdm import tqdm\nfrom concurrent.futures import ThreadPoolExecutor, as_completed\nimport glob\n\ndatas = glob.glob('test_dataset_shards\/shard_*')\nwith ThreadPoolExecutor(max_workers=10) as pool:\n futures = [pool.submit(load_from_disk, it) for it in datas]\ndatas = []\nfor future in tqdm(as_completed(futures), total=len(futures)):\n datas.append(future.result())\n```\n\n### Expected behavior\n\nno exception raised\n\n### Environment info\n\ndatasets==2.19.0\npython==3.10","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7660\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7660\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7659","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7659\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7659\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7659\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7659","id":3187882217,"node_id":"PR_kwDODunzps6cqkou","number":7659,"title":"Update the beans dataset link in Preprocess","user":{"login":"HJassar","id":5434867,"node_id":"MDQ6VXNlcjU0MzQ4Njc=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/5434867?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/HJassar","html_url":"https:\/\/github.com\/HJassar","followers_url":"https:\/\/api.github.com\/users\/HJassar\/followers","following_url":"https:\/\/api.github.com\/users\/HJassar\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/HJassar\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/HJassar\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/HJassar\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/HJassar\/orgs","repos_url":"https:\/\/api.github.com\/users\/HJassar\/repos","events_url":"https:\/\/api.github.com\/users\/HJassar\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/HJassar\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-06-30T09:58:44Z","updated_at":"2025-07-07T08:38:19Z","closed_at":"2025-07-01T14:01:42Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7659","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7659","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7659.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7659.patch","merged_at":"2025-07-01T14:01:42Z"},"body":"In the Preprocess tutorial, the to \"the beans dataset\" is incorrect. Fixed.","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7659\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7659\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7658","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7658\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7658\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7658\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7658","id":3187800504,"node_id":"PR_kwDODunzps6cqTMs","number":7658,"title":"Fix: Prevent loss of info.features and column_names in IterableDatasetDict.map when features is None","user":{"login":"ArjunJagdale","id":142811259,"node_id":"U_kgDOCIMgew","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/142811259?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ArjunJagdale","html_url":"https:\/\/github.com\/ArjunJagdale","followers_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/followers","following_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/orgs","repos_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/repos","events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2025-06-30T09:31:12Z","updated_at":"2025-07-01T16:26:30Z","closed_at":"2025-07-01T16:26:12Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7658","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7658","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7658.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7658.patch","merged_at":null},"body":"This PR fixes a bug where calling `IterableDatasetDict.map()` or `IterableDataset.map()` with the default `features=None` argument would overwrite the existing `info.features` attribute with `None`. This, in turn, caused the resulting dataset to lose its schema, breaking downstream usage of attributes like `column_names`.\r\n\r\nWhy\r\nPreviously, the code would always set `info.features = features`, even if `features` was `None`. When mapping with removal of columns or other transformations, this led to the destruction of the schema and caused failures in code that relied on the dataset schema being present.\r\n\r\nHow\r\nWe now update `info.features` only if `features` is not `None`. This preserves the original schema unless the user explicitly provides a new one.\r\n\r\nReference\r\nFixes #7568","closed_by":{"login":"ArjunJagdale","id":142811259,"node_id":"U_kgDOCIMgew","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/142811259?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ArjunJagdale","html_url":"https:\/\/github.com\/ArjunJagdale","followers_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/followers","following_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/orgs","repos_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/repos","events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7658\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7658\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7657","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7657\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7657\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7657\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7657","id":3186036016,"node_id":"PR_kwDODunzps6cks2E","number":7657,"title":"feat: add subset_name as alias for name in load_dataset","user":{"login":"ArjunJagdale","id":142811259,"node_id":"U_kgDOCIMgew","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/142811259?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ArjunJagdale","html_url":"https:\/\/github.com\/ArjunJagdale","followers_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/followers","following_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/orgs","repos_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/repos","events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-06-29T10:39:00Z","updated_at":"2025-07-18T17:45:41Z","closed_at":null,"author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7657","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7657","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7657.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7657.patch","merged_at":null},"body":"fixes #7637\r\n\r\nThis PR introduces subset_name as a user-facing alias for the name (previously `config_name`) argument in load_dataset. It aligns terminology with the Hugging Face Hub UI (which shows \u201cSubset\u201d), reducing confusion for new users.\r\n\r\nSupports `subset_name` in `load_dataset()`\r\n\r\nAdds `.subset_name` property to DatasetBuilder\r\n\r\nMaintains full backward compatibility\r\n\r\nRaises clear error if name and `subset_name` conflict","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7657\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7657\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7656","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7656\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7656\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7656\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7656","id":3185865686,"node_id":"PR_kwDODunzps6ckPHc","number":7656,"title":"fix(iterable): ensure MappedExamplesIterable supports state_dict for resume","user":{"login":"ArjunJagdale","id":142811259,"node_id":"U_kgDOCIMgew","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/142811259?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ArjunJagdale","html_url":"https:\/\/github.com\/ArjunJagdale","followers_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/followers","following_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/orgs","repos_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/repos","events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-06-29T07:50:13Z","updated_at":"2025-06-29T07:50:13Z","closed_at":null,"author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7656","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7656","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7656.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7656.patch","merged_at":null},"body":"Fixes #7630\r\n\r\n### Problem\r\nWhen calling `.map()` on an `IterableDataset`, resuming from a checkpoint skips a large number of samples. This is because `MappedExamplesIterable` did not implement `state_dict()` or `load_state_dict()`, so checkpointing was not properly delegated to the underlying iterable.\r\n\r\n### What This PR Does\r\nThis patch adds:\r\n```python\r\ndef state_dict(self):\r\n return self.ex_iterable.state_dict()\r\n\r\ndef load_state_dict(self, state):\r\n self.ex_iterable.load_state_dict(state)\r\n```\r\n\r\nto MappedExamplesIterable, so the wrapped base iterable's state can be saved and restored as expected.\r\n\r\nResult\r\nUsing .map() no longer causes sample skipping after checkpoint resume.\r\n\r\nLet me know if a dedicated test case is required \u2014 happy to add one!","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7656\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7656\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7655","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7655\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7655\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7655\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7655","id":3185382105,"node_id":"PR_kwDODunzps6ci9oi","number":7655,"title":"Added specific use cases in Improve Performace","user":{"login":"ArjunJagdale","id":142811259,"node_id":"U_kgDOCIMgew","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/142811259?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ArjunJagdale","html_url":"https:\/\/github.com\/ArjunJagdale","followers_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/followers","following_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/orgs","repos_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/repos","events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-06-28T19:00:32Z","updated_at":"2025-06-28T19:00:32Z","closed_at":null,"author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7655","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7655","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7655.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7655.patch","merged_at":null},"body":"Fixes #2494","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7655\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7655\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7654","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7654\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7654\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7654\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7654","id":3184770992,"node_id":"PR_kwDODunzps6chPmz","number":7654,"title":"fix(load): strip deprecated use_auth_token from config_kwargs","user":{"login":"ArjunJagdale","id":142811259,"node_id":"U_kgDOCIMgew","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/142811259?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ArjunJagdale","html_url":"https:\/\/github.com\/ArjunJagdale","followers_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/followers","following_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/orgs","repos_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/repos","events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-06-28T09:20:21Z","updated_at":"2025-06-28T09:20:21Z","closed_at":null,"author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7654","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7654","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7654.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7654.patch","merged_at":null},"body":"Fixes #7504\r\n\r\nThis PR resolves a compatibility error when loading datasets via `load_dataset()` using outdated arguments like `use_auth_token`.\r\n\r\n**What was happening:**\r\nUsers passing `use_auth_token` in `load_dataset(..., use_auth_token=...)` encountered a `ValueError`: BuilderConfig ParquetConfig(...) doesn't have a 'use_auth_token' key.\r\n\r\n**Why:**\r\n`use_auth_token` has been deprecated and removed from config definitions (replaced by `token`), but the `load_dataset()` function still forwarded it via `**config_kwargs` to BuilderConfigs, leading to unrecognized key errors.\r\n\r\n**Fix:**\r\nWe now intercept and strip `use_auth_token` from `config_kwargs` inside `load_dataset`, replacing it with a warning:\r\n```python\r\nif \"use_auth_token\" in config_kwargs:\r\n logger.warning(\"The 'use_auth_token' argument is deprecated. Please use 'token' instead.\")\r\n config_kwargs.pop(\"use_auth_token\")\r\n\r\n```\r\nThis ensures legacy compatibility while guiding users to switch to the token argument.\r\n\r\nLet me know if you'd prefer a deprecation error instead of a warning. Thanks!","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7654\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7654\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7653","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7653\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7653\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7653\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7653","id":3184746093,"node_id":"PR_kwDODunzps6chLmb","number":7653,"title":"feat(load): fallback to `load_from_disk()` when loading a saved dataset directory","user":{"login":"ArjunJagdale","id":142811259,"node_id":"U_kgDOCIMgew","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/142811259?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ArjunJagdale","html_url":"https:\/\/github.com\/ArjunJagdale","followers_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/followers","following_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/orgs","repos_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/repos","events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-06-28T08:47:36Z","updated_at":"2025-06-28T08:47:36Z","closed_at":null,"author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7653","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7653","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7653.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7653.patch","merged_at":null},"body":"### Related Issue\r\n\r\nFixes #7503 \r\nPartially addresses #5044 by allowing `load_dataset()` to auto-detect and gracefully delegate to `load_from_disk()` for locally saved datasets.\r\n\r\n---\r\n\r\n### What does this PR do?\r\n\r\nThis PR introduces a minimal fallback mechanism in `load_dataset()` that detects when the provided `path` points to a dataset saved using `save_to_disk()`, and automatically redirects to `load_from_disk()`.\r\n\r\n#### \ud83d\udc1b Before (unexpected metadata-only rows):\r\n\r\n```python\r\nds = load_dataset(\"\/path\/to\/saved_dataset\")\r\n# \u2192 returns rows with only internal metadata (_data_files, _fingerprint, etc.)\r\n````\r\n\r\n#### \u2705 After (graceful fallback):\r\n\r\n```python\r\nds = load_dataset(\"\/path\/to\/saved_dataset\")\r\n# \u2192 logs a warning and internally switches to load_from_disk()\r\n```\r\n\r\n---\r\n\r\n### Why is this useful?\r\n\r\n* Prevents confusion when reloading local datasets saved via `save_to_disk()`.\r\n* Enables smoother compatibility with frameworks (e.g., TRL, `lighteval`) that rely on `load_dataset()` calls.\r\n* Fully backward-compatible \u2014 hub-based loading, custom builders, and streaming remain untouched.\r\n","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7653\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7653\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7652","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7652\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7652\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7652\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7652","id":3183372055,"node_id":"PR_kwDODunzps6cdCnv","number":7652,"title":"Add columns support to JSON loader for selective key filtering","user":{"login":"ArjunJagdale","id":142811259,"node_id":"U_kgDOCIMgew","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/142811259?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ArjunJagdale","html_url":"https:\/\/github.com\/ArjunJagdale","followers_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/followers","following_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/orgs","repos_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/repos","events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2025-06-27T16:18:42Z","updated_at":"2025-08-13T13:22:17Z","closed_at":null,"author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7652","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7652","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7652.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7652.patch","merged_at":null},"body":"Fixes #7594 \r\nThis PR adds support for filtering specific columns when loading datasets from .json or .jsonl files \u2014 similar to how the columns=... argument works for Parquet.\r\n\r\nAs suggested, support for the `columns=...` argument (previously available for Parquet) has now been extended to **JSON and JSONL** loading via `load_dataset(...)`. You can now load only specific keys\/columns and skip the rest \u2014 which should help in cases where some fields are unclean, inconsistent, or just unnecessary.\r\n\r\n### Example:\r\n\r\n```python\r\nfrom datasets import load_dataset\r\n\r\ndataset = load_dataset(\"json\", data_files=\"your_data.jsonl\", columns=[\"id\", \"title\"])\r\nprint(dataset[\"train\"].column_names)\r\n# Output: ['id', 'title']\r\n```\r\n\r\n### Summary of changes:\r\n\r\n* Added `columns: Optional[List[str]]` to `JsonConfig`\r\n* Updated `_generate_tables()` to filter selected columns\r\n* Forwarded `columns` argument from `load_dataset()` to the config\r\n* Added test for validation(should be fine!)\r\n\r\nLet me know if you'd like the same to be added for CSV or others as a follow-up \u2014 happy to help.","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7652\/reactions","total_count":1,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7652\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7651","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7651\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7651\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7651\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7651","id":3182792775,"node_id":"PR_kwDODunzps6cbMmg","number":7651,"title":"fix: Extended metadata file names for folder_based_builder","user":{"login":"iPieter","id":6965756,"node_id":"MDQ6VXNlcjY5NjU3NTY=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/6965756?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/iPieter","html_url":"https:\/\/github.com\/iPieter","followers_url":"https:\/\/api.github.com\/users\/iPieter\/followers","following_url":"https:\/\/api.github.com\/users\/iPieter\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/iPieter\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/iPieter\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/iPieter\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/iPieter\/orgs","repos_url":"https:\/\/api.github.com\/users\/iPieter\/repos","events_url":"https:\/\/api.github.com\/users\/iPieter\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/iPieter\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-06-27T13:12:11Z","updated_at":"2025-06-30T08:19:37Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7651","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7651","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7651.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7651.patch","merged_at":null},"body":"Fixes #7650.\r\n\r\nThe metadata files generated by the `DatasetDict.save_to_file` function are not included in the folder_based_builder's metadata list, causing issues when only 1 actual data file is present, as described in issue #7650.\r\n\r\nThis PR adds these filenames to the builder, allowing correct loading.","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7651\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7651\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7650","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7650\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7650\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7650\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7650","id":3182745315,"node_id":"I_kwDODunzps69tNbj","number":7650,"title":"`load_dataset` defaults to json file format for datasets with 1 shard","user":{"login":"iPieter","id":6965756,"node_id":"MDQ6VXNlcjY5NjU3NTY=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/6965756?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/iPieter","html_url":"https:\/\/github.com\/iPieter","followers_url":"https:\/\/api.github.com\/users\/iPieter\/followers","following_url":"https:\/\/api.github.com\/users\/iPieter\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/iPieter\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/iPieter\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/iPieter\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/iPieter\/orgs","repos_url":"https:\/\/api.github.com\/users\/iPieter\/repos","events_url":"https:\/\/api.github.com\/users\/iPieter\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/iPieter\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-06-27T12:54:25Z","updated_at":"2025-06-27T12:54:25Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI currently have multiple datasets (train+validation) saved as 50MB shards. For one dataset the validation pair is small enough to fit into a single shard and this apparently causes problems when loading the dataset. I created the datasets using a DatasetDict, saved them as 50MB arrow files for streaming and then load each dataset. I have no problem loading any of the other datasets with more than 1 arrow file\/shard. \n\nThe error indicates the training set got loaded in arrow format (correct) and the validation set in json (incorrect). This seems to be because some of the metadata files are considered as dataset files. \n```\nError loading \/nfs\/dataset_pt-uk: Couldn't infer the same data file format for all splits. Got {NamedSplit('train'): ('arrow', {}), NamedSplit('validation'): ('json', {})} \n```\n\n![Image](https:\/\/github.com\/user-attachments\/assets\/f6e7596a-dd53-46a9-9a23-4e9cac2ac049)\n\nConcretely, there is a mismatch between the metadata created by the `DatasetDict.save_to_file` and the builder for `datasets.load_dataset`:\n\nhttps:\/\/github.com\/huggingface\/datasets\/blob\/e71b0b19d79c7531f9b9bea7c09916b5f6157f42\/src\/datasets\/data_files.py#L107\n\nThe `folder_based_builder` lists all files and with 1 arrow file the json files (that are actually metadata) are in the majority.\nhttps:\/\/github.com\/huggingface\/datasets\/blob\/e71b0b19d79c7531f9b9bea7c09916b5f6157f42\/src\/datasets\/packaged_modules\/folder_based_builder\/folder_based_builder.py#L58\n\n### Steps to reproduce the bug\n\nCreate a dataset with metadata and 1 arrow file in validation and multiple arrow files in the training set, following the above description. In my case, I saved the files via:\n\n```python\n dataset = DatasetDict({\n 'train': train_dataset,\n 'validation': val_dataset\n })\n \n dataset.save_to_disk(output_path, max_shard_size=\"50MB\")\n```\n\n### Expected behavior\n\nThe dataset would get loaded.\n\n### Environment info\n\n- `datasets` version: 3.6.0\n- Platform: Linux-6.14.0-22-generic-x86_64-with-glibc2.41\n- Python version: 3.12.7\n- `huggingface_hub` version: 0.31.1\n- PyArrow version: 18.1.0\n- Pandas version: 2.2.3\n- `fsspec` version: 2024.6.1","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7650\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7650\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7649","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7649\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7649\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7649\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7649","id":3181481444,"node_id":"PR_kwDODunzps6cW0sQ","number":7649,"title":"Enable parallel shard upload in push_to_hub() using num_proc","user":{"login":"ArjunJagdale","id":142811259,"node_id":"U_kgDOCIMgew","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/142811259?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ArjunJagdale","html_url":"https:\/\/github.com\/ArjunJagdale","followers_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/followers","following_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/orgs","repos_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/repos","events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-06-27T05:59:03Z","updated_at":"2025-07-07T18:13:53Z","closed_at":"2025-07-07T18:13:52Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7649","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7649","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7649.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7649.patch","merged_at":null},"body":"Fixes #7591\r\n\r\n### Add num_proc support to `push_to_hub()` for parallel shard upload\r\n\r\nThis PR adds support for parallel upload of dataset shards via the `num_proc` argument in `Dataset.push_to_hub()`.\r\n\r\n\ud83d\udccc While the `num_proc` parameter was already present in the `push_to_hub()` signature and correctly passed to `_push_parquet_shards_to_hub()`, it was not being used to parallelize the upload.\r\n\r\n\ud83d\udd27 This PR updates the internal `_push_parquet_shards_to_hub()` function to:\r\n\r\n- Use `multiprocessing.Pool` and `iflatmap_unordered()` for concurrent shard upload when `num_proc > 1`\r\n- Preserve original serial upload behavior if `num_proc` is `None` or \u2264 1\r\n- Keep tqdm progress and commit behavior unchanged\r\n\r\nLet me know if any test coverage or further changes are needed!\r\n","closed_by":{"login":"ArjunJagdale","id":142811259,"node_id":"U_kgDOCIMgew","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/142811259?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ArjunJagdale","html_url":"https:\/\/github.com\/ArjunJagdale","followers_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/followers","following_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/orgs","repos_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/repos","events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7649\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7649\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7648","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7648\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7648\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7648\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7648","id":3181409736,"node_id":"PR_kwDODunzps6cWmSn","number":7648,"title":"Fix misleading add_column() usage example in docstring","user":{"login":"ArjunJagdale","id":142811259,"node_id":"U_kgDOCIMgew","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/142811259?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ArjunJagdale","html_url":"https:\/\/github.com\/ArjunJagdale","followers_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/followers","following_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/orgs","repos_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/repos","events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2025-06-27T05:27:04Z","updated_at":"2025-07-28T19:42:34Z","closed_at":"2025-07-17T13:14:17Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7648","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7648","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7648.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7648.patch","merged_at":"2025-07-17T13:14:17Z"},"body":"Fixes #7611\r\n\r\nThis PR fixes the usage example in the Dataset.add_column() docstring, which previously implied that add_column() modifies the dataset in-place.\r\n\r\nWhy:\r\nThe method returns a new dataset with the additional column, and users must assign the result to a variable to preserve the change.\r\n\r\nThis should make the behavior clearer for users.\r\n@lhoestq @davanstrien ","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7648\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7648\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7647","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7647\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7647\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7647\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7647","id":3178952517,"node_id":"I_kwDODunzps69evdF","number":7647,"title":"loading mozilla-foundation--common_voice_11_0 fails","user":{"login":"pavel-esir","id":5703039,"node_id":"MDQ6VXNlcjU3MDMwMzk=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/5703039?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/pavel-esir","html_url":"https:\/\/github.com\/pavel-esir","followers_url":"https:\/\/api.github.com\/users\/pavel-esir\/followers","following_url":"https:\/\/api.github.com\/users\/pavel-esir\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/pavel-esir\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/pavel-esir\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/pavel-esir\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/pavel-esir\/orgs","repos_url":"https:\/\/api.github.com\/users\/pavel-esir\/repos","events_url":"https:\/\/api.github.com\/users\/pavel-esir\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/pavel-esir\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-06-26T12:23:48Z","updated_at":"2025-07-10T14:49:30Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nHello everyone,\n\ni am trying to load `mozilla-foundation--common_voice_11_0` and it fails. Reproducer \n\n```\nimport datasets\ndatasets.load_dataset(\"mozilla-foundation\/common_voice_11_0\", \"en\", split=\"test\", streaming=True, trust_remote_code=True)\n```\nand it fails with\n```\nFile ~\/opt\/envs\/...\/lib\/python3.10\/site-packages\/datasets\/utils\/file_utils.py:827, in _add_retries_to_file_obj_read_method..read_with_retries(*args, **kwargs)\n 825 for retry in range(1, max_retries + 1):\n 826 try:\n--> 827 out = read(*args, **kwargs)\n 828 break\n 829 except (\n 830 _AiohttpClientError,\n 831 asyncio.TimeoutError,\n 832 requests.exceptions.ConnectionError,\n 833 requests.exceptions.Timeout,\n 834 ) as err:\n\nFile \/usr\/lib\/python3.10\/codecs.py:322, in BufferedIncrementalDecoder.decode(self, input, final)\n 319 def decode(self, input, final=False):\n 320 # decode input (taking the buffer into account)\n 321 data = self.buffer + input\n--> 322 (result, consumed) = self._buffer_decode(data, self.errors, final)\n 323 # keep undecoded input until the next call\n 324 self.buffer = data[consumed:]\n\nUnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte\n```\nWhen i remove streaming then everything is good but i need `streaming=True`\n\n### Steps to reproduce the bug\n\n```\nimport datasets\ndatasets.load_dataset(\"mozilla-foundation\/common_voice_11_0\", \"en\", split=\"test\", streaming=True, trust_remote_code=True)\n```\n\n### Expected behavior\n\nExpected that it will download dataset\n\n### Environment info\n\ndatasets==3.6.0 \npython3.10\non all platforms linux\/win\/mac","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7647\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7647\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7646","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7646\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7646\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7646\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7646","id":3178036854,"node_id":"PR_kwDODunzps6cLhrM","number":7646,"title":"Introduces automatic subset-level grouping for folder-based dataset builders #7066","user":{"login":"ArjunJagdale","id":142811259,"node_id":"U_kgDOCIMgew","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/142811259?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ArjunJagdale","html_url":"https:\/\/github.com\/ArjunJagdale","followers_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/followers","following_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/orgs","repos_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/repos","events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2025-06-26T07:01:37Z","updated_at":"2025-07-14T10:42:56Z","closed_at":null,"author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7646","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7646","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7646.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7646.patch","merged_at":null},"body":"Fixes #7066\r\nThis PR introduces automatic **subset-level grouping** for folder-based dataset builders by:\r\n\r\n1. Adding a utility function `group_files_by_subset()` that clusters files by root name (ignoring digits and shard suffixes).\r\n2. Integrating this logic into `FolderBasedBuilder._split_generators()` to yield one split per subset.\r\n3. Adding unit tests for the grouping function.\r\n4. Updating the documentation to describe this new behavior under `docs\/source\/repository_structure.mdx`.\r\n\r\n---\r\n\r\n### Motivation\r\n\r\nDatasets with files like:\r\n```\r\n\r\ntrain0.jsonl\r\ntrain1.jsonl\r\nanimals.jsonl\r\nmetadata.jsonl\r\n\r\n```\r\n\r\nwill now be **automatically grouped** as:\r\n- `\"train\"` subset \u2192 `train0.jsonl`, `train1.jsonl`\r\n- `\"animals\"` subset \u2192 `animals.jsonl`\r\n- `\"metadata\"` subset \u2192 `metadata.jsonl`\r\n\r\nThis enables structured multi-subset loading even when the dataset doesn't follow traditional `train\/validation\/test` split conventions.\r\n\r\n---\r\n\r\n### Files Changed\r\n\r\n- `src\/datasets\/data_files.py`: added `group_files_by_subset()` utility\r\n- `src\/datasets\/packaged_modules\/folder_based_builder\/folder_based_builder.py`: grouped files before yielding splits\r\n- `tests\/test_data_files.py`: added unit test `test_group_files_by_subset`\r\n- `docs\/source\/repository_structure.mdx`: documented subset grouping for maintainers and users\r\n\r\n---\r\n\r\n### Benefits\r\n\r\n- More flexible and robust dataset split logic\r\n- Enables logical grouping of user-uploaded files without nested folder structure\r\n- Backward-compatible with all existing folder-based configs\r\n\r\n---\r\n\r\nReady for review \u2705","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7646\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7646\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7645","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7645\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7645\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7645\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7645","id":3176810164,"node_id":"PR_kwDODunzps6cHkp-","number":7645,"title":"`ClassLabel` docs: Correct value for unknown labels","user":{"login":"l-uuz","id":56924246,"node_id":"MDQ6VXNlcjU2OTI0MjQ2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/56924246?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/l-uuz","html_url":"https:\/\/github.com\/l-uuz","followers_url":"https:\/\/api.github.com\/users\/l-uuz\/followers","following_url":"https:\/\/api.github.com\/users\/l-uuz\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/l-uuz\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/l-uuz\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/l-uuz\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/l-uuz\/orgs","repos_url":"https:\/\/api.github.com\/users\/l-uuz\/repos","events_url":"https:\/\/api.github.com\/users\/l-uuz\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/l-uuz\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-06-25T20:01:35Z","updated_at":"2025-06-25T20:01:35Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7645","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7645","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7645.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7645.patch","merged_at":null},"body":"This small change fixes the documentation to to be compliant with what happens in `encode_example`.\r\nhttps:\/\/github.com\/huggingface\/datasets\/blob\/e71b0b19d79c7531f9b9bea7c09916b5f6157f42\/src\/datasets\/features\/features.py#L1126-L1129","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7645\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7645\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7644","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7644\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7644\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7644\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7644","id":3176363492,"node_id":"PR_kwDODunzps6cGGfW","number":7644,"title":"fix sequence ci","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-06-25T17:07:55Z","updated_at":"2025-06-25T17:10:30Z","closed_at":"2025-06-25T17:08:01Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7644","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7644","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7644.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7644.patch","merged_at":"2025-06-25T17:08:01Z"},"body":"fix error from https:\/\/github.com\/huggingface\/datasets\/pull\/7643","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7644\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7644\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7643","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7643\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7643\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7643\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7643","id":3176354431,"node_id":"PR_kwDODunzps6cGEeK","number":7643,"title":"Backward compat sequence instance","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-06-25T17:05:09Z","updated_at":"2025-06-25T17:07:40Z","closed_at":"2025-06-25T17:05:44Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7643","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7643","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7643.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7643.patch","merged_at":"2025-06-25T17:05:43Z"},"body":"useful to still get `isinstance(Sequence(Value(\"int64\")), Sequence)`for downstream libs like evaluate","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7643\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7643\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7642","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7642\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7642\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7642\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7642","id":3176025890,"node_id":"PR_kwDODunzps6cE_Wr","number":7642,"title":"fix length for ci","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-06-25T15:10:38Z","updated_at":"2025-06-25T15:11:53Z","closed_at":"2025-06-25T15:11:51Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7642","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7642","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7642.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7642.patch","merged_at":"2025-06-25T15:11:51Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7642\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7642\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7641","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7641\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7641\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7641\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7641","id":3175953405,"node_id":"PR_kwDODunzps6cEwUl","number":7641,"title":"update docs and docstrings","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-06-25T14:48:58Z","updated_at":"2025-06-25T14:51:46Z","closed_at":"2025-06-25T14:49:33Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7641","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7641","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7641.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7641.patch","merged_at":"2025-06-25T14:49:33Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7641\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7641\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7640","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7640\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7640\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7640\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7640","id":3175914924,"node_id":"PR_kwDODunzps6cEofU","number":7640,"title":"better features repr","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-06-25T14:37:32Z","updated_at":"2025-06-25T14:46:47Z","closed_at":"2025-06-25T14:46:45Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7640","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7640","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7640.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7640.patch","merged_at":"2025-06-25T14:46:45Z"},"body":"following the addition of List in #7634 \r\n\r\nbefore:\r\n\r\n```python\r\nIn [3]: ds.features\r\nOut[3]: \r\n{'json': {'id': Value(dtype='string', id=None),\r\n 'metadata:transcript': [{'end': Value(dtype='float64', id=None),\r\n 'start': Value(dtype='float64', id=None),\r\n 'transcript': Value(dtype='string', id=None),\r\n 'words': [{'end': Value(dtype='float64', id=None),\r\n 'score': Value(dtype='float64', id=None),\r\n 'start': Value(dtype='float64', id=None),\r\n 'word': Value(dtype='string', id=None)}]}],\r\n 'metadata:vad': [{'end': Value(dtype='float64', id=None),\r\n 'start': Value(dtype='float64', id=None)}]},\r\n 'mp4': Value(dtype='binary', id=None),\r\n 'npz': {'boxes_and_keypoints:box': Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None),\r\n 'boxes_and_keypoints:is_valid_box': Sequence(feature=Value(dtype='bool', id=None), length=-1, id=None),\r\n 'boxes_and_keypoints:keypoints': Sequence(feature=Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None), length=-1, id=None),\r\n 'movement:EmotionArousalToken': Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None),\r\n 'movement:EmotionValenceToken': Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None),\r\n 'movement:FAUToken': Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None),\r\n 'movement:FAUValue': Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None),\r\n 'movement:alignment_head_rotation': Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None),\r\n 'movement:alignment_translation': Sequence(feature=Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None), length=-1, id=None),\r\n 'movement:emotion_arousal': Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None),\r\n 'movement:emotion_scores': Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None),\r\n 'movement:emotion_valence': Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None),\r\n 'movement:expression': Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None),\r\n 'movement:frame_latent': Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None),\r\n 'movement:gaze_encodings': Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None),\r\n 'movement:head_encodings': Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None),\r\n 'movement:hypernet_features': Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None),\r\n 'movement:is_valid': Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None),\r\n 'smplh:body_pose': Sequence(feature=Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None), length=-1, id=None),\r\n 'smplh:global_orient': Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None),\r\n 'smplh:is_valid': Sequence(feature=Value(dtype='bool', id=None), length=-1, id=None),\r\n 'smplh:left_hand_pose': Sequence(feature=Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None), length=-1, id=None),\r\n 'smplh:right_hand_pose': Sequence(feature=Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None), length=-1, id=None),\r\n 'smplh:translation': Sequence(feature=Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), length=-1, id=None)},\r\n 'wav': Audio(sampling_rate=None, mono=True, decode=True, id=None),\r\n '__key__': Value(dtype='string', id=None),\r\n '__url__': Value(dtype='string', id=None)}\r\n```\r\n\r\nafter:\r\n\r\n```python\r\nIn [3]: ds.features\r\nOut[3]: \r\n{'json': {'id': Value('string'),\r\n 'metadata:transcript': List({'end': Value('float64'), 'start': Value('float64'), 'transcript': Value('string'), 'words': List({'end': Value('float64'), 'score': Value('float64'), 'start': Value('float64'), 'word': Value('string')})}),\r\n 'metadata:vad': List({'end': Value('float64'), 'start': Value('float64')})},\r\n 'mp4': Value('binary'),\r\n 'npz': {'boxes_and_keypoints:box': List(List(Value('float32'))),\r\n 'boxes_and_keypoints:is_valid_box': List(Value('bool')),\r\n 'boxes_and_keypoints:keypoints': List(List(List(Value('float32')))),\r\n 'movement:EmotionArousalToken': List(List(Value('float32'))),\r\n 'movement:EmotionValenceToken': List(List(Value('float32'))),\r\n 'movement:FAUToken': List(List(Value('float32'))),\r\n 'movement:FAUValue': List(List(Value('float32'))),\r\n 'movement:alignment_head_rotation': List(List(Value('float32'))),\r\n 'movement:alignment_translation': List(List(List(Value('float32')))),\r\n 'movement:emotion_arousal': List(List(Value('float32'))),\r\n 'movement:emotion_scores': List(List(Value('float32'))),\r\n 'movement:emotion_valence': List(List(Value('float32'))),\r\n 'movement:expression': List(List(Value('float32'))),\r\n 'movement:frame_latent': List(List(Value('float32'))),\r\n 'movement:gaze_encodings': List(List(Value('float32'))),\r\n 'movement:head_encodings': List(List(Value('float32'))),\r\n 'movement:hypernet_features': List(List(Value('float32'))),\r\n 'movement:is_valid': List(List(Value('float32'))),\r\n 'smplh:body_pose': List(List(List(Value('float32')))),\r\n 'smplh:global_orient': List(List(Value('float32'))),\r\n 'smplh:is_valid': List(Value('bool')),\r\n 'smplh:left_hand_pose': List(List(List(Value('float32')))),\r\n 'smplh:right_hand_pose': List(List(List(Value('float32')))),\r\n 'smplh:translation': List(List(Value('float32')))},\r\n 'wav': Audio(sampling_rate=None, decode=True, stream_index=None),\r\n '__key__': Value('string'),\r\n '__url__': Value('string')}\r\n```","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7640\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7640\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7639","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7639\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7639\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7639\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7639","id":3175616169,"node_id":"PR_kwDODunzps6cDoAf","number":7639,"title":"fix save_infos","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-06-25T13:16:26Z","updated_at":"2025-06-25T13:19:33Z","closed_at":"2025-06-25T13:16:33Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7639","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7639","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7639.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7639.patch","merged_at":"2025-06-25T13:16:33Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7639\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7639\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7638","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7638\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7638\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7638\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7638","id":3172645391,"node_id":"PR_kwDODunzps6b5vpZ","number":7638,"title":"Add ignore_decode_errors option to Image feature for robust decoding #7612","user":{"login":"ArjunJagdale","id":142811259,"node_id":"U_kgDOCIMgew","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/142811259?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ArjunJagdale","html_url":"https:\/\/github.com\/ArjunJagdale","followers_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/followers","following_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/orgs","repos_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/repos","events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2025-06-24T16:47:51Z","updated_at":"2025-07-04T07:07:30Z","closed_at":null,"author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7638","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7638","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7638.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7638.patch","merged_at":null},"body":"This PR implements support for robust image decoding in the `Image` feature, as discussed in issue #7612.\r\n\r\n## \ud83d\udd27 What was added\r\n- A new boolean field: `ignore_decode_errors` (default: `False`)\r\n- If set to `True`, any exceptions during decoding will be caught, and `None` will be returned instead of raising an error\r\n\r\n```python\r\nfeatures = Features({\r\n \"image\": Image(decode=True, ignore_decode_errors=True),\r\n})\r\n````\r\n\r\nThis enables robust iteration over potentially corrupted datasets \u2014 especially useful when streaming datasets like WebDataset or image-heavy public sets where sample corruption is common.\r\n\r\n## \ud83e\uddea Behavior\r\n\r\n* If `ignore_decode_errors=False` (default), decoding behaves exactly as before\r\n* If `True`, decoding errors are caught, and a warning is emitted:\r\n\r\n ```\r\n [Image.decode_example] Skipped corrupted image: ...\r\n ```\r\n\r\n## \ud83e\uddf5 Linked issue\r\n\r\nCloses #7612\r\n\r\nLet me know if you'd like a follow-up test PR. Happy to write one!","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7638\/reactions","total_count":1,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7638\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7637","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7637\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7637\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7637\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7637","id":3171883522,"node_id":"I_kwDODunzps69DxoC","number":7637,"title":"Introduce subset_name as an alias of config_name","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2025-06-24T12:49:01Z","updated_at":"2025-07-01T16:08:33Z","closed_at":null,"author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nAdd support for `subset_name` as an alias for `config_name` in the datasets library and related tools (such as loading scripts, documentation, and metadata).\n\n### Motivation\n\nThe Hugging Face Hub dataset viewer displays a column named **\"Subset\"**, which refers to what is currently technically called config_name in the datasets library. This inconsistency has caused confusion for many users, especially those unfamiliar with the internal terminology.\n\nI have repeatedly received questions from users trying to understand what \"config\" means, and why it doesn\u2019t match what they see as \"subset\" on the Hub. Renaming everything to `subset_name` might be too disruptive, but introducing subset_name as a clear alias for config_name could significantly improve user experience without breaking backward compatibility.\n\nThis change would:\n- Align terminology across the Hub UI and datasets codebase\n- Reduce user confusion, especially for newcomers\n- Make documentation and examples more intuitive\n","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7637\/reactions","total_count":2,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":1,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7637\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7636","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7636\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7636\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7636\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7636","id":3170878167,"node_id":"I_kwDODunzps68_8LX","number":7636,"title":"\"open\" in globals()[\"__builtins__\"], an error occurs: \"TypeError: argument of type 'module' is not iterable\"","user":{"login":"kuanyan9527","id":51187979,"node_id":"MDQ6VXNlcjUxMTg3OTc5","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/51187979?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/kuanyan9527","html_url":"https:\/\/github.com\/kuanyan9527","followers_url":"https:\/\/api.github.com\/users\/kuanyan9527\/followers","following_url":"https:\/\/api.github.com\/users\/kuanyan9527\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/kuanyan9527\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/kuanyan9527\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/kuanyan9527\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/kuanyan9527\/orgs","repos_url":"https:\/\/api.github.com\/users\/kuanyan9527\/repos","events_url":"https:\/\/api.github.com\/users\/kuanyan9527\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/kuanyan9527\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2025-06-24T08:09:39Z","updated_at":"2025-07-10T04:13:16Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"When I run the following code, an error occurs: \"TypeError: argument of type 'module' is not iterable\"\n```python\nprint(\"open\" in globals()[\"__builtins__\"])\n```\nTraceback (most recent call last):\n File \".\/main.py\", line 2, in \n print(\"open\" in globals()[\"__builtins__\"])\n ^^^^^^^^^^^^^^^^^^^^^^\nTypeError: argument of type 'module' is not iterable\n\nBut this code runs fine in datasets, I don't understand why\n[src\/datasets\/utils\/patching.py#L96](https:\/\/github.com\/huggingface\/datasets\/blob\/3.6.0\/src\/datasets\/utils\/patching.py#L96)","closed_by":{"login":"kuanyan9527","id":51187979,"node_id":"MDQ6VXNlcjUxMTg3OTc5","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/51187979?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/kuanyan9527","html_url":"https:\/\/github.com\/kuanyan9527","followers_url":"https:\/\/api.github.com\/users\/kuanyan9527\/followers","following_url":"https:\/\/api.github.com\/users\/kuanyan9527\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/kuanyan9527\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/kuanyan9527\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/kuanyan9527\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/kuanyan9527\/orgs","repos_url":"https:\/\/api.github.com\/users\/kuanyan9527\/repos","events_url":"https:\/\/api.github.com\/users\/kuanyan9527\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/kuanyan9527\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7636\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7636\/timeline","performed_via_github_app":null,"state_reason":"reopened","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7635","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7635\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7635\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7635\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7635","id":3170486408,"node_id":"PR_kwDODunzps6bybOe","number":7635,"title":"Fix: Preserve float columns in JSON loader when values are integer-like (e.g. 0.0, 1.0)","user":{"login":"ArjunJagdale","id":142811259,"node_id":"U_kgDOCIMgew","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/142811259?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ArjunJagdale","html_url":"https:\/\/github.com\/ArjunJagdale","followers_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/followers","following_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/orgs","repos_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/repos","events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-06-24T06:16:48Z","updated_at":"2025-06-24T06:16:48Z","closed_at":null,"author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7635","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7635","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7635.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7635.patch","merged_at":null},"body":"This PR fixes a bug in the JSON loader where columns containing float values like `[0.0, 1.0, 2.0]` were being implicitly coerced to `int`, due to pandas or Arrow type inference.\r\n\r\nThis caused issues downstream in statistics computation (e.g., dataset-viewer) where such columns were incorrectly labeled as `\"int\"` instead of `\"float\"`.\r\n\r\n### \ud83d\udd0d What was happening:\r\nWhen the JSON loader falls back to `pandas_read_json()` (after `pa.read_json()` fails), pandas\/Arrow can coerce float values to integers if all values are integer-like (e.g., `0.0 == 0`).\r\n\r\n### \u2705 What this PR does:\r\n- Adds a check in the fallback path of `_generate_tables()`\r\n- Ensures that columns made entirely of floats are preserved as `\"float64\"` even if they are integer-like (e.g. `0.0`, `1.0`)\r\n- This prevents loss of float semantics when creating the Arrow table\r\n\r\n### \ud83e\uddea Reproducible Example:\r\n```json\r\n[{\"col\": 0.0}, {\"col\": 1.0}, {\"col\": 2.0}]\r\n````\r\n\r\nPreviously loaded as:\r\n\r\n* `int`\r\n\r\nNow correctly loaded as:\r\n\r\n* `float`\r\n\r\nFixes #6937\r\n","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7635\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7635\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7634","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7634\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7634\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7634\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7634","id":3169389653,"node_id":"PR_kwDODunzps6buyij","number":7634,"title":"Replace Sequence by List","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-06-23T20:35:48Z","updated_at":"2025-06-25T13:59:13Z","closed_at":"2025-06-25T13:59:11Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7634","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7634","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7634.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7634.patch","merged_at":"2025-06-25T13:59:11Z"},"body":"Sequence is just a utility that we need to keep for backward compatibility. And `[ ]` was used instead but doesn't allow passing the length of the list.\r\n\r\nThis PR removes most mentions of Sequence and usage of `[ ]` and defines a proper List type instead.\r\n\r\nbefore: `Sequence(Value(\"int64\"))` or `[Value(\"int64\")]`\r\nnow: `List(Value(\"int64\"))`\r\n\r\nThis PR conserves full backward compatibility. And it's a good occasion with the release of 4.0.0","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7634\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7634\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7633","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7633\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7633\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7633\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7633","id":3168399637,"node_id":"I_kwDODunzps682fEV","number":7633,"title":"Proposal: Small Tamil Discourse Coherence Dataset.","user":{"login":"bikkiNitSrinagar","id":66418501,"node_id":"MDQ6VXNlcjY2NDE4NTAx","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/66418501?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/bikkiNitSrinagar","html_url":"https:\/\/github.com\/bikkiNitSrinagar","followers_url":"https:\/\/api.github.com\/users\/bikkiNitSrinagar\/followers","following_url":"https:\/\/api.github.com\/users\/bikkiNitSrinagar\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/bikkiNitSrinagar\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/bikkiNitSrinagar\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/bikkiNitSrinagar\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/bikkiNitSrinagar\/orgs","repos_url":"https:\/\/api.github.com\/users\/bikkiNitSrinagar\/repos","events_url":"https:\/\/api.github.com\/users\/bikkiNitSrinagar\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/bikkiNitSrinagar\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-06-23T14:24:40Z","updated_at":"2025-06-23T14:24:40Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"I\u2019m a beginner from NIT Srinagar proposing a dataset of 50 Tamil text pairs for discourse coherence (coherent\/incoherent labels) to support NLP research in low-resource languages.\n- Size: 50 samples\n- Format: CSV with columns (text1, text2, label)\n- Use case: Training NLP models for coherence\nI\u2019ll use GitHub\u2019s web editor and Google Colab. Please confirm if this fits.","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7633\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7633\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7632","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7632\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7632\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7632\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7632","id":3168283589,"node_id":"I_kwDODunzps682CvF","number":7632,"title":"Graceful Error Handling for cast_column(\"image\", Image(decode=True)) in Hugging Face Datasets","user":{"login":"ganiket19","id":37377515,"node_id":"MDQ6VXNlcjM3Mzc3NTE1","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/37377515?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ganiket19","html_url":"https:\/\/github.com\/ganiket19","followers_url":"https:\/\/api.github.com\/users\/ganiket19\/followers","following_url":"https:\/\/api.github.com\/users\/ganiket19\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ganiket19\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ganiket19\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ganiket19\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ganiket19\/orgs","repos_url":"https:\/\/api.github.com\/users\/ganiket19\/repos","events_url":"https:\/\/api.github.com\/users\/ganiket19\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ganiket19\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-06-23T13:49:24Z","updated_at":"2025-07-08T06:52:53Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nCurrently, when using dataset.cast_column(\"image\", Image(decode=True)), the pipeline throws an error and halts if any image in the dataset is invalid or corrupted (e.g., truncated files, incorrect formats, unreachable URLs). This behavior disrupts large-scale processing where a few faulty samples are common.\nreference : https:\/\/discuss.huggingface.co\/t\/handle-errors-when-loading-images-404-corrupted-etc\/50318\/5\n https:\/\/discuss.huggingface.co\/t\/handling-non-existing-url-in-image-dataset-while-cast-column\/69185\n \nProposed Feature\n\nIntroduce a mechanism (e.g., a continue_on_error=True flag or global error handling mode) in Image(decode=True) that:\n\nSkips invalid images and sets them as None, or\n\nLogs the error but allows the rest of the dataset to be processed without interruption.\n\n\nExample Usage\n\nfrom datasets import load_dataset, Image\n\ndataset = load_dataset(\"my_dataset\")\ndataset = dataset.cast_column(\"image\", Image(decode=True, continue_on_error=True))\n\nBenefits\n\nEnsures robust large-scale image dataset processing.\n\nImproves developer productivity by avoiding custom retry\/error-handling code.\n\nAligns with best practices in dataset preprocessing pipelines that tolerate minor data corruption.\n\n\nPotential Implementation Options\n\nInternally wrap the decoding in a try\/except block.\n\nReturn None or a placeholder on failure.\n\nOptionally allow custom error callbacks or logging.\n\n### Motivation\n\nRobustness: Large-scale image datasets often contain a small fraction of corrupt files or unreachable URLs. Halting on the first error forces users to write custom workarounds or preprocess externally.\n\nSimplicity: A built-in flag removes boilerplate try\/except logic around every decode step.\n\nPerformance: Skipping invalid samples inline is more efficient than a two-pass approach (filter then decode).\n\n### Your contribution\n\n\n1. API Change\nExtend datasets.features.Image(decode=True) to accept continue_on_error: bool = False.\n\n2. Behavior\nIf continue_on_error=False (default), maintain current behavior: any decode error raises an exception.\nIf continue_on_error=True, wrap decode logic in try\/except:\nOn success: store the decoded image.\nOn failure: log a warning (e.g., via logging.warning) and set the field to None (or a sentinel value).\n\n\n3. Optional Enhancements\nAllow a callback hook:\nImage(decode=True, continue_on_error=True, on_error=lambda idx, url, exc: ...)\nEmit metrics or counts of skipped images.","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7632\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7632\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7631","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7631\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7631\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7631\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7631","id":3165127657,"node_id":"PR_kwDODunzps6bgwOB","number":7631,"title":"Pass user-agent from DownloadConfig into fsspec storage_options","user":{"login":"ArjunJagdale","id":142811259,"node_id":"U_kgDOCIMgew","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/142811259?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ArjunJagdale","html_url":"https:\/\/github.com\/ArjunJagdale","followers_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/followers","following_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/orgs","repos_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/repos","events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-06-21T14:22:25Z","updated_at":"2025-06-21T14:25:28Z","closed_at":null,"author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7631","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7631","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7631.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7631.patch","merged_at":null},"body":"Fixes part of issue #6046\r\n\r\n### Problem\r\nThe `user-agent` defined in `DownloadConfig` was not passed down to fsspec-based filesystems like `HfFileSystem`, which prevents proper identification\/tracking of client requests.\r\n\r\n### Solution\r\nAdded support for injecting the `user-agent` into `storage_options[\"headers\"]` within `_prepare_single_hop_path_and_storage_options()` based on the `protocol`.\r\n\r\nNow, when using `hf:\/\/`, `http:\/\/`, or `https:\/\/`, the custom user-agent is passed automatically.\r\n\r\n### Code Location\r\nModified:\r\n- `src\/datasets\/utils\/file_utils.py`\r\n\r\nUsed `get_datasets_user_agent(...)` to ensure proper formatting and fallback logic.","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7631\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7631\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7630","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7630\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7630\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7630\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7630","id":3164650900,"node_id":"I_kwDODunzps68oL2U","number":7630,"title":"[bug] resume from ckpt skips samples if .map is applied","user":{"login":"felipemello1","id":23004953,"node_id":"MDQ6VXNlcjIzMDA0OTUz","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/23004953?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/felipemello1","html_url":"https:\/\/github.com\/felipemello1","followers_url":"https:\/\/api.github.com\/users\/felipemello1\/followers","following_url":"https:\/\/api.github.com\/users\/felipemello1\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/felipemello1\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/felipemello1\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/felipemello1\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/felipemello1\/orgs","repos_url":"https:\/\/api.github.com\/users\/felipemello1\/repos","events_url":"https:\/\/api.github.com\/users\/felipemello1\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/felipemello1\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-06-21T01:50:03Z","updated_at":"2025-06-29T07:51:32Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nresume from ckpt skips samples if .map is applied\n\nMaybe related: https:\/\/github.com\/huggingface\/datasets\/issues\/7538\n\n### Steps to reproduce the bug\n\n```python\nfrom datasets import Dataset\nfrom datasets.distributed import split_dataset_by_node\n\n\n# Create dataset with map transformation\ndef create_dataset():\n ds = Dataset.from_dict({\"id\": list(range(100))})\n ds = ds.to_iterable_dataset(num_shards=4)\n ds = ds.map(lambda x: x) #comment it out to get desired behavior\n ds = split_dataset_by_node(ds, rank=0, world_size=2)\n return ds\n\n\nds = create_dataset()\n\n# Iterate and save checkpoint after 10 samples\nit = iter(ds)\nfor idx, sample in enumerate(it):\n if idx == 9: # Checkpoint after 10 samples\n checkpoint = ds.state_dict()\n print(f\"Checkpoint saved at sample: {sample['id']}\")\n break\n\n# Continue with original iterator\noriginal_next_samples = []\nfor idx, sample in enumerate(it):\n original_next_samples.append(sample[\"id\"])\n if idx >= 4:\n break\n\n# Resume from checkpoint\nds_new = create_dataset()\nds_new.load_state_dict(checkpoint)\n\n# Get samples from resumed iterator\nit_new = iter(ds_new)\nresumed_next_samples = []\nfor idx, sample in enumerate(it_new):\n resumed_next_samples.append(sample[\"id\"])\n if idx >= 4:\n break\n\nprint(f\"\\nExpected next samples: {original_next_samples}\")\nprint(f\"Actual next samples: {resumed_next_samples}\")\nprint(\n f\"\\n\u274c BUG: {resumed_next_samples[0] - original_next_samples[0]} samples were skipped!\"\n)\n\n```\n\nWith map\n```\nCheckpoint saved at sample: 9\n\nExpected next samples: [10, 11, 12, 13, 14]\nActual next samples: [50, 51, 52, 53, 54]\n\n\u274c BUG: 40 samples were skipped!\n```\n\n### Expected behavior\n\nwithout map\n```\nExpected next samples: [10, 11, 12, 13, 14]\nActual next samples: [10, 11, 12, 13, 14]\n\n\u274c BUG: 0 samples were skipped!\n```\n\n### Environment info\n\ndatasets == 3.6.0","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7630\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7630\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7629","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7629\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7629\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7629\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7629","id":3161169782,"node_id":"PR_kwDODunzps6bTc7b","number":7629,"title":"Add test for `as_iterable_dataset()` method in DatasetBuilder","user":{"login":"ArjunJagdale","id":142811259,"node_id":"U_kgDOCIMgew","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/142811259?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ArjunJagdale","html_url":"https:\/\/github.com\/ArjunJagdale","followers_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/followers","following_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/orgs","repos_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/repos","events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-06-19T19:23:55Z","updated_at":"2025-06-19T19:23:55Z","closed_at":null,"author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7629","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7629","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7629.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7629.patch","merged_at":null},"body":"This PR adds a test for the new `as_iterable_dataset()` method introduced in PR #7628.\r\n\r\nThe test:\r\n- Loads a builder using `load_dataset_builder(\"c4\", \"en\")`\r\n- Runs `download_and_prepare()`\r\n- Streams examples using `builder.as_iterable_dataset(split=\"train[:100]\")`\r\n- Verifies streamed examples contain the \"text\" field\r\n\r\nThis ensures that the builder correctly streams data from cached Arrow files.\r\n","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7629\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7629\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7628","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7628\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7628\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7628\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7628","id":3161156461,"node_id":"PR_kwDODunzps6bTaGk","number":7628,"title":"Add `as_iterable_dataset()` method to DatasetBuilder for streaming from cached Arrow files","user":{"login":"ArjunJagdale","id":142811259,"node_id":"U_kgDOCIMgew","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/142811259?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ArjunJagdale","html_url":"https:\/\/github.com\/ArjunJagdale","followers_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/followers","following_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/orgs","repos_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/repos","events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-06-19T19:15:41Z","updated_at":"2025-06-19T19:15:41Z","closed_at":null,"author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7628","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7628","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7628.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7628.patch","merged_at":null},"body":"This PR implements `builder.as_iterable_dataset(split=...)` as discussed in #5481.\r\n\r\nIt allows users to load an `IterableDataset` directly from cached Arrow files (using ArrowReader and ArrowExamplesIterable), without loading the full dataset into memory.\r\n\r\nThis is useful for large-scale training scenarios where memory is constrained. A test has also been added in `test_builder.py`.\r\n\r\nRelated to: #5481\r\n","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7628\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7628\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7627","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7627\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7627\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7627\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7627","id":3160544390,"node_id":"I_kwDODunzps68YhSG","number":7627,"title":"Creating a HF Dataset from lakeFS with S3 storage takes too much time!","user":{"login":"Thunderhead-exe","id":118734142,"node_id":"U_kgDOBxO9Pg","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/118734142?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Thunderhead-exe","html_url":"https:\/\/github.com\/Thunderhead-exe","followers_url":"https:\/\/api.github.com\/users\/Thunderhead-exe\/followers","following_url":"https:\/\/api.github.com\/users\/Thunderhead-exe\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Thunderhead-exe\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Thunderhead-exe\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Thunderhead-exe\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Thunderhead-exe\/orgs","repos_url":"https:\/\/api.github.com\/users\/Thunderhead-exe\/repos","events_url":"https:\/\/api.github.com\/users\/Thunderhead-exe\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Thunderhead-exe\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-06-19T14:28:41Z","updated_at":"2025-06-23T12:39:10Z","closed_at":"2025-06-23T12:39:10Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"Hi,\n\nI\u2019m new to HF dataset and I tried to create datasets based on data versioned in **lakeFS** _(**MinIO** S3 bucket as storage backend)_\n\nHere I\u2019m using \u00b130000 PIL image from MNIST data however it is taking around 12min to execute, which is a lot!\n\nFrom what I understand, it is loading the images into cache then building the dataset.\n\u2013 Please find bellow the execution screenshot \u2013\n\nIs there a way to optimize this or am I doing something wrong?\n\nThanks!\n\n![Image](https:\/\/github.com\/user-attachments\/assets\/c79257c8-f023-42a9-9e6f-0898b3ea93fe)","closed_by":{"login":"Thunderhead-exe","id":118734142,"node_id":"U_kgDOBxO9Pg","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/118734142?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Thunderhead-exe","html_url":"https:\/\/github.com\/Thunderhead-exe","followers_url":"https:\/\/api.github.com\/users\/Thunderhead-exe\/followers","following_url":"https:\/\/api.github.com\/users\/Thunderhead-exe\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Thunderhead-exe\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Thunderhead-exe\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Thunderhead-exe\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Thunderhead-exe\/orgs","repos_url":"https:\/\/api.github.com\/users\/Thunderhead-exe\/repos","events_url":"https:\/\/api.github.com\/users\/Thunderhead-exe\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Thunderhead-exe\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7627\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7627\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7626","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7626\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7626\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7626\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7626","id":3159322138,"node_id":"PR_kwDODunzps6bNMuF","number":7626,"title":"feat(map): reuse unchanged columns when input_columns specified to reduce disk usage (#6013)","user":{"login":"ArjunJagdale","id":142811259,"node_id":"U_kgDOCIMgew","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/142811259?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ArjunJagdale","html_url":"https:\/\/github.com\/ArjunJagdale","followers_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/followers","following_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/orgs","repos_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/repos","events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-06-19T07:41:45Z","updated_at":"2025-07-28T17:39:12Z","closed_at":"2025-07-28T17:39:12Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7626","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7626","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7626.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7626.patch","merged_at":null},"body":"## Summary\r\n\r\nThis PR addresses [#6013](https:\/\/github.com\/huggingface\/datasets\/issues\/6013) by reusing unchanged columns from the original dataset in the `map()` method when `input_columns` is specified.\r\n\r\n## What\u2019s Implemented\r\n\r\n- Injected logic at the end of `Dataset.map()` to:\r\n - Identify untouched columns not in `input_columns` or `remove_columns`\r\n - Select those columns from the original dataset\r\n - Concatenate them with the transformed result using `pyarrow.concat_tables`\r\n\r\n## Example Behavior\r\n\r\n```python\r\nds = Dataset.from_dict({\"a\": [1, 2], \"b\": [3, 4]})\r\nds2 = ds.map(lambda x: {\"c\": x[\"a\"] + 10}, input_columns=[\"a\"], remove_columns=[\"a\"])\r\nprint(ds2.column_names) # Output: ['b', 'c']\r\n````\r\n\r\nColumn `b` is reused from the original dataset.\r\n\r\n## Notes\r\n\r\n* This keeps disk usage and caching minimal by avoiding full dataset duplication.\r\n* Only triggered when `input_columns` is set.\r\n\r\n---\r\n\r\ncc @lhoestq @mariosasko for review \ud83d\ude42\r\n","closed_by":{"login":"ArjunJagdale","id":142811259,"node_id":"U_kgDOCIMgew","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/142811259?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ArjunJagdale","html_url":"https:\/\/github.com\/ArjunJagdale","followers_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/followers","following_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/orgs","repos_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/repos","events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7626\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7626\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7625","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7625\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7625\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7625\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7625","id":3159016001,"node_id":"PR_kwDODunzps6bMKof","number":7625,"title":"feat: Add h5folder dataset loader for HDF5 support","user":{"login":"ArjunJagdale","id":142811259,"node_id":"U_kgDOCIMgew","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/142811259?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ArjunJagdale","html_url":"https:\/\/github.com\/ArjunJagdale","followers_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/followers","following_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/orgs","repos_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/repos","events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2025-06-19T05:39:10Z","updated_at":"2025-06-26T05:44:26Z","closed_at":null,"author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7625","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7625","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7625.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7625.patch","merged_at":null},"body":"### Related Issue\r\nCloses #3113\r\n\r\n### What does this PR do?\r\n\r\nThis PR introduces a new dataset loader module called **`h5folder`** to support loading datasets stored in **HDF5 (.h5)** format.\r\n\r\nIt allows users to do:\r\n\r\n```python\r\nfrom datasets import load_dataset\r\ndataset = load_dataset(\"h5folder\", data_dir=\"path\/to\/\")\r\n````\r\n\r\n### \ud83e\udde9 Design Overview\r\n\r\n* Implemented inside `datasets\/packaged_modules\/h5folder\/h5folder.py`\r\n* Based on the `GeneratorBasedBuilder` API\r\n* Uses `h5py` to read HDF5 files and yield examples\r\n* Expects datasets such as `id`, `data`, and `label` inside `data.h5`\r\n* Converts numpy arrays to Python types before yielding\r\n\r\n### \ud83e\uddea Example `.h5` Structure (for local testing)\r\n\r\n```python\r\nimport h5py\r\nimport numpy as np\r\n\r\nwith h5py.File(\"data.h5\", \"w\") as f:\r\n f.create_dataset(\"id\", data=np.arange(100))\r\n f.create_dataset(\"data\", data=np.random.randn(100, 10))\r\n f.create_dataset(\"label\", data=np.random.randint(0, 2, size=100))\r\n```\r\n\r\n### \u2705 Testing\r\n\r\n- The loader logic follows the structure of existing modules like `imagefolder`\r\n- Will rely on Hugging Face CI to validate integration\r\n- Manually testing planned once merged or during feedback\r\n\r\n### \ud83d\udcc1 Files Added\r\n\r\n* `datasets\/src\/datasets\/packaged_modules\/h5folder\/h5folder.py`\r\n\r\n### \ud83d\udccc Component(s) Affected\r\n\r\n* `area\/datasets`\r\n* `area\/load`\r\n\r\n### \ud83d\udce6 Release Note Classification\r\n\r\n* `rn\/feature` \u2013 Adds support for loading `.h5` datasets via `load_dataset(\"h5folder\", ...)`\r\n\r\n---\r\n\r\nLet me know if any changes or improvements are needed \u2014 happy to iterate. Thanks for reviewing!\r\n","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7625\/reactions","total_count":3,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":3,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7625\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7624","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7624\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7624\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7624\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7624","id":3156136624,"node_id":"I_kwDODunzps68HtKw","number":7624,"title":"#Dataset Make \"image\" column appear first in dataset preview UI","user":{"login":"jcerveto","id":98875217,"node_id":"U_kgDOBeS3UQ","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/98875217?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/jcerveto","html_url":"https:\/\/github.com\/jcerveto","followers_url":"https:\/\/api.github.com\/users\/jcerveto\/followers","following_url":"https:\/\/api.github.com\/users\/jcerveto\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/jcerveto\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/jcerveto\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/jcerveto\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/jcerveto\/orgs","repos_url":"https:\/\/api.github.com\/users\/jcerveto\/repos","events_url":"https:\/\/api.github.com\/users\/jcerveto\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/jcerveto\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-06-18T09:25:19Z","updated_at":"2025-06-20T07:46:43Z","closed_at":"2025-06-20T07:46:43Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"Hi!\n\n#Dataset\n\nI\u2019m currently uploading a dataset that includes an `\"image\"` column (PNG files), along with some metadata columns. The dataset is loaded from a .jsonl file. My goal is to have the \"image\" column appear as the first column in the dataset card preview UI on the :hugs: Hub.\n\nHowever, at the moment, the `\"image\"` column is not the first\u2014in fact, it appears last, which is not ideal for the presentation I\u2019d like to achieve.\n\nI have a couple of questions:\n\nIs there a way to force the dataset card to display the `\"image\"` column first?\nIs there currently any way to control or influence the column order in the dataset preview UI?\nDoes the order of keys in the .jsonl file or the features argument affect the display order?\nThanks again for your time and help! :blush:","closed_by":{"login":"jcerveto","id":98875217,"node_id":"U_kgDOBeS3UQ","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/98875217?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/jcerveto","html_url":"https:\/\/github.com\/jcerveto","followers_url":"https:\/\/api.github.com\/users\/jcerveto\/followers","following_url":"https:\/\/api.github.com\/users\/jcerveto\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/jcerveto\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/jcerveto\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/jcerveto\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/jcerveto\/orgs","repos_url":"https:\/\/api.github.com\/users\/jcerveto\/repos","events_url":"https:\/\/api.github.com\/users\/jcerveto\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/jcerveto\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7624\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7624\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7623","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7623\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7623\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7623\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7623","id":3154519684,"node_id":"PR_kwDODunzps6a9Jk5","number":7623,"title":"fix: raise error in FolderBasedBuilder when data_dir and data_files are missing","user":{"login":"ArjunJagdale","id":142811259,"node_id":"U_kgDOCIMgew","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/142811259?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ArjunJagdale","html_url":"https:\/\/github.com\/ArjunJagdale","followers_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/followers","following_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/orgs","repos_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/repos","events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-06-17T19:16:34Z","updated_at":"2025-06-18T14:18:41Z","closed_at":"2025-06-18T14:18:41Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7623","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7623","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7623.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7623.patch","merged_at":"2025-06-18T14:18:41Z"},"body":"### Related Issues\/PRs\r\n\r\nFixes #6152\r\n\r\n---\r\n\r\n### What changes are proposed in this pull request?\r\n\r\nThis PR adds a dedicated validation check in the `_info()` method of the `FolderBasedBuilder` class to ensure that users provide either `data_dir` or `data_files` when loading folder-based datasets (such as `audiofolder`, `imagefolder`, etc.).\r\n\r\n---\r\n\r\n### Why this change?\r\n\r\nPreviously, when calling:\r\n\r\n```python\r\nload_dataset(\"audiofolder\")\r\n````\r\n\r\nwithout specifying `data_dir` or `data_files`, the loader would silently fallback to the **current working directory**, leading to:\r\n\r\n* Long loading times\r\n* Unexpected behavior (e.g., scanning unrelated files)\r\n\r\nThis behavior was discussed in issue #6152. As suggested by maintainers, the fix has now been implemented directly inside the `FolderBasedBuilder._info()` method \u2014 keeping the logic localized to the specific builder instead of a generic loader function.\r\n\r\n---\r\n\r\n### How is this PR tested?\r\n\r\n* \u2705 Manually tested by calling `load_dataset(\"audiofolder\")` with no `data_dir` or `data_files` \u2192 a `ValueError` is now raised early.\r\n* \u2705 Existing functionality (with valid input) remains unaffected.\r\n\r\n---\r\n\r\n### Does this PR require documentation update?\r\n\r\n* [x] No\r\n\r\n---\r\n\r\n### Release Notes\r\n\r\n#### Is this a user-facing change?\r\n\r\n* [x] Yes\r\n\r\n> Folder-based datasets now raise an explicit error if neither `data_dir` nor `data_files` are specified, preventing unintended fallback to the current working directory.\r\n\r\n---\r\n\r\n#### What component(s) does this PR affect?\r\n\r\n* [x] `area\/datasets`\r\n* [x] `area\/load`\r\n\r\n---\r\n\r\n<\/a>\r\n\r\n#### How should the PR be classified?\r\n\r\n* [x] `rn\/bug-fix` - A user-facing bug fix\r\n\r\n---\r\n\r\n#### Should this be included in the next patch release?\r\n\r\n* [x] Yes","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7623\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7623\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7622","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7622\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7622\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7622\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7622","id":3154398557,"node_id":"PR_kwDODunzps6a8v6J","number":7622,"title":"Guard against duplicate builder_kwargs\/config_kwargs in load_dataset_\u2026","user":{"login":"Shohail-Ismail","id":149825575,"node_id":"U_kgDOCO4oJw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/149825575?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Shohail-Ismail","html_url":"https:\/\/github.com\/Shohail-Ismail","followers_url":"https:\/\/api.github.com\/users\/Shohail-Ismail\/followers","following_url":"https:\/\/api.github.com\/users\/Shohail-Ismail\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Shohail-Ismail\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Shohail-Ismail\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Shohail-Ismail\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Shohail-Ismail\/orgs","repos_url":"https:\/\/api.github.com\/users\/Shohail-Ismail\/repos","events_url":"https:\/\/api.github.com\/users\/Shohail-Ismail\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Shohail-Ismail\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-06-17T18:28:35Z","updated_at":"2025-07-23T14:06:20Z","closed_at":"2025-07-23T14:06:20Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7622","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7622","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7622.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7622.patch","merged_at":null},"body":"\u2026builder (#4910 )\r\n\r\n### What does this PR do?\r\n\r\nFixes edge case in `load_dataset_builder` by raising a `TypeError` if the same key exists in both `builder_kwargs` and `config_kwargs`.\r\n\r\n### Implementation details\r\n\r\n- Added a guard clause in `load_dataset_builder` to detect duplicate keys between `builder_kwargs` and `config_kwargs`\r\n \r\n- Wrote a unit test in `tests\/test_load_duplicate_keys.py` to verify the exception is raised correctly \r\n\r\n### Fixes\r\n\r\nCloses #4910 \r\n\r\n### Reviewers\r\n\r\n@zach-huggingface\r\n@SunMarc \r\n\r\nWould appreciate your review if you have time - thanks!","closed_by":{"login":"Shohail-Ismail","id":149825575,"node_id":"U_kgDOCO4oJw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/149825575?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Shohail-Ismail","html_url":"https:\/\/github.com\/Shohail-Ismail","followers_url":"https:\/\/api.github.com\/users\/Shohail-Ismail\/followers","following_url":"https:\/\/api.github.com\/users\/Shohail-Ismail\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Shohail-Ismail\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Shohail-Ismail\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Shohail-Ismail\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Shohail-Ismail\/orgs","repos_url":"https:\/\/api.github.com\/users\/Shohail-Ismail\/repos","events_url":"https:\/\/api.github.com\/users\/Shohail-Ismail\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Shohail-Ismail\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7622\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7622\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7621","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7621\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7621\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7621\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7621","id":3153780963,"node_id":"PR_kwDODunzps6a6rAu","number":7621,"title":"minor docs data aug","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-06-17T14:46:57Z","updated_at":"2025-06-17T14:50:28Z","closed_at":"2025-06-17T14:47:11Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7621","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7621","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7621.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7621.patch","merged_at":"2025-06-17T14:47:11Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7621\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7621\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7620","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7620\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7620\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7620\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7620","id":3153565183,"node_id":"PR_kwDODunzps6a58TP","number":7620,"title":"Fixes in docs","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-06-17T13:41:54Z","updated_at":"2025-06-17T13:58:26Z","closed_at":"2025-06-17T13:58:24Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7620","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7620","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7620.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7620.patch","merged_at":"2025-06-17T13:58:24Z"},"body":"before release 4.0\r\n\r\n(I also did minor improvements to `features` to not show their `id=None` in their `__repr__()`)","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7620\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7620\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7619","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7619\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7619\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7619\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7619","id":3153058517,"node_id":"I_kwDODunzps6779rV","number":7619,"title":"`from_list` fails while `from_generator` works for large datasets","user":{"login":"abdulfatir","id":4028948,"node_id":"MDQ6VXNlcjQwMjg5NDg=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/4028948?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/abdulfatir","html_url":"https:\/\/github.com\/abdulfatir","followers_url":"https:\/\/api.github.com\/users\/abdulfatir\/followers","following_url":"https:\/\/api.github.com\/users\/abdulfatir\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/abdulfatir\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/abdulfatir\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/abdulfatir\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/abdulfatir\/orgs","repos_url":"https:\/\/api.github.com\/users\/abdulfatir\/repos","events_url":"https:\/\/api.github.com\/users\/abdulfatir\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/abdulfatir\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2025-06-17T10:58:55Z","updated_at":"2025-06-29T16:34:44Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI am constructing a large time series dataset and observed that first constructing a list of entries and then using `Dataset.from_list` led to a crash as the number of items became large. However, this is not a problem when using `Dataset.from_generator`.\n\n### Steps to reproduce the bug\n\n#### Snippet A (crashes)\n\n```py\nfrom tqdm.auto import tqdm\nimport numpy as np\nimport datasets\n\n\ndef data_generator():\n for i in tqdm(range(10_000_000)):\n length = np.random.randint(2048)\n series = np.random.rand(length)\n yield {\"target\": series, \"item_id\": str(i), \"start\": np.datetime64(\"2000\", \"ms\")}\n\ndata_list = list(data_generator())\nds = datasets.Dataset.from_list(data_list)\n```\nThe last line crashes with\n```\nArrowInvalid: Value 2147483761 too large to fit in C integer type\n```\n\n#### Snippet B (works)\n\n```py\nfrom tqdm.auto import tqdm\nimport numpy as np\nimport datasets\n\n\ndef data_generator():\n for i in tqdm(range(10_000_000)):\n length = np.random.randint(2048)\n series = np.random.rand(length)\n yield {\"target\": series, \"item_id\": str(i), \"start\": np.datetime64(\"2000\", \"ms\")}\n\nds = datasets.Dataset.from_generator(data_generator)\n```\n\n### Expected behavior\n\nI expected both the approaches to work or to fail similarly. \n\n### Environment info\n\n```\n- `datasets` version: 3.6.0\n- Platform: Linux-6.8.0-1029-aws-x86_64-with-glibc2.35\n- Python version: 3.11.11\n- `huggingface_hub` version: 0.32.2\n- PyArrow version: 19.0.1\n- Pandas version: 2.2.3\n- `fsspec` version: 2025.3.0\n```","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7619\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7619\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7618","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7618\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7618\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7618\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7618","id":3148912897,"node_id":"PR_kwDODunzps6aqOnm","number":7618,"title":"fix: raise error when folder-based datasets are loaded without data_dir or data_files","user":{"login":"ArjunJagdale","id":142811259,"node_id":"U_kgDOCIMgew","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/142811259?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ArjunJagdale","html_url":"https:\/\/github.com\/ArjunJagdale","followers_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/followers","following_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/orgs","repos_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/repos","events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ArjunJagdale\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-06-16T07:43:59Z","updated_at":"2025-06-16T12:13:26Z","closed_at":null,"author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7618","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7618","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7618.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7618.patch","merged_at":null},"body":"\r\n### Related Issues\/PRs\r\n\r\n\r\n #6152\r\n\r\n---\r\n\r\n### What changes are proposed in this pull request?\r\n\r\nThis PR adds an early validation step for folder-based datasets (like `audiofolder`) to prevent silent fallback behavior.\r\n\r\n**Before this fix**:\r\n- When `data_dir` or `data_files` were not provided, the loader defaulted to the current working directory.\r\n- This caused unexpected behavior like:\r\n - Long loading times\r\n - Scanning unintended local files\r\n\r\n**Now**:\r\n- If both `data_dir` and `data_files` are missing, a `ValueError` is raised early with a helpful message.\r\n\r\n---\r\n\r\n### How is this PR tested?\r\n\r\n- [x] Manual test via `load_dataset(\"audiofolder\")` with missing `data_dir`\r\n- [ ] Existing unit tests (should not break any)\r\n- [ ] New tests (if needed, maintainers can guide)\r\n\r\n---\r\n\r\n### Does this PR require documentation update?\r\n\r\n- [x] No. You can skip the rest of this section.\r\n\r\n---\r\n\r\n### Release Notes\r\n\r\n#### Is this a user-facing change?\r\n\r\n- [x] Yes. Give a description of this change to be included in the release notes for users.\r\n\r\n> Adds early error handling for folder-based datasets when neither `data_dir` nor `data_files` is specified, avoiding unintended resolution to the current directory.\r\n\r\n#### What component(s), interfaces, languages, and integrations does this PR affect?\r\n\r\nComponents:\r\n- [x] `area\/datasets`\r\n- [x] `area\/load`\r\n\r\n---\r\n\r\n<\/a>\r\n\r\n#### How should the PR be classified in the release notes? Choose one:\r\n\r\n- [x] `rn\/bug-fix` - A user-facing bug fix worth mentioning in the release notes\r\n\r\n---\r\n\r\n#### Should this PR be included in the next patch release?\r\n\r\n- [x] Yes (this PR will be cherry-picked and included in the next patch release)\r\n","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7618\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7618\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7617","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7617\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7617\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7617\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7617","id":3148102085,"node_id":"I_kwDODunzps67pDnF","number":7617,"title":"Unwanted column padding in nested lists of dicts","user":{"login":"qgallouedec","id":45557362,"node_id":"MDQ6VXNlcjQ1NTU3MzYy","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/45557362?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/qgallouedec","html_url":"https:\/\/github.com\/qgallouedec","followers_url":"https:\/\/api.github.com\/users\/qgallouedec\/followers","following_url":"https:\/\/api.github.com\/users\/qgallouedec\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/qgallouedec\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/qgallouedec\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/qgallouedec\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/qgallouedec\/orgs","repos_url":"https:\/\/api.github.com\/users\/qgallouedec\/repos","events_url":"https:\/\/api.github.com\/users\/qgallouedec\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/qgallouedec\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-06-15T22:06:17Z","updated_at":"2025-06-16T13:43:31Z","closed_at":"2025-06-16T13:43:31Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"```python\nfrom datasets import Dataset\n\ndataset = Dataset.from_dict({\n \"messages\": [\n [\n {\"a\": \"...\",},\n {\"b\": \"...\",},\n ],\n ]\n})\nprint(dataset[0])\n```\n\nWhat I get:\n```\n{'messages': [{'a': '...', 'b': None}, {'a': None, 'b': '...'}]}\n```\n\nWhat I want:\n\n```\n{'messages': [{'a': '...'}, {'b': '...'}]}\n```\n\nIs there an easy way to automatically remove these auto-filled null\/none values?\n\nIf not, I probably need a recursive none exclusion function, don't I?\n\nDatasets 3.6.0","closed_by":{"login":"qgallouedec","id":45557362,"node_id":"MDQ6VXNlcjQ1NTU3MzYy","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/45557362?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/qgallouedec","html_url":"https:\/\/github.com\/qgallouedec","followers_url":"https:\/\/api.github.com\/users\/qgallouedec\/followers","following_url":"https:\/\/api.github.com\/users\/qgallouedec\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/qgallouedec\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/qgallouedec\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/qgallouedec\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/qgallouedec\/orgs","repos_url":"https:\/\/api.github.com\/users\/qgallouedec\/repos","events_url":"https:\/\/api.github.com\/users\/qgallouedec\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/qgallouedec\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7617\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7617\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7616","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7616\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7616\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7616\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7616","id":3144506665,"node_id":"PR_kwDODunzps6acSW7","number":7616,"title":"Torchcodec decoding","user":{"login":"TyTodd","id":49127578,"node_id":"MDQ6VXNlcjQ5MTI3NTc4","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/49127578?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/TyTodd","html_url":"https:\/\/github.com\/TyTodd","followers_url":"https:\/\/api.github.com\/users\/TyTodd\/followers","following_url":"https:\/\/api.github.com\/users\/TyTodd\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/TyTodd\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/TyTodd\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/TyTodd\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/TyTodd\/orgs","repos_url":"https:\/\/api.github.com\/users\/TyTodd\/repos","events_url":"https:\/\/api.github.com\/users\/TyTodd\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/TyTodd\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2025-06-13T19:06:07Z","updated_at":"2025-06-19T18:25:49Z","closed_at":"2025-06-19T18:25:49Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7616","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7616","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7616.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7616.patch","merged_at":"2025-06-19T18:25:48Z"},"body":"Closes #7607\r\n## New signatures\r\n### Audio\r\n```python\r\nAudio(sampling_rate: Optional[int] = None, mono: bool = True, decode: bool = True, stream_index: Optional[int] = None)\r\n\r\nAudio.encode_example(self, value: Union[str, bytes, bytearray, dict, \"AudioDecoder\"]) -> dict\r\n\r\nAudio.decode_example(self, value: dict, token_per_repo_id: Optional[dict[str, Union[str, bool, None]]] = None) -> \"AudioDecoder\":\r\n```\r\n\r\n### Video\r\n```python\r\nVideo(decode: bool = True, stream_index: Optional[int] = None, dimension_order: Literal['NCHW', 'NHWC'] = 'NCHW', num_ffmpeg_threads: int = 1, device: Optional[Union[str, \"torch.device\"]] = 'cpu', seek_mode: Literal['exact', 'approximate'] = 'exact')\r\n\r\nVideo.encode_example(self, value: Union[str, bytes, bytearray, Example, np.ndarray, \"VideoDecoder\"]) -> Example:\r\n\r\nVideo.decode_example(self, value: Union[str, Example], token_per_repo_id: Optional[dict[str, Union[bool, str]]] = None, ) -> \"VideoDecoder\":\r\n```\r\n\r\n\r\n\r\n## Notes\r\nAudio features constructor takes in 1 new optional param stream_index which is passed to the AudioDecoder constructor to select the stream index of a file.\r\nAudio feature can now take in torchcodec.decoders.AudioDecoder as input to encode_example()\r\nAudio feature decode_example() returns torchcodec.decoders.AudioDecoder\r\n\r\nVideo feature constructor takes in 5 new optional params stream_index, dimension_order, num_ffmpeg_threads, device, seek_mode all of which are passed to VideoDecoder constructor \r\nVideo feature decode_example() returns torchcodec.decoders.VideoDecoder\r\nVideo feature can now take in torchcodec.decoders.VideoDecoder as input to encode_example() \r\n\r\nAll test cases have been updated to reflect these changes\r\nAll documentation has also been updated to reflect these changes.\r\n\r\nBoth VideoDecoder and AudioDecoder when formatted with (np_formatter, tf_formatter, etc) will ignore the type and return themselves. Formatting test cases were updated accordingly to reflect this. (Pretty simple to make this not the case if we want though)\r\n\r\n## Errors\r\nThis test case from `tests\/packaged_modules\/test_audiofolder.py`\r\n```python\r\n@require_librosa\r\n@require_sndfile\r\n@pytest.mark.parametrize(\"streaming\", [False, True])\r\ndef test_data_files_with_metadata_and_archives(streaming, cache_dir, data_files_with_zip_archives):\r\n audiofolder = AudioFolder(data_files=data_files_with_zip_archives, cache_dir=cache_dir)\r\n audiofolder.download_and_prepare()\r\n datasets = audiofolder.as_streaming_dataset() if streaming else audiofolder.as_dataset()\r\n for split, data_files in data_files_with_zip_archives.items():\r\n num_of_archives = len(data_files) # the metadata file is inside the archive\r\n expected_num_of_audios = 2 * num_of_archives\r\n assert split in datasets\r\n dataset = list(datasets[split])\r\n assert len(dataset) == expected_num_of_audios\r\n # make sure each sample has its own audio (all arrays are different) and metadata\r\n assert (\r\n sum(np.array_equal(dataset[0][\"audio\"].get_all_samples().data.numpy(), example[\"audio\"].get_all_samples().data.numpy()) for example in dataset[1:])\r\n == 0\r\n )\r\n assert len({example[\"text\"] for example in dataset}) == expected_num_of_audios\r\n assert all(example[\"text\"] is not None for example in dataset)\r\n```\r\nFails now because AudioDecoder needs to access the files after the lines below are run, but there seems to be some context issues. The file the decoder is trying to read is closed before the decoder gets the chance to decode it.\r\n```python\r\naudiofolder.download_and_prepare()\r\ndatasets = audiofolder.as_streaming_dataset() if streaming else audiofolder.as_dataset()\r\n```","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7616\/reactions","total_count":1,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":1,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7616\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7615","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7615\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7615\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7615\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7615","id":3143443498,"node_id":"PR_kwDODunzps6aYp18","number":7615,"title":"remove unused code","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-06-13T12:37:30Z","updated_at":"2025-06-13T12:39:59Z","closed_at":"2025-06-13T12:37:40Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7615","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7615","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7615.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7615.patch","merged_at":"2025-06-13T12:37:40Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7615\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7615\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7614","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7614\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7614\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7614\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7614","id":3143381638,"node_id":"PR_kwDODunzps6aYcbH","number":7614,"title":"Lazy column","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-06-13T12:12:57Z","updated_at":"2025-06-17T13:08:51Z","closed_at":"2025-06-17T13:08:49Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7614","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7614","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7614.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7614.patch","merged_at":"2025-06-17T13:08:49Z"},"body":"Same as https:\/\/github.com\/huggingface\/datasets\/pull\/7564 but for `Dataset`, cc @TopCoder2K FYI\r\n\r\ne.g. `ds[col]` now returns a lazy Column instead of a list\r\n\r\nThis way calling `ds[col][idx]` only loads the required data in memory\r\n\r\n(bonus: also supports subfields access with `ds[col][subcol][idx]`)\r\n\r\nthe breaking change will be for the next major release, which also includes removal of dataset scripts support\r\n\r\nclose https:\/\/github.com\/huggingface\/datasets\/issues\/4180","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7614\/reactions","total_count":1,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7614\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7613","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7613\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7613\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7613\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7613","id":3142819991,"node_id":"PR_kwDODunzps6aWgr3","number":7613,"title":"fix parallel push_to_hub in dataset_dict","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-06-13T09:02:24Z","updated_at":"2025-06-13T12:30:23Z","closed_at":"2025-06-13T12:30:22Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7613","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7613","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7613.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7613.patch","merged_at":"2025-06-13T12:30:22Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7613\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7613\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7612","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7612\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7612\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7612\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7612","id":3141905049,"node_id":"I_kwDODunzps67RaqZ","number":7612,"title":"Provide an option of robust dataset iterator with error handling","user":{"login":"wwwjn","id":40016222,"node_id":"MDQ6VXNlcjQwMDE2MjIy","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/40016222?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/wwwjn","html_url":"https:\/\/github.com\/wwwjn","followers_url":"https:\/\/api.github.com\/users\/wwwjn\/followers","following_url":"https:\/\/api.github.com\/users\/wwwjn\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/wwwjn\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/wwwjn\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/wwwjn\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/wwwjn\/orgs","repos_url":"https:\/\/api.github.com\/users\/wwwjn\/repos","events_url":"https:\/\/api.github.com\/users\/wwwjn\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/wwwjn\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-06-13T00:40:48Z","updated_at":"2025-06-24T16:52:30Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nAdding an option to skip corrupted data samples. Currently the datasets behavior is throwing errors if the data sample if corrupted and let user aware and handle the data corruption. When I tried to try-catch the error at user level, the iterator will raise StopIteration when I called next() again. \n\nThe way I try to do error handling is: (This doesn't work, unfortunately)\n\n```\n # Load the dataset with streaming enabled\n dataset = load_dataset(\n \"pixparse\/cc12m-wds\", split=\"train\", streaming=True\n )\n # Get an iterator from the dataset\n iterator = iter(dataset)\n\n while True:\n try:\n # Try to get the next example\n example = next(iterator)\n \n # Try to access and process the image\n image = example[\"jpg\"]\n pil_image = Image.fromarray(np.array(image))\n pil_image.verify() # Verify it's a valid image file\n\n except StopIteration: # Code path 1\n print(\"\\nStopIteration was raised! Reach the end of dataset\")\n raise StopIteration\n\n except Exception as e: # Code path 2\n errors += 1\n print(\"Error! Skip this sample\")\n cotinue\n else:\n successful += 1\n```\n\nThis is because the `IterableDataset` already throws an error (reaches Code path 2). And if I continue call next(), it will hit Code path 1. This is because the inner iterator of `IterableDataset`([code](https:\/\/github.com\/huggingface\/datasets\/blob\/89bd1f971402acb62805ef110bc1059c38b1c8c6\/src\/datasets\/iterable_dataset.py#L2242)) as been stopped, so calling next() on it will raise StopIteration. \n\nSo I can not skip the corrupted data sample in this way. Would also love to hear any suggestions about creating a robust dataloader.\n\nThanks for your help in advance!\n\n\n### Motivation\n\n## Public dataset corruption might be common\nA lot of users would use public dataset, and the public dataset might contains some corrupted data, especially for dataset with image \/ video etc. I totally understand it's dataset owner and user's responsibility to ensure the data integrity \/ run data cleaning or preprocessing, but it would be easier for developers who would use the dataset\n\n## Use cases\nFor example, a robust dataloader would be easy for users who want to try quick tests on different dataset, and chose one dataset which fits their needs. So user could use IterableDataloader with `stream=True` to use the dataset easily without downloading and removing corrupted data samples from the dataset.\n\n\n### Your contribution\n\nThe error handling might not trivial and might need more careful design. ","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7612\/reactions","total_count":2,"+1":2,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7612\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7611","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7611\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7611\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7611\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7611","id":3141383940,"node_id":"I_kwDODunzps67PbcE","number":7611,"title":"Code example for dataset.add_column() does not reflect correct way to use function","user":{"login":"shaily99","id":31388649,"node_id":"MDQ6VXNlcjMxMzg4NjQ5","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/31388649?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/shaily99","html_url":"https:\/\/github.com\/shaily99","followers_url":"https:\/\/api.github.com\/users\/shaily99\/followers","following_url":"https:\/\/api.github.com\/users\/shaily99\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/shaily99\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/shaily99\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/shaily99\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/shaily99\/orgs","repos_url":"https:\/\/api.github.com\/users\/shaily99\/repos","events_url":"https:\/\/api.github.com\/users\/shaily99\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/shaily99\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-06-12T19:42:29Z","updated_at":"2025-07-17T13:14:18Z","closed_at":"2025-07-17T13:14:18Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"https:\/\/github.com\/huggingface\/datasets\/blame\/38d4d0e11e22fdbc4acf373d2421d25abeb43439\/src\/datasets\/arrow_dataset.py#L5925C10-L5925C10\n\nThe example seems to suggest that dataset.add_column() can add column inplace, however, this is wrong -- it cannot. It returns a new dataset with the column added to it.","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7611\/reactions","total_count":1,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7611\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7610","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7610\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7610\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7610\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7610","id":3141281560,"node_id":"I_kwDODunzps67PCcY","number":7610,"title":"i cant confirm email","user":{"login":"lykamspam","id":187984415,"node_id":"U_kgDOCzRqHw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/187984415?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lykamspam","html_url":"https:\/\/github.com\/lykamspam","followers_url":"https:\/\/api.github.com\/users\/lykamspam\/followers","following_url":"https:\/\/api.github.com\/users\/lykamspam\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lykamspam\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lykamspam\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lykamspam\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lykamspam\/orgs","repos_url":"https:\/\/api.github.com\/users\/lykamspam\/repos","events_url":"https:\/\/api.github.com\/users\/lykamspam\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lykamspam\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-06-12T18:58:49Z","updated_at":"2025-06-27T14:36:47Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nThis is dificult, I cant confirm email because I'm not get any email!\nI cant post forum because I cant confirm email!\nI can send help desk because... no exist on web page.\n\nparagraph 44\n\n### Steps to reproduce the bug\n\nrthjrtrt\n\n### Expected behavior\n\newtgfwetgf\n\n### Environment info\n\nsdgfswdegfwe","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7610\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7610\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7609","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7609\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7609\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7609\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7609","id":3140373128,"node_id":"PR_kwDODunzps6aOQ_g","number":7609,"title":"Update `_dill.py` to use `co_linetable` for Python 3.10+ in place of `co_lnotab`","user":{"login":"qgallouedec","id":45557362,"node_id":"MDQ6VXNlcjQ1NTU3MzYy","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/45557362?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/qgallouedec","html_url":"https:\/\/github.com\/qgallouedec","followers_url":"https:\/\/api.github.com\/users\/qgallouedec\/followers","following_url":"https:\/\/api.github.com\/users\/qgallouedec\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/qgallouedec\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/qgallouedec\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/qgallouedec\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/qgallouedec\/orgs","repos_url":"https:\/\/api.github.com\/users\/qgallouedec\/repos","events_url":"https:\/\/api.github.com\/users\/qgallouedec\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/qgallouedec\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2025-06-12T13:47:01Z","updated_at":"2025-06-16T12:14:10Z","closed_at":"2025-06-16T12:14:08Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7609","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7609","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7609.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7609.patch","merged_at":"2025-06-16T12:14:08Z"},"body":"Not 100% about this one, but it seems to be recommended.\r\n\r\n```\r\n\/fsx\/qgallouedec\/miniconda3\/envs\/trl\/lib\/python3.12\/site-packages\/datasets\/utils\/_dill.py:385: DeprecationWarning: co_lnotab is deprecated, use co_lines instead.\r\n```\r\nTests pass locally. And the warning is gone with this change.\r\n\r\nhttps:\/\/peps.python.org\/pep-0626\/#backwards-compatibility","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7609\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7609\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7608","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7608\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7608\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7608\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7608","id":3137564259,"node_id":"PR_kwDODunzps6aEr6b","number":7608,"title":"Tests typing and fixes for push_to_hub","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-06-11T17:13:52Z","updated_at":"2025-06-12T21:15:23Z","closed_at":"2025-06-12T21:15:21Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7608","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7608","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7608.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7608.patch","merged_at":"2025-06-12T21:15:21Z"},"body":"todo:\r\n- [x] fix TestPushToHub.test_push_dataset_dict_to_hub_iterable_num_proc","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7608\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7608\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7607","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7607\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7607\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7607\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7607","id":3135722560,"node_id":"I_kwDODunzps6651RA","number":7607,"title":"Video and audio decoding with torchcodec","user":{"login":"TyTodd","id":49127578,"node_id":"MDQ6VXNlcjQ5MTI3NTc4","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/49127578?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/TyTodd","html_url":"https:\/\/github.com\/TyTodd","followers_url":"https:\/\/api.github.com\/users\/TyTodd\/followers","following_url":"https:\/\/api.github.com\/users\/TyTodd\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/TyTodd\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/TyTodd\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/TyTodd\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/TyTodd\/orgs","repos_url":"https:\/\/api.github.com\/users\/TyTodd\/repos","events_url":"https:\/\/api.github.com\/users\/TyTodd\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/TyTodd\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2025-06-11T07:02:30Z","updated_at":"2025-06-19T18:25:49Z","closed_at":"2025-06-19T18:25:49Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nPytorch is migrating video processing to torchcodec and it's pretty cool. It would be nice to migrate both the audio and video features to use torchcodec instead of torchaudio\/video.\n\n### Motivation\n\nMy use case is I'm working on a multimodal AV model, and what's nice about torchcodec is I can extract the audio tensors directly from MP4 files. Also, I can easily resample video data to whatever fps I like on the fly. I haven't found an easy\/efficient way to do this with torchvision.\n\n### Your contribution\n\nI\u2019m modifying the Video dataclass to use torchcodec in place of the current backend, starting from a stable commit for a project I\u2019m working on. If it ends up working well, I\u2019m happy to open a PR on main.","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7607\/reactions","total_count":1,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7607\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7606","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7606\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7606\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7606\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7606","id":3133848546,"node_id":"PR_kwDODunzps6Z3_kV","number":7606,"title":"Add `num_proc=` to `.push_to_hub()` (Dataset and IterableDataset)","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-06-10T14:35:10Z","updated_at":"2025-06-11T16:47:28Z","closed_at":"2025-06-11T16:47:25Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7606","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7606","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7606.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7606.patch","merged_at":"2025-06-11T16:47:25Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7606\/reactions","total_count":7,"+1":0,"-1":0,"laugh":0,"hooray":7,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7606\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7605","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7605\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7605\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7605\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7605","id":3131636882,"node_id":"PR_kwDODunzps6ZwcPp","number":7605,"title":"Make `push_to_hub` atomic (#7600)","user":{"login":"sharvil","id":391004,"node_id":"MDQ6VXNlcjM5MTAwNA==","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/391004?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/sharvil","html_url":"https:\/\/github.com\/sharvil","followers_url":"https:\/\/api.github.com\/users\/sharvil\/followers","following_url":"https:\/\/api.github.com\/users\/sharvil\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/sharvil\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/sharvil\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/sharvil\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/sharvil\/orgs","repos_url":"https:\/\/api.github.com\/users\/sharvil\/repos","events_url":"https:\/\/api.github.com\/users\/sharvil\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/sharvil\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2025-06-09T22:29:38Z","updated_at":"2025-06-23T19:32:08Z","closed_at":"2025-06-23T19:32:08Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7605","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7605","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7605.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7605.patch","merged_at":null},"body":null,"closed_by":{"login":"lmnt-com","id":60325139,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYwMzI1MTM5","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/60325139?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lmnt-com","html_url":"https:\/\/github.com\/lmnt-com","followers_url":"https:\/\/api.github.com\/users\/lmnt-com\/followers","following_url":"https:\/\/api.github.com\/users\/lmnt-com\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lmnt-com\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lmnt-com\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lmnt-com\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lmnt-com\/orgs","repos_url":"https:\/\/api.github.com\/users\/lmnt-com\/repos","events_url":"https:\/\/api.github.com\/users\/lmnt-com\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lmnt-com\/received_events","type":"Organization","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7605\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7605\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7604","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7604\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7604\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7604\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7604","id":3130837169,"node_id":"PR_kwDODunzps6Ztrm_","number":7604,"title":"Docs and more methods for IterableDataset: push_to_hub, to_parquet...","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-06-09T16:44:40Z","updated_at":"2025-06-10T13:15:23Z","closed_at":"2025-06-10T13:15:21Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7604","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7604","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7604.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7604.patch","merged_at":"2025-06-10T13:15:21Z"},"body":"to_csv, to_json, to_sql, to_pandas, to_polars, to_dict, to_list","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7604\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7604\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7603","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7603\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7603\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7603\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7603","id":3130394563,"node_id":"PR_kwDODunzps6ZsKin","number":7603,"title":"No TF in win tests","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-06-09T13:56:34Z","updated_at":"2025-06-09T15:33:31Z","closed_at":"2025-06-09T15:33:30Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7603","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7603","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7603.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7603.patch","merged_at":"2025-06-09T15:33:30Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7603\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7603\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7602","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7602\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7602\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7602\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7602","id":3128758924,"node_id":"PR_kwDODunzps6Zmk99","number":7602,"title":"Enhance error handling and input validation across multiple modules","user":{"login":"mohiuddin-khan-shiam","id":147746955,"node_id":"U_kgDOCM5wiw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/147746955?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/mohiuddin-khan-shiam","html_url":"https:\/\/github.com\/mohiuddin-khan-shiam","followers_url":"https:\/\/api.github.com\/users\/mohiuddin-khan-shiam\/followers","following_url":"https:\/\/api.github.com\/users\/mohiuddin-khan-shiam\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/mohiuddin-khan-shiam\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/mohiuddin-khan-shiam\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/mohiuddin-khan-shiam\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/mohiuddin-khan-shiam\/orgs","repos_url":"https:\/\/api.github.com\/users\/mohiuddin-khan-shiam\/repos","events_url":"https:\/\/api.github.com\/users\/mohiuddin-khan-shiam\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/mohiuddin-khan-shiam\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-06-08T23:01:06Z","updated_at":"2025-06-08T23:01:06Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7602","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7602","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7602.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7602.patch","merged_at":null},"body":"This PR improves the robustness and user experience by:\r\n\r\n1. **Audio Module**:\r\n - Added clear error messages when required fields ('path' or 'bytes') are missing in audio encoding\r\n\r\n2. **DatasetDict**:\r\n - Enhanced key access error messages to show available splits when an invalid key is accessed\r\n\r\n3. **NonMutableDict**:\r\n - Added input validation for the update() method to ensure proper mapping types\r\n\r\n4. **Arrow Reader**:\r\n - Improved error messages for small dataset percentage splits with suggestions for alternatives\r\n\r\n5. **FaissIndex**:\r\n - Strengthened input validation with descriptive error messages\r\n - Added proper type checking and shape validation for search queries\r\n\r\nThese changes make the code more maintainable and user-friendly by providing actionable feedback when issues arise.","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7602\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7602\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7600","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7600\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7600\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7600\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7600","id":3127296182,"node_id":"I_kwDODunzps66ZsC2","number":7600,"title":"`push_to_hub` is not concurrency safe (dataset schema corruption)","user":{"login":"sharvil","id":391004,"node_id":"MDQ6VXNlcjM5MTAwNA==","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/391004?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/sharvil","html_url":"https:\/\/github.com\/sharvil","followers_url":"https:\/\/api.github.com\/users\/sharvil\/followers","following_url":"https:\/\/api.github.com\/users\/sharvil\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/sharvil\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/sharvil\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/sharvil\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/sharvil\/orgs","repos_url":"https:\/\/api.github.com\/users\/sharvil\/repos","events_url":"https:\/\/api.github.com\/users\/sharvil\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/sharvil\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2025-06-07T17:28:56Z","updated_at":"2025-07-31T10:00:50Z","closed_at":"2025-07-31T10:00:50Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nConcurrent processes modifying and pushing a dataset can overwrite each others' dataset card, leaving the dataset unusable.\n\nConsider this scenario:\n- we have an Arrow dataset\n- there are `N` configs of the dataset\n- there are `N` independent processes operating on each of the individual configs (e.g. adding a column, `new_col`)\n- each process calls `push_to_hub` on their particular config when they're done processing\n- all calls to `push_to_hub` succeed\n- the `README.md` now has some configs with `new_col` added and some with `new_col` missing\n\nAny attempt to load a config (using `load_dataset`) where `new_col` is missing will fail because of a schema mismatch between `README.md` and the Arrow files. Fixing the dataset requires updating `README.md` by hand with the correct schema for the affected config. In effect, `push_to_hub` is doing a `git push --force` (I found this behavior quite surprising).\n\nWe have hit this issue every time we run processing jobs over our datasets and have to fix corrupted schemas by hand.\n\nReading through the code, it seems that specifying a [`parent_commit`](https:\/\/github.com\/huggingface\/huggingface_hub\/blob\/v0.32.4\/src\/huggingface_hub\/hf_api.py#L4587) hash around here https:\/\/github.com\/huggingface\/datasets\/blob\/main\/src\/datasets\/arrow_dataset.py#L5794 would get us to a normal, non-forced git push, and avoid schema corruption. I'm not familiar enough with the code to know how to determine the commit hash from which the in-memory dataset card was loaded.\n\n### Steps to reproduce the bug\n\nSee above.\n\n### Expected behavior\n\nConcurrent edits to disjoint configs of a dataset should never corrupt the dataset schema.\n\n### Environment info\n\n- `datasets` version: 2.20.0\n- Platform: Linux-5.15.0-118-generic-x86_64-with-glibc2.35\n- Python version: 3.10.14\n- `huggingface_hub` version: 0.30.2\n- PyArrow version: 19.0.1\n- Pandas version: 2.2.2\n- `fsspec` version: 2023.9.0","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7600\/reactions","total_count":5,"+1":5,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7600\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7599","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7599\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7599\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7599\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7599","id":3125620119,"node_id":"I_kwDODunzps66TS2X","number":7599,"title":"My already working dataset (when uploaded few months ago) now is ignoring metadata.jsonl","user":{"login":"JuanCarlosMartinezSevilla","id":97530443,"node_id":"U_kgDOBdAySw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/97530443?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/JuanCarlosMartinezSevilla","html_url":"https:\/\/github.com\/JuanCarlosMartinezSevilla","followers_url":"https:\/\/api.github.com\/users\/JuanCarlosMartinezSevilla\/followers","following_url":"https:\/\/api.github.com\/users\/JuanCarlosMartinezSevilla\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/JuanCarlosMartinezSevilla\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/JuanCarlosMartinezSevilla\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/JuanCarlosMartinezSevilla\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/JuanCarlosMartinezSevilla\/orgs","repos_url":"https:\/\/api.github.com\/users\/JuanCarlosMartinezSevilla\/repos","events_url":"https:\/\/api.github.com\/users\/JuanCarlosMartinezSevilla\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/JuanCarlosMartinezSevilla\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2025-06-06T18:59:00Z","updated_at":"2025-06-16T15:18:00Z","closed_at":"2025-06-16T15:18:00Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nHi everyone, I uploaded my dataset https:\/\/huggingface.co\/datasets\/PRAIG\/SMB a few months ago while I was waiting for a conference acceptance response. Without modifying anything in the dataset repository now the Dataset viewer is not rendering the metadata.jsonl annotations, neither it is being downloaded when using load_dataset. Can you please help? Thank you in advance.\n\n### Steps to reproduce the bug\n\nfrom datasets import load_dataset\nds = load_dataset(\"PRAIG\/SMB\")\nds = ds[\"train\"]\n\n### Expected behavior\n\n It is expected to have all the metadata available in the jsonl file. Fields like: \"score_id\", \"original_width\", \"original_height\", \"regions\"... among others.\n\n### Environment info\n\ndatasets==3.6.0, python 3.13.3 (but he problem is already in the huggingface dataset page)","closed_by":{"login":"JuanCarlosMartinezSevilla","id":97530443,"node_id":"U_kgDOBdAySw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/97530443?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/JuanCarlosMartinezSevilla","html_url":"https:\/\/github.com\/JuanCarlosMartinezSevilla","followers_url":"https:\/\/api.github.com\/users\/JuanCarlosMartinezSevilla\/followers","following_url":"https:\/\/api.github.com\/users\/JuanCarlosMartinezSevilla\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/JuanCarlosMartinezSevilla\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/JuanCarlosMartinezSevilla\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/JuanCarlosMartinezSevilla\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/JuanCarlosMartinezSevilla\/orgs","repos_url":"https:\/\/api.github.com\/users\/JuanCarlosMartinezSevilla\/repos","events_url":"https:\/\/api.github.com\/users\/JuanCarlosMartinezSevilla\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/JuanCarlosMartinezSevilla\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7599\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7599\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7598","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7598\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7598\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7598\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7598","id":3125184457,"node_id":"PR_kwDODunzps6ZaclZ","number":7598,"title":"fix string_to_dict usage for windows","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-06-06T15:54:29Z","updated_at":"2025-06-06T16:12:22Z","closed_at":"2025-06-06T16:12:21Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7598","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7598","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7598.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7598.patch","merged_at":"2025-06-06T16:12:21Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7598\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7598\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7597","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7597\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7597\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7597\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7597","id":3123962709,"node_id":"I_kwDODunzps66M-NV","number":7597,"title":"Download datasets from a private hub in 2025","user":{"login":"DanielSchuhmacher","id":178552926,"node_id":"U_kgDOCqSAXg","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/178552926?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/DanielSchuhmacher","html_url":"https:\/\/github.com\/DanielSchuhmacher","followers_url":"https:\/\/api.github.com\/users\/DanielSchuhmacher\/followers","following_url":"https:\/\/api.github.com\/users\/DanielSchuhmacher\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/DanielSchuhmacher\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/DanielSchuhmacher\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/DanielSchuhmacher\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/DanielSchuhmacher\/orgs","repos_url":"https:\/\/api.github.com\/users\/DanielSchuhmacher\/repos","events_url":"https:\/\/api.github.com\/users\/DanielSchuhmacher\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/DanielSchuhmacher\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-06-06T07:55:19Z","updated_at":"2025-06-13T13:46:00Z","closed_at":"2025-06-13T13:46:00Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nIn the context of a private hub deployment, customers would like to use load_dataset() to load datasets from their hub, not from the public hub. This doesn't seem to be configurable at the moment and it would be nice to add this feature.\n\nThe obvious workaround is to clone the repo first and then load it from local storage, but this adds an extra step. It'd be great to have the same experience regardless of where the hub is hosted.\n\nThis issue was raised before here: https:\/\/github.com\/huggingface\/datasets\/issues\/3679\n@juliensimon\n\n### Motivation\n\nnone\n\n### Your contribution\n\nnone","closed_by":{"login":"DanielSchuhmacher","id":178552926,"node_id":"U_kgDOCqSAXg","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/178552926?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/DanielSchuhmacher","html_url":"https:\/\/github.com\/DanielSchuhmacher","followers_url":"https:\/\/api.github.com\/users\/DanielSchuhmacher\/followers","following_url":"https:\/\/api.github.com\/users\/DanielSchuhmacher\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/DanielSchuhmacher\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/DanielSchuhmacher\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/DanielSchuhmacher\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/DanielSchuhmacher\/orgs","repos_url":"https:\/\/api.github.com\/users\/DanielSchuhmacher\/repos","events_url":"https:\/\/api.github.com\/users\/DanielSchuhmacher\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/DanielSchuhmacher\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7597\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7597\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7596","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7596\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7596\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7596\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7596","id":3122595042,"node_id":"PR_kwDODunzps6ZRkEU","number":7596,"title":"Add albumentations to use dataset","user":{"login":"ternaus","id":5481618,"node_id":"MDQ6VXNlcjU0ODE2MTg=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/5481618?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ternaus","html_url":"https:\/\/github.com\/ternaus","followers_url":"https:\/\/api.github.com\/users\/ternaus\/followers","following_url":"https:\/\/api.github.com\/users\/ternaus\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ternaus\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ternaus\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ternaus\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ternaus\/orgs","repos_url":"https:\/\/api.github.com\/users\/ternaus\/repos","events_url":"https:\/\/api.github.com\/users\/ternaus\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ternaus\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2025-06-05T20:39:46Z","updated_at":"2025-06-17T18:38:08Z","closed_at":"2025-06-17T14:44:30Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7596","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7596","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7596.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7596.patch","merged_at":"2025-06-17T14:44:30Z"},"body":"1. Fixed broken link to the list of transforms in torchvison.\r\n2. Extended section about video image augmentations with an example from Albumentations.","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7596\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7596\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7595","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7595\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7595\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7595\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7595","id":3121689436,"node_id":"PR_kwDODunzps6ZOaFl","number":7595,"title":"Add `IterableDataset.push_to_hub()`","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-06-05T15:29:32Z","updated_at":"2025-06-06T16:12:37Z","closed_at":"2025-06-06T16:12:36Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7595","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7595","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7595.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7595.patch","merged_at":"2025-06-06T16:12:36Z"},"body":"Basic implementation, which writes one shard per input dataset shard.\r\nThis is to be improved later.\r\n\r\nClose https:\/\/github.com\/huggingface\/datasets\/issues\/5665\r\n\r\nPS: for image\/audio datasets structured as actual image\/audio files (not parquet), you can sometimes speed it up with `ds.decode(num_threads=...).push_to_hub(...)`","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7595\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7595\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7594","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7594\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7594\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7594\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7594","id":3120799626,"node_id":"I_kwDODunzps66A5-K","number":7594,"title":"Add option to ignore keys\/columns when loading a dataset from jsonl(or any other data format)","user":{"login":"avishaiElmakies","id":36810152,"node_id":"MDQ6VXNlcjM2ODEwMTUy","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/36810152?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/avishaiElmakies","html_url":"https:\/\/github.com\/avishaiElmakies","followers_url":"https:\/\/api.github.com\/users\/avishaiElmakies\/followers","following_url":"https:\/\/api.github.com\/users\/avishaiElmakies\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/avishaiElmakies\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/avishaiElmakies\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/avishaiElmakies\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/avishaiElmakies\/orgs","repos_url":"https:\/\/api.github.com\/users\/avishaiElmakies\/repos","events_url":"https:\/\/api.github.com\/users\/avishaiElmakies\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/avishaiElmakies\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2025-06-05T11:12:45Z","updated_at":"2025-06-28T09:03:00Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nHi, I would like the option to ignore keys\/columns when loading a dataset from files (e.g. jsonl).\n\n### Motivation\n\nI am working on a dataset which is built on jsonl. It seems the dataset is unclean and a column has different types in each row. I can't clean this or remove the column (It is not my data and it is too big for me to clean and save on my own hardware). \nI would like the option to just ignore this column when using `load_dataset`, since i don't need it.\nI tried to look if this is already possible but couldn't find a solution. if there is I would love some help. If it is not currently possible, I would love this feature\n\n### Your contribution\n\nI don't think I can help this time, unfortunately.","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7594\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7594\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7593","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7593\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7593\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7593\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7593","id":3118812368,"node_id":"PR_kwDODunzps6ZE34G","number":7593,"title":"Fix broken link to albumentations","user":{"login":"ternaus","id":5481618,"node_id":"MDQ6VXNlcjU0ODE2MTg=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/5481618?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ternaus","html_url":"https:\/\/github.com\/ternaus","followers_url":"https:\/\/api.github.com\/users\/ternaus\/followers","following_url":"https:\/\/api.github.com\/users\/ternaus\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ternaus\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ternaus\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ternaus\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ternaus\/orgs","repos_url":"https:\/\/api.github.com\/users\/ternaus\/repos","events_url":"https:\/\/api.github.com\/users\/ternaus\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ternaus\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-06-04T19:00:13Z","updated_at":"2025-06-05T16:37:02Z","closed_at":"2025-06-05T16:36:32Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7593","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7593","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7593.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7593.patch","merged_at":"2025-06-05T16:36:32Z"},"body":"A few months back I rewrote all docs at [https:\/\/albumentations.ai\/docs](https:\/\/albumentations.ai\/docs), and some pages changed their links.\r\n\r\nIn this PR fixed link to the most recent doc in Albumentations about bounding boxes and it's format. \r\n\r\nFix a few typos in the doc as well.","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7593\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7593\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7592","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7592\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7592\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7592\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7592","id":3118203880,"node_id":"PR_kwDODunzps6ZC2so","number":7592,"title":"Remove scripts altogether","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2025-06-04T15:14:11Z","updated_at":"2025-08-04T15:17:05Z","closed_at":"2025-06-09T16:45:27Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7592","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7592","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7592.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7592.patch","merged_at":"2025-06-09T16:45:27Z"},"body":"TODO:\r\n- [x] remplace fixtures based on script with no-script fixtures\r\n- [x] windaube","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7592\/reactions","total_count":1,"+1":0,"-1":1,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7592\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7591","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7591\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7591\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7591\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7591","id":3117816388,"node_id":"I_kwDODunzps651hpE","number":7591,"title":"Add num_proc parameter to push_to_hub","user":{"login":"SwayStar123","id":46050679,"node_id":"MDQ6VXNlcjQ2MDUwNjc5","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/46050679?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/SwayStar123","html_url":"https:\/\/github.com\/SwayStar123","followers_url":"https:\/\/api.github.com\/users\/SwayStar123\/followers","following_url":"https:\/\/api.github.com\/users\/SwayStar123\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/SwayStar123\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/SwayStar123\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/SwayStar123\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/SwayStar123\/orgs","repos_url":"https:\/\/api.github.com\/users\/SwayStar123\/repos","events_url":"https:\/\/api.github.com\/users\/SwayStar123\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/SwayStar123\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2025-06-04T13:19:15Z","updated_at":"2025-06-27T06:13:54Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nA number of processes parameter to the dataset.push_to_hub method\n\n### Motivation\n\nShards are currently uploaded serially which makes it slow for many shards, uploading can be done in parallel and much faster\n","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7591\/reactions","total_count":2,"+1":2,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7591\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7590","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7590\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7590\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7590\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7590","id":3101654892,"node_id":"I_kwDODunzps64339s","number":7590,"title":"`Sequence(Features(...))` causes PyArrow cast error in `load_dataset` despite correct schema.","user":{"login":"AHS-uni","id":183279820,"node_id":"U_kgDOCuygzA","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/183279820?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/AHS-uni","html_url":"https:\/\/github.com\/AHS-uni","followers_url":"https:\/\/api.github.com\/users\/AHS-uni\/followers","following_url":"https:\/\/api.github.com\/users\/AHS-uni\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/AHS-uni\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/AHS-uni\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/AHS-uni\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/AHS-uni\/orgs","repos_url":"https:\/\/api.github.com\/users\/AHS-uni\/repos","events_url":"https:\/\/api.github.com\/users\/AHS-uni\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/AHS-uni\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2025-05-29T22:53:36Z","updated_at":"2025-07-19T22:45:08Z","closed_at":"2025-07-19T22:45:08Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Description\n\nWhen loading a dataset with a field declared as a list of structs using `Sequence(Features(...))`, `load_dataset` incorrectly infers the field as a plain `struct<...>` instead of a `list>`. This leads to the following error:\n\n```\nArrowNotImplementedError: Unsupported cast from list> to struct using function cast_struct\n```\n\nThis occurs even when the `features` schema is explicitly provided and the dataset format supports nested structures natively (e.g., JSON, JSONL).\n\n---\n\n### Minimal Reproduction\n\n[Colab Link.](https:\/\/colab.research.google.com\/drive\/1FZPQy6TP3jVd4B3mYKyfQaWNuOAvljUq?usp=sharing)\n\n#### Dataset\n\n```python\ndata = [\n {\n \"list\": [\n {\"id\": \"example1\", \"data\": \"text\"},\n ]\n },\n]\n```\n\n#### Schema\n\n```python\nfrom datasets import Features, Sequence, Value\n\nitem = Features({\n \"id\": Value(\"string\"),\n \"data\": Value(\"string\"),\n})\n\nfeatures = Features({\n \"list\": Sequence(item),\n})\n```\n\n---\n\n### Tested File Formats\n\nThe same schema was tested across different formats:\n\n| Format | Method | Result |\n| --------- | --------------------------- | ------------------- |\n| JSONL | `load_dataset(\"json\", ...)` | Arrow cast error |\n| JSON | `load_dataset(\"json\", ...)` | Arrow cast error |\n| In-memory | `Dataset.from_list(...)` | Works as expected |\n\nThe issue seems not to be in the schema or the data, but in how `load_dataset()` handles the `Sequence(Features(...))` pattern when parsing from files (specifically JSON and JSONL).\n\n---\n\n### Expected Behavior\n\nIf `features` is explicitly defined as:\n\n```python\nFeatures({\"list\": Sequence(Features({...}))})\n```\n\nThen the data should load correctly across all backends \u2014 including from JSON and JSONL \u2014 without any Arrow casting errors. This works correctly when loading from memory via `Dataset.from_list`.\n\n---\n\n### Environment\n\n* `datasets`: 3.6.0\n* `pyarrow`: 20.0.0\n* Python: 3.12.10\n* OS: Ubuntu 24.04.2 LTS\n* Notebook: \\[Colab test notebook available]\n\n---\n","closed_by":{"login":"AHS-uni","id":183279820,"node_id":"U_kgDOCuygzA","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/183279820?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/AHS-uni","html_url":"https:\/\/github.com\/AHS-uni","followers_url":"https:\/\/api.github.com\/users\/AHS-uni\/followers","following_url":"https:\/\/api.github.com\/users\/AHS-uni\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/AHS-uni\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/AHS-uni\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/AHS-uni\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/AHS-uni\/orgs","repos_url":"https:\/\/api.github.com\/users\/AHS-uni\/repos","events_url":"https:\/\/api.github.com\/users\/AHS-uni\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/AHS-uni\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7590\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7590\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7589","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7589\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7589\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7589\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7589","id":3101119704,"node_id":"PR_kwDODunzps6YKiyL","number":7589,"title":"feat: use content defined chunking ","user":{"login":"kszucs","id":961747,"node_id":"MDQ6VXNlcjk2MTc0Nw==","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/961747?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/kszucs","html_url":"https:\/\/github.com\/kszucs","followers_url":"https:\/\/api.github.com\/users\/kszucs\/followers","following_url":"https:\/\/api.github.com\/users\/kszucs\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/kszucs\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/kszucs\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/kszucs\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/kszucs\/orgs","repos_url":"https:\/\/api.github.com\/users\/kszucs\/repos","events_url":"https:\/\/api.github.com\/users\/kszucs\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/kszucs\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2025-05-29T18:19:41Z","updated_at":"2025-08-13T18:53:03Z","closed_at":null,"author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7589","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7589","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7589.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7589.patch","merged_at":null},"body":"Use content defined chunking by default when writing parquet files.\r\n- [x] set the parameters in `io.parquet.ParquetDatasetReader`\r\n- [x] set the parameters in `arrow_writer.ParquetWriter`\r\n\r\nIt requires a new pyarrow pin \">=21.0.0\" which is released now.","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7589\/reactions","total_count":1,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7589\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7588","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7588\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7588\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7588\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7588","id":3094012025,"node_id":"I_kwDODunzps64auB5","number":7588,"title":"ValueError: Invalid pattern: '**' can only be an entire path component [Colab]","user":{"login":"wkambale","id":43061081,"node_id":"MDQ6VXNlcjQzMDYxMDgx","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/43061081?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/wkambale","html_url":"https:\/\/github.com\/wkambale","followers_url":"https:\/\/api.github.com\/users\/wkambale\/followers","following_url":"https:\/\/api.github.com\/users\/wkambale\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/wkambale\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/wkambale\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/wkambale\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/wkambale\/orgs","repos_url":"https:\/\/api.github.com\/users\/wkambale\/repos","events_url":"https:\/\/api.github.com\/users\/wkambale\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/wkambale\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2025-05-27T13:46:05Z","updated_at":"2025-05-30T13:22:52Z","closed_at":"2025-05-30T01:26:30Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI have a dataset on HF [here](https:\/\/huggingface.co\/datasets\/kambale\/luganda-english-parallel-corpus) that i've previously used to train a translation model [here](https:\/\/huggingface.co\/kambale\/pearl-11m-translate).\n\nnow i changed a few hyperparameters to increase number of tokens for the model, increase Transformer layers, and all\n\nhowever, when i try to load the dataset, this error keeps coming up.. i have tried everything.. i have re-written the code a hundred times, and this keep coming up\n\n### Steps to reproduce the bug\n\nImports:\n\n```bash\n!pip install datasets huggingface_hub fsspec\n```\n\nPython code:\n\n```python\nfrom datasets import load_dataset\n\nHF_DATASET_NAME = \"kambale\/luganda-english-parallel-corpus\"\n\n# Load the dataset\ntry:\n if not HF_DATASET_NAME or HF_DATASET_NAME == \"YOUR_HF_DATASET_NAME\":\n raise ValueError(\n \"Please provide a valid Hugging Face dataset name.\"\n )\n\n dataset = load_dataset(HF_DATASET_NAME)\n\n# Omitted code as the error happens on the line above \n\nexcept ValueError as ve:\n print(f\"Configuration Error: {ve}\")\n raise\nexcept Exception as e:\n print(f\"An error occurred while loading the dataset '{HF_DATASET_NAME}': {e}\")\n raise e\n```\n\nnow, i have tried going through this [issue](https:\/\/github.com\/huggingface\/datasets\/issues\/6737) and nothing helps \n\n### Expected behavior\n\nloading the dataset successfully and perform splits (train, test, validation)\n\n### Environment info\n\nfrom the imports, i do not install specific versions of these libraries, so the latest or available version is installed\n\n* `datasets` version: latest\n* `Platform`: Google Colab\n* `Hardware`: NVIDIA A100 GPU\n* `Python` version: latest\n* `huggingface_hub` version: latest\n* `fsspec` version: latest","closed_by":{"login":"wkambale","id":43061081,"node_id":"MDQ6VXNlcjQzMDYxMDgx","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/43061081?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/wkambale","html_url":"https:\/\/github.com\/wkambale","followers_url":"https:\/\/api.github.com\/users\/wkambale\/followers","following_url":"https:\/\/api.github.com\/users\/wkambale\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/wkambale\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/wkambale\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/wkambale\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/wkambale\/orgs","repos_url":"https:\/\/api.github.com\/users\/wkambale\/repos","events_url":"https:\/\/api.github.com\/users\/wkambale\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/wkambale\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7588\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7588\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7587","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7587\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7587\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7587\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7587","id":3091834987,"node_id":"PR_kwDODunzps6XrB8F","number":7587,"title":"load_dataset splits typing","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-05-26T18:28:40Z","updated_at":"2025-05-26T18:31:10Z","closed_at":"2025-05-26T18:29:57Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7587","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7587","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7587.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7587.patch","merged_at":"2025-05-26T18:29:57Z"},"body":"close https:\/\/github.com\/huggingface\/datasets\/issues\/7583","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7587\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7587\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7586","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7586\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7586\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7586\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7586","id":3091320431,"node_id":"I_kwDODunzps64Qc5v","number":7586,"title":"help is appreciated","user":{"login":"rajasekarnp1","id":54931785,"node_id":"MDQ6VXNlcjU0OTMxNzg1","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/54931785?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/rajasekarnp1","html_url":"https:\/\/github.com\/rajasekarnp1","followers_url":"https:\/\/api.github.com\/users\/rajasekarnp1\/followers","following_url":"https:\/\/api.github.com\/users\/rajasekarnp1\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/rajasekarnp1\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/rajasekarnp1\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/rajasekarnp1\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/rajasekarnp1\/orgs","repos_url":"https:\/\/api.github.com\/users\/rajasekarnp1\/repos","events_url":"https:\/\/api.github.com\/users\/rajasekarnp1\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/rajasekarnp1\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-05-26T14:00:42Z","updated_at":"2025-05-26T18:21:57Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nhttps:\/\/github.com\/rajasekarnp1\/neural-audio-upscaler\/tree\/main\n\n### Motivation\n\n ai model develpment and audio \n\n### Your contribution\n\n ai model develpment and audio ","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7586\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7586\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7585","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7585\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7585\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7585\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7585","id":3091227921,"node_id":"PR_kwDODunzps6Xo-Tw","number":7585,"title":"Avoid multiple default config names","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-05-26T13:27:59Z","updated_at":"2025-06-05T12:41:54Z","closed_at":"2025-06-05T12:41:52Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7585","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7585","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7585.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7585.patch","merged_at":"2025-06-05T12:41:52Z"},"body":"Fix duplicating default config names.\r\n\r\nCurrently, when calling `push_to_hub(set_default=True` with 2 different config names, both are set as default. \r\n\r\nMoreover, this will generate an error next time we try to push another default config name, raised by `MetadataConfigs.get_default_config_name`:\r\nhttps:\/\/github.com\/huggingface\/datasets\/blob\/da1db8a5b89fc0badaa0f571b36e122e52ae8c61\/src\/datasets\/arrow_dataset.py#L5757\r\nhttps:\/\/github.com\/huggingface\/datasets\/blob\/da1db8a5b89fc0badaa0f571b36e122e52ae8c61\/src\/datasets\/utils\/metadata.py#L186-L188","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7585\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7585\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7584","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7584\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7584\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7584\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7584","id":3090255023,"node_id":"I_kwDODunzps64MYyv","number":7584,"title":"Add LMDB format support","user":{"login":"trotsky1997","id":30512160,"node_id":"MDQ6VXNlcjMwNTEyMTYw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/30512160?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/trotsky1997","html_url":"https:\/\/github.com\/trotsky1997","followers_url":"https:\/\/api.github.com\/users\/trotsky1997\/followers","following_url":"https:\/\/api.github.com\/users\/trotsky1997\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/trotsky1997\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/trotsky1997\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/trotsky1997\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/trotsky1997\/orgs","repos_url":"https:\/\/api.github.com\/users\/trotsky1997\/repos","events_url":"https:\/\/api.github.com\/users\/trotsky1997\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/trotsky1997\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-05-26T07:10:13Z","updated_at":"2025-05-26T18:23:37Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nAdd LMDB format support for large memory-mapping files\n\n### Motivation\n\nAdd LMDB format support for large memory-mapping files\n\n### Your contribution\n\nI'm trying to add it","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7584\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7584\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7583","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7583\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7583\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7583\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7583","id":3088987757,"node_id":"I_kwDODunzps64HjZt","number":7583,"title":"load_dataset type stubs reject List[str] for split parameter, but runtime supports it","user":{"login":"hierr","id":25069969,"node_id":"MDQ6VXNlcjI1MDY5OTY5","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/25069969?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/hierr","html_url":"https:\/\/github.com\/hierr","followers_url":"https:\/\/api.github.com\/users\/hierr\/followers","following_url":"https:\/\/api.github.com\/users\/hierr\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/hierr\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/hierr\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/hierr\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/hierr\/orgs","repos_url":"https:\/\/api.github.com\/users\/hierr\/repos","events_url":"https:\/\/api.github.com\/users\/hierr\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/hierr\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-05-25T02:33:18Z","updated_at":"2025-05-26T18:29:58Z","closed_at":"2025-05-26T18:29:58Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nThe [load_dataset](https:\/\/huggingface.co\/docs\/datasets\/v3.6.0\/en\/package_reference\/loading_methods#datasets.load_dataset) method accepts a `List[str]` as the split parameter at runtime, however, the current type stubs restrict the split parameter to `Union[str, Split, None]`. This causes type checkers like Pylance to raise `reportArgumentType` errors when passing a list of strings, even though it works as intended at runtime.\n\n### Steps to reproduce the bug\n\n1. Use load_dataset with multiple splits e.g.:\n```\nfrom datasets import load_dataset\n\nds_train, ds_val, ds_test = load_dataset(\n \"Silly-Machine\/TuPyE-Dataset\",\n \"binary\",\n split=[\"train[:75%]\", \"train[75%:]\", \"test\"]\n)\n```\n2. Observe that code executes correctly at runtime and Pylance raises `Argument of type \"List[str]\" cannot be assigned to parameter \"split\" of type \"str | Split | None\"`\n\n### Expected behavior\n\nThe type stubs for [load_dataset](https:\/\/huggingface.co\/docs\/datasets\/v3.6.0\/en\/package_reference\/loading_methods#datasets.load_dataset) should accept `Union[str, Split, List[str], None]` or more specific overloads for the split parameter to correctly represent runtime behavior. \n\n### Environment info\n\n- `datasets` version: 3.6.0\n- Platform: Linux-5.15.167.4-microsoft-standard-WSL2-x86_64-with-glibc2.39\n- Python version: 3.12.7\n- `huggingface_hub` version: 0.32.0\n- PyArrow version: 20.0.0\n- Pandas version: 2.2.3\n- `fsspec` version: 2025.3.0","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7583\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7583\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7582","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7582\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7582\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7582\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7582","id":3083515643,"node_id":"PR_kwDODunzps6XPIt7","number":7582,"title":"fix: Add embed_storage in Pdf feature","user":{"login":"AndreaFrancis","id":5564745,"node_id":"MDQ6VXNlcjU1NjQ3NDU=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/5564745?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/AndreaFrancis","html_url":"https:\/\/github.com\/AndreaFrancis","followers_url":"https:\/\/api.github.com\/users\/AndreaFrancis\/followers","following_url":"https:\/\/api.github.com\/users\/AndreaFrancis\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/AndreaFrancis\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/AndreaFrancis\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/AndreaFrancis\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/AndreaFrancis\/orgs","repos_url":"https:\/\/api.github.com\/users\/AndreaFrancis\/repos","events_url":"https:\/\/api.github.com\/users\/AndreaFrancis\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/AndreaFrancis\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-05-22T14:06:29Z","updated_at":"2025-05-22T14:17:38Z","closed_at":"2025-05-22T14:17:36Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7582","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7582","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7582.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7582.patch","merged_at":"2025-05-22T14:17:36Z"},"body":"Add missing `embed_storage` method in Pdf feature (Same as in Audio and Image)","closed_by":{"login":"AndreaFrancis","id":5564745,"node_id":"MDQ6VXNlcjU1NjQ3NDU=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/5564745?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/AndreaFrancis","html_url":"https:\/\/github.com\/AndreaFrancis","followers_url":"https:\/\/api.github.com\/users\/AndreaFrancis\/followers","following_url":"https:\/\/api.github.com\/users\/AndreaFrancis\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/AndreaFrancis\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/AndreaFrancis\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/AndreaFrancis\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/AndreaFrancis\/orgs","repos_url":"https:\/\/api.github.com\/users\/AndreaFrancis\/repos","events_url":"https:\/\/api.github.com\/users\/AndreaFrancis\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/AndreaFrancis\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7582\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7582\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7581","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7581\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7581\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7581\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7581","id":3083080413,"node_id":"PR_kwDODunzps6XNpm0","number":7581,"title":"Add missing property on `RepeatExamplesIterable`","user":{"login":"SilvanCodes","id":42788329,"node_id":"MDQ6VXNlcjQyNzg4MzI5","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42788329?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/SilvanCodes","html_url":"https:\/\/github.com\/SilvanCodes","followers_url":"https:\/\/api.github.com\/users\/SilvanCodes\/followers","following_url":"https:\/\/api.github.com\/users\/SilvanCodes\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/SilvanCodes\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/SilvanCodes\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/SilvanCodes\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/SilvanCodes\/orgs","repos_url":"https:\/\/api.github.com\/users\/SilvanCodes\/repos","events_url":"https:\/\/api.github.com\/users\/SilvanCodes\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/SilvanCodes\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-05-22T11:41:07Z","updated_at":"2025-06-05T12:41:30Z","closed_at":"2025-06-05T12:41:29Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7581","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7581","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7581.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7581.patch","merged_at":"2025-06-05T12:41:29Z"},"body":"Fixes #7561","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7581\/reactions","total_count":1,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":1,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7581\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7580","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7580\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7580\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7580\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7580","id":3082993027,"node_id":"I_kwDODunzps63wr2D","number":7580,"title":"Requesting a specific split (eg: test) still downloads all (train, test, val) data when streaming=False.","user":{"login":"s3pi","id":48768216,"node_id":"MDQ6VXNlcjQ4NzY4MjE2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/48768216?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/s3pi","html_url":"https:\/\/github.com\/s3pi","followers_url":"https:\/\/api.github.com\/users\/s3pi\/followers","following_url":"https:\/\/api.github.com\/users\/s3pi\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/s3pi\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/s3pi\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/s3pi\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/s3pi\/orgs","repos_url":"https:\/\/api.github.com\/users\/s3pi\/repos","events_url":"https:\/\/api.github.com\/users\/s3pi\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/s3pi\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-05-22T11:08:16Z","updated_at":"2025-05-26T18:40:31Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nWhen using load_dataset() from the datasets library (in load.py), specifying a particular split (e.g., split=\"train\") still results in downloading data for all splits when streaming=False. This happens during the builder_instance.download_and_prepare() call.\nThis behavior leads to unnecessary bandwidth usage and longer download times, especially for large datasets, even if the user only intends to use a single split.\n\n### Steps to reproduce the bug\n\ndataset_name = \"skbose\/indian-english-nptel-v0\"\ndataset = load_dataset(dataset_name, token=hf_token, split=\"test\")\n\n\n### Expected behavior\n\nOptimize the download logic so that only the required split is downloaded when streaming=False when a specific split is provided.\n\n### Environment info\n\nDataset: skbose\/indian-english-nptel-v0\nPlatform: M1 Apple Silicon\nPython verison: 3.12.9\ndatasets>=3.5.0","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7580\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7580\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7579","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7579\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7579\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7579\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7579","id":3081849022,"node_id":"PR_kwDODunzps6XJerX","number":7579,"title":"Fix typos in PDF and Video documentation","user":{"login":"AndreaFrancis","id":5564745,"node_id":"MDQ6VXNlcjU1NjQ3NDU=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/5564745?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/AndreaFrancis","html_url":"https:\/\/github.com\/AndreaFrancis","followers_url":"https:\/\/api.github.com\/users\/AndreaFrancis\/followers","following_url":"https:\/\/api.github.com\/users\/AndreaFrancis\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/AndreaFrancis\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/AndreaFrancis\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/AndreaFrancis\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/AndreaFrancis\/orgs","repos_url":"https:\/\/api.github.com\/users\/AndreaFrancis\/repos","events_url":"https:\/\/api.github.com\/users\/AndreaFrancis\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/AndreaFrancis\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-05-22T02:27:40Z","updated_at":"2025-05-22T12:53:49Z","closed_at":"2025-05-22T12:53:47Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7579","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7579","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7579.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7579.patch","merged_at":"2025-05-22T12:53:47Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7579\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7579\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7577","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7577\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7577\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7577\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7577","id":3080833740,"node_id":"I_kwDODunzps63ocrM","number":7577,"title":"arrow_schema is not compatible with list","user":{"login":"jonathanshen-upwork","id":164412025,"node_id":"U_kgDOCcy6eQ","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/164412025?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/jonathanshen-upwork","html_url":"https:\/\/github.com\/jonathanshen-upwork","followers_url":"https:\/\/api.github.com\/users\/jonathanshen-upwork\/followers","following_url":"https:\/\/api.github.com\/users\/jonathanshen-upwork\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/jonathanshen-upwork\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/jonathanshen-upwork\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/jonathanshen-upwork\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/jonathanshen-upwork\/orgs","repos_url":"https:\/\/api.github.com\/users\/jonathanshen-upwork\/repos","events_url":"https:\/\/api.github.com\/users\/jonathanshen-upwork\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/jonathanshen-upwork\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2025-05-21T16:37:01Z","updated_at":"2025-05-26T18:49:51Z","closed_at":"2025-05-26T18:32:55Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\n```\nimport datasets\nf = datasets.Features({'x': list[datasets.Value(dtype='int32')]})\nf.arrow_schema\n\nTraceback (most recent call last):\n File \"datasets\/features\/features.py\", line 1826, in arrow_schema\n return pa.schema(self.type).with_metadata({\"huggingface\": json.dumps(hf_metadata)})\n ^^^^^^^^^\n File \"datasets\/features\/features.py\", line 1815, in type\n return get_nested_type(self)\n ^^^^^^^^^^^^^^^^^^^^^\n File \"datasets\/features\/features.py\", line 1252, in get_nested_type\n return pa.struct(\n ^^^^^^^^^^\n File \"pyarrow\/types.pxi\", line 5406, in pyarrow.lib.struct\n File \"pyarrow\/types.pxi\", line 3890, in pyarrow.lib.field\n File \"pyarrow\/types.pxi\", line 5918, in pyarrow.lib.ensure_type\nTypeError: DataType expected, got \n```\n\nThe following works\n```\nf = datasets.Features({'x': datasets.LargeList(datasets.Value(dtype='int32'))})\n```\n\n### Expected behavior\n\naccording to https:\/\/github.com\/huggingface\/datasets\/blob\/458f45a22c3cc9aea5f442f6f519333dcfeae9b9\/src\/datasets\/features\/features.py#L1765 python list should be a valid type specification for features\n\n### Environment info\n\n- `datasets` version: 3.5.1\n- Platform: macOS-15.5-arm64-arm-64bit\n- Python version: 3.12.9\n- `huggingface_hub` version: 0.30.2\n- PyArrow version: 19.0.1\n- Pandas version: 2.2.3\n- `fsspec` version: 2024.12.0","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7577\/reactions","total_count":1,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7577\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7576","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7576\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7576\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7576\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7576","id":3080450538,"node_id":"PR_kwDODunzps6XEuMz","number":7576,"title":"Fix regex library warnings","user":{"login":"emmanuel-ferdman","id":35470921,"node_id":"MDQ6VXNlcjM1NDcwOTIx","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/35470921?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/emmanuel-ferdman","html_url":"https:\/\/github.com\/emmanuel-ferdman","followers_url":"https:\/\/api.github.com\/users\/emmanuel-ferdman\/followers","following_url":"https:\/\/api.github.com\/users\/emmanuel-ferdman\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/emmanuel-ferdman\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/emmanuel-ferdman\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/emmanuel-ferdman\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/emmanuel-ferdman\/orgs","repos_url":"https:\/\/api.github.com\/users\/emmanuel-ferdman\/repos","events_url":"https:\/\/api.github.com\/users\/emmanuel-ferdman\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/emmanuel-ferdman\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-05-21T14:31:58Z","updated_at":"2025-06-05T13:35:16Z","closed_at":"2025-06-05T12:37:55Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7576","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7576","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7576.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7576.patch","merged_at":"2025-06-05T12:37:55Z"},"body":"# PR Summary\r\nThis small PR resolves the regex library warnings showing starting Python3.11:\r\n```python\r\nDeprecationWarning: 'count' is passed as positional argument\r\n```","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7576\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7576\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7575","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7575\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7575\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7575\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7575","id":3080228718,"node_id":"PR_kwDODunzps6XD9gM","number":7575,"title":"[MINOR:TYPO] Update save_to_disk docstring","user":{"login":"cakiki","id":3664563,"node_id":"MDQ6VXNlcjM2NjQ1NjM=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/3664563?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/cakiki","html_url":"https:\/\/github.com\/cakiki","followers_url":"https:\/\/api.github.com\/users\/cakiki\/followers","following_url":"https:\/\/api.github.com\/users\/cakiki\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/cakiki\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/cakiki\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/cakiki\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/cakiki\/orgs","repos_url":"https:\/\/api.github.com\/users\/cakiki\/repos","events_url":"https:\/\/api.github.com\/users\/cakiki\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/cakiki\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-05-21T13:22:24Z","updated_at":"2025-06-05T12:39:13Z","closed_at":"2025-06-05T12:39:13Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7575","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7575","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7575.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7575.patch","merged_at":"2025-06-05T12:39:13Z"},"body":"r\/hub\/filesystem in save_to_disk","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7575\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7575\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7574","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7574\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7574\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7574\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7574","id":3079641072,"node_id":"I_kwDODunzps63j5fw","number":7574,"title":"Missing multilingual directions in IWSLT2017 dataset's processing script","user":{"login":"andy-joy-25","id":79297451,"node_id":"MDQ6VXNlcjc5Mjk3NDUx","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/79297451?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/andy-joy-25","html_url":"https:\/\/github.com\/andy-joy-25","followers_url":"https:\/\/api.github.com\/users\/andy-joy-25\/followers","following_url":"https:\/\/api.github.com\/users\/andy-joy-25\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/andy-joy-25\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/andy-joy-25\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/andy-joy-25\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/andy-joy-25\/orgs","repos_url":"https:\/\/api.github.com\/users\/andy-joy-25\/repos","events_url":"https:\/\/api.github.com\/users\/andy-joy-25\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/andy-joy-25\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-05-21T09:53:17Z","updated_at":"2025-05-26T18:36:38Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nHi, \n\nUpon using `iwslt2017.py` in `IWSLT\/iwslt2017` on the Hub for loading the datasets, I am unable to obtain the datasets for the language pairs `de-it`, `de-ro`, `de-nl`, `it-de`, `nl-de`, and `ro-de` using it. These 6 pairs do not show up when using `get_dataset_config_names()` to obtain the list of all the configs present in `IWSLT\/iwslt2017`. This should not be the case since as mentioned in their original paper (please see https:\/\/aclanthology.org\/2017.iwslt-1.1.pdf), the authors specify that \"_this year we proposed the multilingual translation between any pair of languages from {Dutch, English, German, Italian, Romanian}..._\" and because these datasets are indeed present in `data\/2017-01-trnmted\/texts\/DeEnItNlRo\/DeEnItNlRo\/DeEnItNlRo-DeEnItNlRo.zip`.\n\nBest Regards,\nAnand\n\n### Steps to reproduce the bug\n\nCheck the output of `get_dataset_config_names(\"IWSLT\/iwslt2017\", trust_remote_code=True)`: only 24 language pairs are present and the following 6 config names are absent: `iwslt2017-de-it`, `iwslt2017-de-ro`, `iwslt2017-de-nl`, `iwslt2017-it-de`, `iwslt2017-nl-de`, and `iwslt2017-ro-de`.\n\n### Expected behavior\n\nThe aforementioned 6 language pairs should also be present and hence, all these 6 language pairs' IWSLT2017 datasets must also be available for further use. \n\nI would suggest removing `de` from the `BI_LANGUAGES` list and moving it over to the `MULTI_LANGUAGES` list instead in `iwslt2017.py` to account for all the 6 missing language pairs (the same `de-en` dataset is present in both `data\/2017-01-trnmted\/texts\/DeEnItNlRo\/DeEnItNlRo\/DeEnItNlRo-DeEnItNlRo.zip` and `data\/2017-01-trnted\/texts\/de\/en\/de-en.zip` but the `de-ro`, `de-nl`, `it-de`, `nl-de`, and `ro-de` datasets are only present in `data\/2017-01-trnmted\/texts\/DeEnItNlRo\/DeEnItNlRo\/DeEnItNlRo-DeEnItNlRo.zip`: so, its unclear why the following comment: _`# XXX: Artificially removed DE from here, as it also exists within bilingual data`_ has been added as `L71` in `iwslt2017.py`). The `README.md` file in `IWSLT\/iwslt2017`must then be re-created using `datasets-cli test path\/to\/iwslt2017.py --save_info --all_configs` to pass all split size verification checks for the 6 new language pairs which were previously non-existent. \n\n### Environment info\n\n- `datasets` version: 3.5.0\n- Platform: Linux-6.8.0-56-generic-x86_64-with-glibc2.39\n- Python version: 3.12.3\n- `huggingface_hub` version: 0.30.1\n- PyArrow version: 19.0.1\n- Pandas version: 2.2.3\n- `fsspec` version: 2024.12.0","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7574\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7574\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7573","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7573\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7573\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7573\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7573","id":3076415382,"node_id":"I_kwDODunzps63Xl-W","number":7573,"title":"No Samsum dataset","user":{"login":"IgorKasianenko","id":17688220,"node_id":"MDQ6VXNlcjE3Njg4MjIw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/17688220?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/IgorKasianenko","html_url":"https:\/\/github.com\/IgorKasianenko","followers_url":"https:\/\/api.github.com\/users\/IgorKasianenko\/followers","following_url":"https:\/\/api.github.com\/users\/IgorKasianenko\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/IgorKasianenko\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/IgorKasianenko\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/IgorKasianenko\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/IgorKasianenko\/orgs","repos_url":"https:\/\/api.github.com\/users\/IgorKasianenko\/repos","events_url":"https:\/\/api.github.com\/users\/IgorKasianenko\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/IgorKasianenko\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2025-05-20T09:54:35Z","updated_at":"2025-07-21T18:34:34Z","closed_at":"2025-06-18T12:52:23Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nhttps:\/\/huggingface.co\/datasets\/Samsung\/samsum dataset not found error 404\n\nOriginated from https:\/\/github.com\/meta-llama\/llama-cookbook\/issues\/948\n\n### Steps to reproduce the bug\n\ngo to website https:\/\/huggingface.co\/datasets\/Samsung\/samsum\nsee the error\n\nalso downloading it with python throws \n```\nCouldn't find 'Samsung\/samsum' on the Hugging Face Hub either: FileNotFoundError: Samsung\/samsum@f00baf5a7d4abfec6820415493bcb52c587788e6\/samsum.py (repository not found)\n```\n\n### Expected behavior\n\nDataset exists\n\n### Environment info\n\n```\n- `datasets` version: 3.2.0\n- Platform: macOS-15.4.1-arm64-arm-64bit\n- Python version: 3.12.2\n- `huggingface_hub` version: 0.26.5\n- PyArrow version: 16.1.0\n- Pandas version: 2.2.3\n- `fsspec` version: 2024.9.0\n```","closed_by":{"login":"IgorKasianenko","id":17688220,"node_id":"MDQ6VXNlcjE3Njg4MjIw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/17688220?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/IgorKasianenko","html_url":"https:\/\/github.com\/IgorKasianenko","followers_url":"https:\/\/api.github.com\/users\/IgorKasianenko\/followers","following_url":"https:\/\/api.github.com\/users\/IgorKasianenko\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/IgorKasianenko\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/IgorKasianenko\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/IgorKasianenko\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/IgorKasianenko\/orgs","repos_url":"https:\/\/api.github.com\/users\/IgorKasianenko\/repos","events_url":"https:\/\/api.github.com\/users\/IgorKasianenko\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/IgorKasianenko\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7573\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7573\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7572","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7572\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7572\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7572\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7572","id":3074529251,"node_id":"PR_kwDODunzps6WwsZB","number":7572,"title":"Fixed typos","user":{"login":"TopCoder2K","id":47208659,"node_id":"MDQ6VXNlcjQ3MjA4NjU5","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/47208659?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/TopCoder2K","html_url":"https:\/\/github.com\/TopCoder2K","followers_url":"https:\/\/api.github.com\/users\/TopCoder2K\/followers","following_url":"https:\/\/api.github.com\/users\/TopCoder2K\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/TopCoder2K\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/TopCoder2K\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/TopCoder2K\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/TopCoder2K\/orgs","repos_url":"https:\/\/api.github.com\/users\/TopCoder2K\/repos","events_url":"https:\/\/api.github.com\/users\/TopCoder2K\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/TopCoder2K\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-05-19T17:16:59Z","updated_at":"2025-06-05T12:25:42Z","closed_at":"2025-06-05T12:25:41Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7572","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7572","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7572.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7572.patch","merged_at":"2025-06-05T12:25:41Z"},"body":"More info: [comment](https:\/\/github.com\/huggingface\/datasets\/pull\/7564#issuecomment-2863391781).","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7572\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7572\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7571","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7571\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7571\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7571\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7571","id":3074116942,"node_id":"PR_kwDODunzps6WvRqi","number":7571,"title":"fix string_to_dict test","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-05-19T14:49:23Z","updated_at":"2025-05-19T14:52:24Z","closed_at":"2025-05-19T14:49:28Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7571","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7571","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7571.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7571.patch","merged_at":"2025-05-19T14:49:28Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7571\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7571\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7570","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7570\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7570\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7570\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7570","id":3065966529,"node_id":"I_kwDODunzps62vu_B","number":7570,"title":"Dataset lib seems to broke after fssec lib update","user":{"login":"sleepingcat4","id":81933585,"node_id":"MDQ6VXNlcjgxOTMzNTg1","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/81933585?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/sleepingcat4","html_url":"https:\/\/github.com\/sleepingcat4","followers_url":"https:\/\/api.github.com\/users\/sleepingcat4\/followers","following_url":"https:\/\/api.github.com\/users\/sleepingcat4\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/sleepingcat4\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/sleepingcat4\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/sleepingcat4\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/sleepingcat4\/orgs","repos_url":"https:\/\/api.github.com\/users\/sleepingcat4\/repos","events_url":"https:\/\/api.github.com\/users\/sleepingcat4\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/sleepingcat4\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2025-05-15T11:45:06Z","updated_at":"2025-06-13T00:44:27Z","closed_at":"2025-06-13T00:44:27Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI am facing an issue since today where HF's dataset is acting weird and in some instances failure to recognise a valid dataset entirely, I think it is happening due to recent change in `fsspec` lib as using this command fixed it for me in one-time: `!pip install -U datasets huggingface_hub fsspec`\n\n\n### Steps to reproduce the bug\n\nfrom datasets import load_dataset\n\ndef download_hf():\n dataset_name = input(\"Enter the dataset name: \")\n subset_name = input(\"Enter subset name: \")\n ds = load_dataset(dataset_name, name=subset_name)\n for split in ds:\n ds[split].to_pandas().to_csv(f\"{subset_name}.csv\", index=False)\n\ndownload_hf()\n\n### Expected behavior\n\n```\nDownloading\u2007readme:\u2007100%\n\u20071.55k\/1.55k\u2007[00:00<00:00,\u2007121kB\/s]\nDownloading\u2007data\u2007files:\u2007100%\n\u20071\/1\u2007[00:00<00:00,\u2007\u20072.06it\/s]\n\nDownloading data: 0%| | 0.00\/54.2k [00:00](https:\/\/localhost:8080\/#) in ()\n 8 ds[split].to_pandas().to_csv(f\"{subset_name}.csv\", index=False)\n 9 \n---> 10 download_hf()\n\n2 frames\n[\/usr\/local\/lib\/python3.11\/dist-packages\/datasets\/builder.py](https:\/\/localhost:8080\/#) in as_dataset(self, split, run_post_process, verification_mode, ignore_verifications, in_memory)\n 1171 is_local = not is_remote_filesystem(self._fs)\n 1172 if not is_local:\n-> 1173 raise NotImplementedError(f\"Loading a dataset cached in a {type(self._fs).__name__} is not supported.\")\n 1174 if not os.path.exists(self._output_dir):\n 1175 raise FileNotFoundError(\n\nNotImplementedError: Loading a dataset cached in a LocalFileSystem is not supported.\n```\nOR\n```\nTraceback (most recent call last):\n File \"e:\\Fuck\\download-data\\mcq_dataset.py\", line 10, in \n download_hf()\n File \"e:\\Fuck\\download-data\\mcq_dataset.py\", line 6, in download_hf\n ds = load_dataset(dataset_name, name=subset_name)\n File \"C:\\Users\\DELL\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\datasets\\load.py\", line 2606, in load_dataset\n builder_instance = load_dataset_builder(\n File \"C:\\Users\\DELL\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\datasets\\load.py\", line 2277, in load_dataset_builder\n dataset_module = dataset_module_factory(\n File \"C:\\Users\\DELL\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\datasets\\load.py\", line 1917, in dataset_module_factory \n raise e1 from None\n File \"C:\\Users\\DELL\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\datasets\\load.py\", line 1867, in dataset_module_factory \n raise DatasetNotFoundError(f\"Dataset '{path}' doesn't exist on the Hub or cannot be accessed.\") from e\ndatasets.exceptions.DatasetNotFoundError: Dataset 'dataset repo_id' doesn't exist on the Hub or cannot be accessed.\n```\n\n### Environment info\n\ncolab and 3.10 local system","closed_by":{"login":"sleepingcat4","id":81933585,"node_id":"MDQ6VXNlcjgxOTMzNTg1","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/81933585?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/sleepingcat4","html_url":"https:\/\/github.com\/sleepingcat4","followers_url":"https:\/\/api.github.com\/users\/sleepingcat4\/followers","following_url":"https:\/\/api.github.com\/users\/sleepingcat4\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/sleepingcat4\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/sleepingcat4\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/sleepingcat4\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/sleepingcat4\/orgs","repos_url":"https:\/\/api.github.com\/users\/sleepingcat4\/repos","events_url":"https:\/\/api.github.com\/users\/sleepingcat4\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/sleepingcat4\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7570\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7570\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7569","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7569\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7569\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7569\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7569","id":3061234054,"node_id":"I_kwDODunzps62drmG","number":7569,"title":"Dataset creation is broken if nesting a dict inside a dict inside a list","user":{"login":"TimSchneider42","id":25732590,"node_id":"MDQ6VXNlcjI1NzMyNTkw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/25732590?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/TimSchneider42","html_url":"https:\/\/github.com\/TimSchneider42","followers_url":"https:\/\/api.github.com\/users\/TimSchneider42\/followers","following_url":"https:\/\/api.github.com\/users\/TimSchneider42\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/TimSchneider42\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/TimSchneider42\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/TimSchneider42\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/TimSchneider42\/orgs","repos_url":"https:\/\/api.github.com\/users\/TimSchneider42\/repos","events_url":"https:\/\/api.github.com\/users\/TimSchneider42\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/TimSchneider42\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-05-13T21:06:45Z","updated_at":"2025-05-20T19:25:15Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nHey,\n\nI noticed that the creation of datasets with `Dataset.from_generator` is broken if dicts and lists are nested in a certain way and a schema is being passed. See below for details.\n\nBest,\nTim\n\n### Steps to reproduce the bug\n\nRuning this code:\n\n```python\nfrom datasets import Dataset, Features, Sequence, Value\n\n\ndef generator():\n yield {\n \"a\": [{\"b\": {\"c\": 0}}],\n }\n\n\nfeatures = Features(\n {\n \"a\": Sequence(\n feature={\n \"b\": {\n \"c\": Value(\"int32\"),\n },\n },\n length=1,\n )\n }\n)\n\ndataset = Dataset.from_generator(generator, features=features)\n```\n\nleads to \n```\nGenerating train split: 1 examples [00:00, 540.85 examples\/s]\nTraceback (most recent call last):\n File \"\/home\/user\/miniconda3\/envs\/test\/lib\/python3.11\/site-packages\/datasets\/builder.py\", line 1635, in _prepare_split_single\n num_examples, num_bytes = writer.finalize()\n ^^^^^^^^^^^^^^^^^\n File \"\/home\/user\/miniconda3\/envs\/test\/lib\/python3.11\/site-packages\/datasets\/arrow_writer.py\", line 657, in finalize\n self.write_examples_on_file()\n File \"\/home\/user\/miniconda3\/envs\/test\/lib\/python3.11\/site-packages\/datasets\/arrow_writer.py\", line 510, in write_examples_on_file\n self.write_batch(batch_examples=batch_examples)\n File \"\/home\/user\/miniconda3\/envs\/test\/lib\/python3.11\/site-packages\/datasets\/arrow_writer.py\", line 629, in write_batch\n pa_table = pa.Table.from_arrays(arrays, schema=schema)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"pyarrow\/table.pxi\", line 4851, in pyarrow.lib.Table.from_arrays\n File \"pyarrow\/table.pxi\", line 1608, in pyarrow.lib._sanitize_arrays\n File \"pyarrow\/array.pxi\", line 399, in pyarrow.lib.asarray\n File \"pyarrow\/array.pxi\", line 1004, in pyarrow.lib.Array.cast\n File \"\/home\/user\/miniconda3\/envs\/test\/lib\/python3.11\/site-packages\/pyarrow\/compute.py\", line 405, in cast\n return call_function(\"cast\", [arr], options, memory_pool)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"pyarrow\/_compute.pyx\", line 598, in pyarrow._compute.call_function\n File \"pyarrow\/_compute.pyx\", line 393, in pyarrow._compute.Function.call\n File \"pyarrow\/error.pxi\", line 155, in pyarrow.lib.pyarrow_internal_check_status\n File \"pyarrow\/error.pxi\", line 92, in pyarrow.lib.check_status\npyarrow.lib.ArrowNotImplementedError: Unsupported cast from fixed_size_list>[1] to struct using function cast_struct\n\nThe above exception was the direct cause of the following exception:\n\nTraceback (most recent call last):\n File \"\/home\/user\/test\/tools\/hf_test2.py\", line 23, in \n dataset = Dataset.from_generator(generator, features=features)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"\/home\/user\/miniconda3\/envs\/test\/lib\/python3.11\/site-packages\/datasets\/arrow_dataset.py\", line 1114, in from_generator\n ).read()\n ^^^^^^\n File \"\/home\/user\/miniconda3\/envs\/test\/lib\/python3.11\/site-packages\/datasets\/io\/generator.py\", line 49, in read\n self.builder.download_and_prepare(\n File \"\/home\/user\/miniconda3\/envs\/test\/lib\/python3.11\/site-packages\/datasets\/builder.py\", line 925, in download_and_prepare\n self._download_and_prepare(\n File \"\/home\/user\/miniconda3\/envs\/test\/lib\/python3.11\/site-packages\/datasets\/builder.py\", line 1649, in _download_and_prepare\n super()._download_and_prepare(\n File \"\/home\/user\/miniconda3\/envs\/test\/lib\/python3.11\/site-packages\/datasets\/builder.py\", line 1001, in _download_and_prepare\n self._prepare_split(split_generator, **prepare_split_kwargs)\n File \"\/home\/user\/miniconda3\/envs\/test\/lib\/python3.11\/site-packages\/datasets\/builder.py\", line 1487, in _prepare_split\n for job_id, done, content in self._prepare_split_single(\n File \"\/home\/user\/miniconda3\/envs\/test\/lib\/python3.11\/site-packages\/datasets\/builder.py\", line 1644, in _prepare_split_single\n raise DatasetGenerationError(\"An error occurred while generating the dataset\") from e\ndatasets.exceptions.DatasetGenerationError: An error occurred while generating the dataset\n\nProcess finished with exit code 1\n```\n\n### Expected behavior\n\nI expected this code not to lead to an error. \n\nI have done some digging and figured out that the problem seems to be the `get_nested_type` function in `features.py`, which, for whatever reason, flips Sequences and dicts whenever it encounters a dict inside of a sequence. This seems to be necessary, as disabling that flip leads to another error. However, by keeping that flip enabled for the highest level and disabling it for all subsequent levels, I was able to work around this problem. Specifically, by patching `get_nested_type` as follows, it works on the given example (emphasis on the `level` parameter I added):\n\n```python\ndef get_nested_type(schema: FeatureType, level=0) -> pa.DataType:\n \"\"\"\n get_nested_type() converts a datasets.FeatureType into a pyarrow.DataType, and acts as the inverse of\n generate_from_arrow_type().\n\n It performs double-duty as the implementation of Features.type and handles the conversion of\n datasets.Feature->pa.struct\n \"\"\"\n # Nested structures: we allow dict, list\/tuples, sequences\n if isinstance(schema, Features):\n return pa.struct(\n {key: get_nested_type(schema[key], level = level + 1) for key in schema}\n ) # Features is subclass of dict, and dict order is deterministic since Python 3.6\n elif isinstance(schema, dict):\n return pa.struct(\n {key: get_nested_type(schema[key], level = level + 1) for key in schema}\n ) # however don't sort on struct types since the order matters\n elif isinstance(schema, (list, tuple)):\n if len(schema) != 1:\n raise ValueError(\"When defining list feature, you should just provide one example of the inner type\")\n value_type = get_nested_type(schema[0], level = level + 1)\n return pa.list_(value_type)\n elif isinstance(schema, LargeList):\n value_type = get_nested_type(schema.feature, level = level + 1)\n return pa.large_list(value_type)\n elif isinstance(schema, Sequence):\n value_type = get_nested_type(schema.feature, level = level + 1)\n # We allow to reverse list of dict => dict of list for compatibility with tfds\n if isinstance(schema.feature, dict) and level == 1:\n data_type = pa.struct({f.name: pa.list_(f.type, schema.length) for f in value_type})\n else:\n data_type = pa.list_(value_type, schema.length)\n return data_type\n\n # Other objects are callable which returns their data type (ClassLabel, Array2D, Translation, Arrow datatype creation methods)\n return schema()\n```\n\nI have honestly no idea what I am doing here, so this might produce other issues for different inputs.\n\n### Environment info\n\n- `datasets` version: 3.6.0\n- Platform: Linux-6.8.0-59-generic-x86_64-with-glibc2.35\n- Python version: 3.11.11\n- `huggingface_hub` version: 0.30.2\n- PyArrow version: 19.0.1\n- Pandas version: 2.2.3\n- `fsspec` version: 2024.12.0\n\nAlso tested it with 3.5.0, same result.","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7569\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7569\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7568","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7568\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7568\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7568\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7568","id":3060515257,"node_id":"I_kwDODunzps62a8G5","number":7568,"title":"`IterableDatasetDict.map()` call removes `column_names` (in fact info.features)","user":{"login":"mombip","id":7893763,"node_id":"MDQ6VXNlcjc4OTM3NjM=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/7893763?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/mombip","html_url":"https:\/\/github.com\/mombip","followers_url":"https:\/\/api.github.com\/users\/mombip\/followers","following_url":"https:\/\/api.github.com\/users\/mombip\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/mombip\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/mombip\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/mombip\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/mombip\/orgs","repos_url":"https:\/\/api.github.com\/users\/mombip\/repos","events_url":"https:\/\/api.github.com\/users\/mombip\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/mombip\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2025-05-13T15:45:42Z","updated_at":"2025-06-30T09:33:47Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"When calling `IterableDatasetDict.map()`, each split\u2019s `IterableDataset.map()` is invoked without a `features` argument. While omitting the argument isn\u2019t itself incorrect, the implementation then sets `info.features = features`, which destroys the original `features` content. Since `IterableDataset.column_names` relies on `info.features`, it ends up broken (`None`).\n\n**Reproduction**\n\n1. Define an IterableDatasetDict with a non-None features schema.\n2. my_iterable_dataset_dict contains \"text\" column.\n3. Call:\n```Python\nnew_dict = my_iterable_dataset_dict.map(\n function=my_fn,\n with_indices=False,\n batched=True,\n batch_size=16,\n)\n```\n4. Observe\n```Python\nnew_dict[\"train\"].info.features # {'text': Value(dtype='string', id=None)}\nnew_dict[\"train\"].column_names # ['text']\n```\n5. Call:\n```Python\nnew_dict = my_iterable_dataset_dict.map(\n function=my_fn,\n with_indices=False,\n batched=True,\n batch_size=16,\n remove_columns=[\"foo\"]\n)\n```\n6. Observe:\n```Python\nnew_dict[\"train\"].info.features # \u2192 None\nnew_dict[\"train\"].column_names # \u2192 None\n```\n5. Internally, in dataset_dict.py this loop omits features ([code](https:\/\/github.com\/huggingface\/datasets\/blob\/b9efdc64c3bfb8f21f8a4a22b21bddd31ecd5a31\/src\/datasets\/dataset_dict.py#L2047C5-L2056C14)):\n```Python\nfor split, dataset in self.items():\n dataset_dict[split] = dataset.map(\n function=function,\n with_indices=with_indices,\n input_columns=input_columns,\n batched=batched,\n batch_size=batch_size,\n drop_last_batch=drop_last_batch,\n remove_columns=remove_columns,\n fn_kwargs=fn_kwargs,\n # features omitted \u2192 defaults to None\n )\n```\n7. Then inside IterableDataset.map() ([code](https:\/\/github.com\/huggingface\/datasets\/blob\/b9efdc64c3bfb8f21f8a4a22b21bddd31ecd5a31\/src\/datasets\/iterable_dataset.py#L2619C1-L2622C37)) correct `info.features` is replaced by features which is None:\n```Python\ninfo = self.info.copy()\ninfo.features = features # features is None here\nreturn IterableDataset(..., info=info, ...)\n```\n\n**Suggestion**\nIt looks like this replacement was added intentionally but maybe should be done only if `features` is `not None`.\n\n**Workarround:**\n`SFTTrainer` calls `dataset.map()` several times and then fails on `NoneType` when iterating `dataset.column_names`.\nI decided to write this patch - works form me.\n\n```python\ndef patch_iterable_dataset_map():\n _orig_map = IterableDataset.map\n\n def _patched_map(self, *args, **kwargs):\n if \"features\" not in kwargs or kwargs[\"features\"] is None:\n kwargs[\"features\"] = self.info.features\n return _orig_map(self, *args, **kwargs)\n\n IterableDataset.map = _patched_map\n```\n\n\n\n\n","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7568\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7568\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7567","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7567\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7567\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7567\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7567","id":3058308538,"node_id":"I_kwDODunzps62ShW6","number":7567,"title":"interleave_datasets seed with multiple workers","user":{"login":"jonathanasdf","id":511073,"node_id":"MDQ6VXNlcjUxMTA3Mw==","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/511073?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/jonathanasdf","html_url":"https:\/\/github.com\/jonathanasdf","followers_url":"https:\/\/api.github.com\/users\/jonathanasdf\/followers","following_url":"https:\/\/api.github.com\/users\/jonathanasdf\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/jonathanasdf\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/jonathanasdf\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/jonathanasdf\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/jonathanasdf\/orgs","repos_url":"https:\/\/api.github.com\/users\/jonathanasdf\/repos","events_url":"https:\/\/api.github.com\/users\/jonathanasdf\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/jonathanasdf\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2025-05-12T22:38:27Z","updated_at":"2025-06-29T06:53:59Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nUsing interleave_datasets with multiple dataloader workers and a seed set causes the same dataset sampling order across all workers.\n\nShould the seed be modulated with the worker id?\n\n### Steps to reproduce the bug\n\nSee above\n\n### Expected behavior\n\nSee above\n\n### Environment info\n\n- `datasets` version: 3.5.1\n- Platform: macOS-15.4.1-arm64-arm-64bit\n- Python version: 3.12.9\n- `huggingface_hub` version: 0.30.2\n- PyArrow version: 19.0.1\n- Pandas version: 2.2.3\n- `fsspec` version: 2024.12.0","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7567\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7567\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7566","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7566\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7566\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7566\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7566","id":3055279344,"node_id":"I_kwDODunzps62G9zw","number":7566,"title":"terminate called without an active exception; Aborted (core dumped)","user":{"login":"alexey-milovidov","id":18581488,"node_id":"MDQ6VXNlcjE4NTgxNDg4","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/18581488?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/alexey-milovidov","html_url":"https:\/\/github.com\/alexey-milovidov","followers_url":"https:\/\/api.github.com\/users\/alexey-milovidov\/followers","following_url":"https:\/\/api.github.com\/users\/alexey-milovidov\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/alexey-milovidov\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/alexey-milovidov\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/alexey-milovidov\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/alexey-milovidov\/orgs","repos_url":"https:\/\/api.github.com\/users\/alexey-milovidov\/repos","events_url":"https:\/\/api.github.com\/users\/alexey-milovidov\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/alexey-milovidov\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2025-05-11T23:05:54Z","updated_at":"2025-06-23T17:56:02Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI use it as in the tutorial here: https:\/\/huggingface.co\/docs\/datasets\/stream, and it ends up with abort.\n\n### Steps to reproduce the bug\n\n1. `pip install datasets`\n2. \n```\n$ cat main.py \n#!\/usr\/bin\/env python3\n\nfrom datasets import load_dataset\n\ndataset = load_dataset('HuggingFaceFW\/fineweb', split='train', streaming=True)\nprint(next(iter(dataset)))\n```\n3. `chmod +x main.py`\n```\n$ .\/main.py \nREADME.md: 100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 43.1k\/43.1k [00:00<00:00, 7.04MB\/s]\nResolving data files: 100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 25868\/25868 [00:05<00:00, 4859.26it\/s]\nResolving data files: 100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 25868\/25868 [00:00<00:00, 54773.56it\/s]\n{'text': \"How AP reported in all formats from tornado-stricken regionsMarch 8, 2012\\nWhen the first serious bout of tornadoes of 2012 blew through middle America in the middle of the night, they touched down in places hours from any AP bureau. Our closest video journalist was Chicago-based Robert Ray, who dropped his plans to travel to Georgia for Super Tuesday, booked several flights to the cities closest to the strikes and headed for the airport. He\u2019d decide once there which flight to take.\\nHe never got on board a plane. Instead, he ended up driving toward Harrisburg, Ill., where initial reports suggested a town was destroyed. That decision turned out to be a lucky break for the AP. Twice.\\nRay was among the first journalists to arrive and he confirmed those reports -- in all formats. He shot powerful video, put victims on the phone with AP Radio and played back sound to an editor who transcribed the interviews and put the material on text wires. He then walked around the devastation with the Central Regional Desk on the line, talking to victims with the phone held so close that editors could transcribe his interviews in real time.\\nRay also made a dramatic image of a young girl who found a man\u2019s prosthetic leg in the rubble, propped it up next to her destroyed home and spray-painted an impromptu sign: \u201cFound leg. Seriously.\u201d\\nThe following day, he was back on the road and headed for Georgia and a Super Tuesday date with Newt Gingrich\u2019s campaign. The drive would take him through a stretch of the South that forecasters expected would suffer another wave of tornadoes.\\nTo prevent running into THAT storm, Ray used his iPhone to monitor Doppler radar, zooming in on extreme cells and using Google maps to direct himself to safe routes. And then the journalist took over again.\\n\u201cWhen weather like that occurs, a reporter must seize the opportunity to get the news out and allow people to see, hear and read the power of nature so that they can take proper shelter,\u201d Ray says.\\nSo Ray now started to use his phone to follow the storms. He attached a small GoPro camera to his steering wheel in case a tornado dropped down in front of the car somewhere, and took video of heavy rain and hail with his iPhone. Soon, he spotted a tornado and the chase was on. He followed an unmarked emergency vehicle to Cleveland, Tenn., where he was first on the scene of the storm's aftermath.\\nAgain, the tornadoes had struck in locations that were hours from the nearest AP bureau. Damage and debris, as well as a wickedly violent storm that made travel dangerous, slowed our efforts to get to the news. That wasn\u2019t a problem in Tennessee, where our customers were well served by an all-formats report that included this text story.\\n\u201cCLEVELAND, Tenn. (AP) _ Fierce wind, hail and rain lashed Tennessee for the second time in three days, and at least 15 people were hospitalized Friday in the Chattanooga area.\u201d\\nThe byline? Robert Ray.\\nFor being adept with technology, chasing after news as it literally dropped from the sky and setting a standard for all-formats reporting that put the AP ahead on the most competitive news story of the day, Ray wins this week\u2019s $300 Best of the States prize.\\n\u00a9 2013 The Associated Press. All rights reserved. Terms and conditions apply. See AP.org for details.\", 'id': '', 'dump': 'CC-MAIN-2013-20', 'url': 'http:\/\/%20jwashington@ap.org\/Content\/Press-Release\/2012\/How-AP-reported-in-all-formats-from-tornado-stricken-regions', 'date': '2013-05-18T05:48:54Z', 'file_path': 's3:\/\/commoncrawl\/crawl-data\/CC-MAIN-2013-20\/segments\/1368696381249\/warc\/CC-MAIN-20130516092621-00000-ip-10-60-113-184.ec2.internal.warc.gz', 'language': 'en', 'language_score': 0.9721424579620361, 'token_count': 717}\nterminate called without an active exception\nAborted (core dumped)\n```\n\n### Expected behavior\n\nI'm not a proficient Python user, so it might be my own error, but even in that case, the error message should be better.\n\n### Environment info\n\n`Successfully installed datasets-3.6.0 dill-0.3.8 hf-xet-1.1.0 huggingface-hub-0.31.1 multiprocess-0.70.16 requests-2.32.3 xxhash-3.5.0`\n\n```\n$ cat \/etc\/lsb-release \nDISTRIB_ID=Ubuntu\nDISTRIB_RELEASE=22.04\nDISTRIB_CODENAME=jammy\nDISTRIB_DESCRIPTION=\"Ubuntu 22.04.4 LTS\"\n```","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7566\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7566\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7565","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7565\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7565\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7565\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7565","id":3051731207,"node_id":"PR_kwDODunzps6VkFBm","number":7565,"title":"add check if repo exists for dataset uploading","user":{"login":"Samoed","id":36135455,"node_id":"MDQ6VXNlcjM2MTM1NDU1","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/36135455?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Samoed","html_url":"https:\/\/github.com\/Samoed","followers_url":"https:\/\/api.github.com\/users\/Samoed\/followers","following_url":"https:\/\/api.github.com\/users\/Samoed\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Samoed\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Samoed\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Samoed\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Samoed\/orgs","repos_url":"https:\/\/api.github.com\/users\/Samoed\/repos","events_url":"https:\/\/api.github.com\/users\/Samoed\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Samoed\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-05-09T10:27:00Z","updated_at":"2025-06-09T14:39:23Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7565","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7565","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7565.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7565.patch","merged_at":null},"body":"Currently, I'm reuploading datasets for [`MTEB`](https:\/\/github.com\/embeddings-benchmark\/mteb\/). Some of them have many splits (more than 20), and I'm encountering the error:\r\n`Too many requests for https:\/\/huggingface.co\/datasets\/repo\/create`.\r\n\r\nIt seems that this issue occurs because the dataset tries to recreate itself every time a split is uploaded. To resolve this, I've added a check to ensure that if the dataset already exists, it won't attempt to recreate it.","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7565\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7565\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7564","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7564\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7564\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7564\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7564","id":3049275226,"node_id":"PR_kwDODunzps6VczLS","number":7564,"title":"Implementation of iteration over values of a column in an IterableDataset object","user":{"login":"TopCoder2K","id":47208659,"node_id":"MDQ6VXNlcjQ3MjA4NjU5","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/47208659?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/TopCoder2K","html_url":"https:\/\/github.com\/TopCoder2K","followers_url":"https:\/\/api.github.com\/users\/TopCoder2K\/followers","following_url":"https:\/\/api.github.com\/users\/TopCoder2K\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/TopCoder2K\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/TopCoder2K\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/TopCoder2K\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/TopCoder2K\/orgs","repos_url":"https:\/\/api.github.com\/users\/TopCoder2K\/repos","events_url":"https:\/\/api.github.com\/users\/TopCoder2K\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/TopCoder2K\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2025-05-08T14:59:22Z","updated_at":"2025-05-19T12:15:02Z","closed_at":"2025-05-19T12:15:02Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7564","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7564","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7564.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7564.patch","merged_at":"2025-05-19T12:15:02Z"},"body":"Refers to [this issue](https:\/\/github.com\/huggingface\/datasets\/issues\/7381).","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7564\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7564\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7563","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7563\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7563\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7563\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7563","id":3046351253,"node_id":"PR_kwDODunzps6VS0QL","number":7563,"title":"set dev version","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-05-07T15:18:29Z","updated_at":"2025-05-07T15:21:05Z","closed_at":"2025-05-07T15:18:36Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7563","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7563","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7563.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7563.patch","merged_at":"2025-05-07T15:18:36Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7563\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7563\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7562","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7562\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7562\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7562\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7562","id":3046339430,"node_id":"PR_kwDODunzps6VSxmx","number":7562,"title":"release: 3.6.0","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-05-07T15:15:13Z","updated_at":"2025-05-07T15:17:46Z","closed_at":"2025-05-07T15:15:21Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7562","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7562","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7562.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7562.patch","merged_at":"2025-05-07T15:15:20Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7562\/reactions","total_count":1,"+1":0,"-1":0,"laugh":0,"hooray":1,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7562\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7561","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7561\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7561\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7561\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7561","id":3046302653,"node_id":"I_kwDODunzps61kuO9","number":7561,"title":"NotImplementedError: doesn't implement num_shards yet","user":{"login":"cyanic-selkie","id":32219669,"node_id":"MDQ6VXNlcjMyMjE5NjY5","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/32219669?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/cyanic-selkie","html_url":"https:\/\/github.com\/cyanic-selkie","followers_url":"https:\/\/api.github.com\/users\/cyanic-selkie\/followers","following_url":"https:\/\/api.github.com\/users\/cyanic-selkie\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/cyanic-selkie\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/cyanic-selkie\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/cyanic-selkie\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/cyanic-selkie\/orgs","repos_url":"https:\/\/api.github.com\/users\/cyanic-selkie\/repos","events_url":"https:\/\/api.github.com\/users\/cyanic-selkie\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/cyanic-selkie\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-05-07T15:05:42Z","updated_at":"2025-06-05T12:41:30Z","closed_at":"2025-06-05T12:41:30Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nWhen using `.repeat()` on an `IterableDataset`, this error gets thrown. There is [this thread](https:\/\/discuss.huggingface.co\/t\/making-an-infinite-iterabledataset\/146192\/5) that seems to imply the fix is trivial, but I don't know anything about this codebase, so I'm opening this issue rather than attempting to open a PR.\n\n### Steps to reproduce the bug\n\n1. Create an `IterableDataset`.\n2. Call `.repeat(None)` on it.\n3. Wrap it in a pytorch `DataLoader`\n4. Iterate over it.\n\n### Expected behavior\n\nThis should work normally.\n\n### Environment info\n\ndatasets: 3.5.0","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7561\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7561\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7560","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7560\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7560\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7560\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7560","id":3046265500,"node_id":"PR_kwDODunzps6VShIc","number":7560,"title":"fix decoding tests","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-05-07T14:56:14Z","updated_at":"2025-05-07T14:59:02Z","closed_at":"2025-05-07T14:56:20Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7560","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7560","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7560.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7560.patch","merged_at":"2025-05-07T14:56:20Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7560\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7560\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7559","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7559\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7559\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7559\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7559","id":3046177078,"node_id":"PR_kwDODunzps6VSNiX","number":7559,"title":"fix aiohttp import","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-05-07T14:31:32Z","updated_at":"2025-05-07T14:34:34Z","closed_at":"2025-05-07T14:31:38Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7559","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7559","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7559.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7559.patch","merged_at":"2025-05-07T14:31:38Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7559\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7559\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7558","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7558\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7558\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7558\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7558","id":3046066628,"node_id":"PR_kwDODunzps6VR1gN","number":7558,"title":"fix regression","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-05-07T13:56:03Z","updated_at":"2025-05-07T13:58:52Z","closed_at":"2025-05-07T13:56:18Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7558","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7558","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7558.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7558.patch","merged_at":"2025-05-07T13:56:18Z"},"body":"reported in https:\/\/github.com\/huggingface\/datasets\/pull\/7557 (I just reorganized the condition)\r\n\r\nwanted to apply this change to the original PR but github didn't let me apply it directly - merging this one instead","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7558\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7558\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7557","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7557\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7557\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7557\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7557","id":3045962076,"node_id":"PR_kwDODunzps6VRenr","number":7557,"title":"check for empty _formatting","user":{"login":"winglian","id":381258,"node_id":"MDQ6VXNlcjM4MTI1OA==","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/381258?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/winglian","html_url":"https:\/\/github.com\/winglian","followers_url":"https:\/\/api.github.com\/users\/winglian\/followers","following_url":"https:\/\/api.github.com\/users\/winglian\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/winglian\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/winglian\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/winglian\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/winglian\/orgs","repos_url":"https:\/\/api.github.com\/users\/winglian\/repos","events_url":"https:\/\/api.github.com\/users\/winglian\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/winglian\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-05-07T13:22:37Z","updated_at":"2025-05-07T13:57:12Z","closed_at":"2025-05-07T13:57:12Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7557","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7557","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7557.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7557.patch","merged_at":null},"body":"Fixes a regression from #7553 breaking shuffling of iterable datasets \r\n\"Screenshot\r\n","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7557\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7557\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7556","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7556\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7556\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7556\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7556","id":3043615210,"node_id":"PR_kwDODunzps6VJlTR","number":7556,"title":"Add `--merge-pull-request` option for `convert_to_parquet`","user":{"login":"klamike","id":17013474,"node_id":"MDQ6VXNlcjE3MDEzNDc0","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/17013474?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/klamike","html_url":"https:\/\/github.com\/klamike","followers_url":"https:\/\/api.github.com\/users\/klamike\/followers","following_url":"https:\/\/api.github.com\/users\/klamike\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/klamike\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/klamike\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/klamike\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/klamike\/orgs","repos_url":"https:\/\/api.github.com\/users\/klamike\/repos","events_url":"https:\/\/api.github.com\/users\/klamike\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/klamike\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-05-06T18:05:05Z","updated_at":"2025-07-18T19:09:10Z","closed_at":"2025-07-18T19:09:10Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7556","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7556","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7556.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7556.patch","merged_at":null},"body":"Closes #7527 \r\n\r\nNote that this implementation **will only merge the last PR in the case that they get split up by `push_to_hub`**. See https:\/\/github.com\/huggingface\/datasets\/discussions\/7555 for more details.","closed_by":{"login":"klamike","id":17013474,"node_id":"MDQ6VXNlcjE3MDEzNDc0","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/17013474?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/klamike","html_url":"https:\/\/github.com\/klamike","followers_url":"https:\/\/api.github.com\/users\/klamike\/followers","following_url":"https:\/\/api.github.com\/users\/klamike\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/klamike\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/klamike\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/klamike\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/klamike\/orgs","repos_url":"https:\/\/api.github.com\/users\/klamike\/repos","events_url":"https:\/\/api.github.com\/users\/klamike\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/klamike\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7556\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7556\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7554","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7554\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7554\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7554\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7554","id":3043089844,"node_id":"I_kwDODunzps61Yd20","number":7554,"title":"datasets downloads and generates all splits, even though a single split is requested (for dataset with loading script)","user":{"login":"sei-eschwartz","id":50171988,"node_id":"MDQ6VXNlcjUwMTcxOTg4","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/50171988?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/sei-eschwartz","html_url":"https:\/\/github.com\/sei-eschwartz","followers_url":"https:\/\/api.github.com\/users\/sei-eschwartz\/followers","following_url":"https:\/\/api.github.com\/users\/sei-eschwartz\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/sei-eschwartz\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/sei-eschwartz\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/sei-eschwartz\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/sei-eschwartz\/orgs","repos_url":"https:\/\/api.github.com\/users\/sei-eschwartz\/repos","events_url":"https:\/\/api.github.com\/users\/sei-eschwartz\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/sei-eschwartz\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-05-06T14:43:38Z","updated_at":"2025-05-07T14:53:45Z","closed_at":"2025-05-07T14:53:44Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\n`datasets` downloads and generates all splits, even though a single split is requested. [This](https:\/\/huggingface.co\/datasets\/jordiae\/exebench) is the dataset in question. It uses a loading script. I am not 100% sure that this is a bug, because maybe with loading scripts `datasets` must actually process all the splits? But I thought loading scripts were designed to avoid this.\n\n### Steps to reproduce the bug\n\nSee [this notebook](https:\/\/colab.research.google.com\/drive\/14kcXp_hgcdj-kIzK0bCG6taE-CLZPVvq?usp=sharing)\n\nOr:\n```python\nfrom datasets import load_dataset\ndataset = load_dataset('jordiae\/exebench', split='test_synth', trust_remote_code=True)\n```\n\n### Expected behavior\n\nI expected only the `test_synth` split to be downloaded and processed.\n\n### Environment info\n\n- `datasets` version: 3.5.1\n- Platform: Linux-6.1.123+-x86_64-with-glibc2.35\n- Python version: 3.11.12\n- `huggingface_hub` version: 0.30.2\n- PyArrow version: 18.1.0\n- Pandas version: 2.2.2\n- `fsspec` version: 2025.3.0","closed_by":{"login":"sei-eschwartz","id":50171988,"node_id":"MDQ6VXNlcjUwMTcxOTg4","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/50171988?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/sei-eschwartz","html_url":"https:\/\/github.com\/sei-eschwartz","followers_url":"https:\/\/api.github.com\/users\/sei-eschwartz\/followers","following_url":"https:\/\/api.github.com\/users\/sei-eschwartz\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/sei-eschwartz\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/sei-eschwartz\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/sei-eschwartz\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/sei-eschwartz\/orgs","repos_url":"https:\/\/api.github.com\/users\/sei-eschwartz\/repos","events_url":"https:\/\/api.github.com\/users\/sei-eschwartz\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/sei-eschwartz\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7554\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7554\/timeline","performed_via_github_app":null,"state_reason":"duplicate","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7553","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7553\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7553\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7553\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7553","id":3042953907,"node_id":"PR_kwDODunzps6VHUNW","number":7553,"title":"Rebatch arrow iterables before formatted iterable","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-05-06T13:59:58Z","updated_at":"2025-05-07T13:17:41Z","closed_at":"2025-05-06T14:03:42Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7553","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7553","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7553.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7553.patch","merged_at":"2025-05-06T14:03:41Z"},"body":"close https:\/\/github.com\/huggingface\/datasets\/issues\/7538 and https:\/\/github.com\/huggingface\/datasets\/issues\/7475","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7553\/reactions","total_count":1,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7553\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7552","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7552\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7552\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7552\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7552","id":3040258084,"node_id":"PR_kwDODunzps6U-BUv","number":7552,"title":"Enable xet in push to hub","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-05-05T17:02:09Z","updated_at":"2025-05-06T12:42:51Z","closed_at":"2025-05-06T12:42:48Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7552","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7552","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7552.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7552.patch","merged_at":"2025-05-06T12:42:48Z"},"body":"follows https:\/\/github.com\/huggingface\/huggingface_hub\/pull\/3035\r\n\r\nrelated to https:\/\/github.com\/huggingface\/datasets\/issues\/7526","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7552\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7552\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7551","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7551\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7551\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7551\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7551","id":3038114928,"node_id":"I_kwDODunzps61FfRw","number":7551,"title":"Issue with offline mode and partial dataset cached","user":{"login":"nrv","id":353245,"node_id":"MDQ6VXNlcjM1MzI0NQ==","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/353245?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/nrv","html_url":"https:\/\/github.com\/nrv","followers_url":"https:\/\/api.github.com\/users\/nrv\/followers","following_url":"https:\/\/api.github.com\/users\/nrv\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/nrv\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/nrv\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/nrv\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/nrv\/orgs","repos_url":"https:\/\/api.github.com\/users\/nrv\/repos","events_url":"https:\/\/api.github.com\/users\/nrv\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/nrv\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2025-05-04T16:49:37Z","updated_at":"2025-05-13T03:18:43Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nHi, \n\na issue related to #4760 here when loading a single file from a dataset, unable to access it in offline mode afterwards\n\n### Steps to reproduce the bug\n\n```python\nimport os\n# os.environ[\"HF_HUB_OFFLINE\"] = \"1\"\nos.environ[\"HF_TOKEN\"] = \"xxxxxxxxxxxxxx\"\n\nimport datasets\n\ndataset_name = \"uonlp\/CulturaX\"\ndata_files = \"fr\/fr_part_00038.parquet\"\n\nds = datasets.load_dataset(dataset_name, split='train', data_files=data_files)\nprint(f\"Dataset loaded : {ds}\")\n```\nOnce the file has been cached, I rerun with the HF_HUB_OFFLINE activated an get this error : \n```\nValueError: Couldn't find cache for uonlp\/CulturaX for config 'default-1e725f978350254e'\nAvailable configs in the cache: ['default-2935e8cdcc21c613']\n```\n\n### Expected behavior\n\nShould be able to access the previously cached files\n\n### Environment info\n\n- `datasets` version: 3.2.0\n- Platform: Linux-5.4.0-215-generic-x86_64-with-glibc2.31\n- Python version: 3.12.0\n- `huggingface_hub` version: 0.27.0\n- PyArrow version: 19.0.0\n- Pandas version: 2.2.2\n- `fsspec` version: 2024.3.1\n","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7551\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7551\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7550","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7550\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7550\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7550\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7550","id":3037017367,"node_id":"PR_kwDODunzps6UzksN","number":7550,"title":"disable aiohttp depend for python 3.13t free-threading compat","user":{"login":"Qubitium","id":417764,"node_id":"MDQ6VXNlcjQxNzc2NA==","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/417764?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Qubitium","html_url":"https:\/\/github.com\/Qubitium","followers_url":"https:\/\/api.github.com\/users\/Qubitium\/followers","following_url":"https:\/\/api.github.com\/users\/Qubitium\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Qubitium\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Qubitium\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Qubitium\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Qubitium\/orgs","repos_url":"https:\/\/api.github.com\/users\/Qubitium\/repos","events_url":"https:\/\/api.github.com\/users\/Qubitium\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Qubitium\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-05-03T00:28:18Z","updated_at":"2025-05-03T00:28:24Z","closed_at":"2025-05-03T00:28:24Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7550","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7550","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7550.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7550.patch","merged_at":null},"body":null,"closed_by":{"login":"Qubitium","id":417764,"node_id":"MDQ6VXNlcjQxNzc2NA==","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/417764?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Qubitium","html_url":"https:\/\/github.com\/Qubitium","followers_url":"https:\/\/api.github.com\/users\/Qubitium\/followers","following_url":"https:\/\/api.github.com\/users\/Qubitium\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Qubitium\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Qubitium\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Qubitium\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Qubitium\/orgs","repos_url":"https:\/\/api.github.com\/users\/Qubitium\/repos","events_url":"https:\/\/api.github.com\/users\/Qubitium\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Qubitium\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7550\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7550\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7549","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7549\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7549\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7549\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7549","id":3036272015,"node_id":"I_kwDODunzps60-dWP","number":7549,"title":"TypeError: Couldn't cast array of type string to null on webdataset format dataset","user":{"login":"narugo1992","id":117186571,"node_id":"U_kgDOBvwgCw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/117186571?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/narugo1992","html_url":"https:\/\/github.com\/narugo1992","followers_url":"https:\/\/api.github.com\/users\/narugo1992\/followers","following_url":"https:\/\/api.github.com\/users\/narugo1992\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/narugo1992\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/narugo1992\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/narugo1992\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/narugo1992\/orgs","repos_url":"https:\/\/api.github.com\/users\/narugo1992\/repos","events_url":"https:\/\/api.github.com\/users\/narugo1992\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/narugo1992\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-05-02T15:18:07Z","updated_at":"2025-05-02T15:37:05Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\n```python\nfrom datasets import load_dataset\ndataset = load_dataset(\"animetimm\/danbooru-wdtagger-v4-w640-ws-30k\")\n```\n\ngot\n\n```\n File \"\/home\/ubuntu\/miniconda3\/lib\/python3.10\/site-packages\/datasets\/arrow_writer.py\", line 626, in write_batch\n arrays.append(pa.array(typed_sequence))\n File \"pyarrow\/array.pxi\", line 255, in pyarrow.lib.array\n File \"pyarrow\/array.pxi\", line 117, in pyarrow.lib._handle_arrow_array_protocol\n File \"\/home\/ubuntu\/miniconda3\/lib\/python3.10\/site-packages\/datasets\/arrow_writer.py\", line 258, in __arrow_array__\n out = cast_array_to_feature(\n File \"\/home\/ubuntu\/miniconda3\/lib\/python3.10\/site-packages\/datasets\/table.py\", line 1798, in wrapper\n return func(array, *args, **kwargs)\n File \"\/home\/ubuntu\/miniconda3\/lib\/python3.10\/site-packages\/datasets\/table.py\", line 2006, in cast_array_to_feature\n arrays = [\n File \"\/home\/ubuntu\/miniconda3\/lib\/python3.10\/site-packages\/datasets\/table.py\", line 2007, in \n _c(array.field(name) if name in array_fields else null_array, subfeature)\n File \"\/home\/ubuntu\/miniconda3\/lib\/python3.10\/site-packages\/datasets\/table.py\", line 1798, in wrapper\n return func(array, *args, **kwargs)\n File \"\/home\/ubuntu\/miniconda3\/lib\/python3.10\/site-packages\/datasets\/table.py\", line 2066, in cast_array_to_feature\n casted_array_values = _c(array.values, feature.feature)\n File \"\/home\/ubuntu\/miniconda3\/lib\/python3.10\/site-packages\/datasets\/table.py\", line 1798, in wrapper\n return func(array, *args, **kwargs)\n File \"\/home\/ubuntu\/miniconda3\/lib\/python3.10\/site-packages\/datasets\/table.py\", line 2103, in cast_array_to_feature\n return array_cast(\n File \"\/home\/ubuntu\/miniconda3\/lib\/python3.10\/site-packages\/datasets\/table.py\", line 1798, in wrapper\n return func(array, *args, **kwargs)\n File \"\/home\/ubuntu\/miniconda3\/lib\/python3.10\/site-packages\/datasets\/table.py\", line 1949, in array_cast\n raise TypeError(f\"Couldn't cast array of type {_short_str(array.type)} to {_short_str(pa_type)}\")\nTypeError: Couldn't cast array of type string to null\n\nThe above exception was the direct cause of the following exception:\n\nTraceback (most recent call last):\n File \"\", line 1, in \n File \"\/home\/ubuntu\/miniconda3\/lib\/python3.10\/site-packages\/datasets\/load.py\", line 2084, in load_dataset\n builder_instance.download_and_prepare(\n File \"\/home\/ubuntu\/miniconda3\/lib\/python3.10\/site-packages\/datasets\/builder.py\", line 925, in download_and_prepare\n self._download_and_prepare(\n File \"\/home\/ubuntu\/miniconda3\/lib\/python3.10\/site-packages\/datasets\/builder.py\", line 1649, in _download_and_prepare\n super()._download_and_prepare(\n File \"\/home\/ubuntu\/miniconda3\/lib\/python3.10\/site-packages\/datasets\/builder.py\", line 1001, in _download_and_prepare\n self._prepare_split(split_generator, **prepare_split_kwargs)\n File \"\/home\/ubuntu\/miniconda3\/lib\/python3.10\/site-packages\/datasets\/builder.py\", line 1487, in _prepare_split\n for job_id, done, content in self._prepare_split_single(\n File \"\/home\/ubuntu\/miniconda3\/lib\/python3.10\/site-packages\/datasets\/builder.py\", line 1644, in _prepare_split_single\n raise DatasetGenerationError(\"An error occurred while generating the dataset\") from e\ndatasets.exceptions.DatasetGenerationError: An error occurred while generating the dataset\n```\n\n`datasets==3.5.1` whats wrong\n\nits inner json structure is like\n\n```yaml\n features:\n - name: \"image\"\n dtype: \"image\"\n - name: \"json.id\"\n dtype: \"string\"\n - name: \"json.width\"\n dtype: \"int32\"\n - name: \"json.height\"\n dtype: \"int32\"\n - name: \"json.rating\"\n sequence:\n dtype: \"string\"\n - name: \"json.general_tags\"\n sequence:\n dtype: \"string\"\n - name: \"json.character_tags\"\n sequence:\n dtype: \"string\"\n```\n\ni'm 100% sure all the jsons satisfies the abovementioned format.\n\n### Steps to reproduce the bug\n\n```python\nfrom datasets import load_dataset\ndataset = load_dataset(\"animetimm\/danbooru-wdtagger-v4-w640-ws-30k\")\n```\n\n### Expected behavior\n\nload the dataset successfully, with the abovementioned json format and webp images\n\n### Environment info\n\nCopy-and-paste the text below in your GitHub issue.\n\n- `datasets` version: 3.5.1\n- Platform: Linux-6.8.0-52-generic-x86_64-with-glibc2.35\n- Python version: 3.10.16\n- `huggingface_hub` version: 0.30.2\n- PyArrow version: 20.0.0\n- Pandas version: 2.2.3\n- `fsspec` version: 2025.3.0\n","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7549\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7549\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7548","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7548\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7548\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7548\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7548","id":3035568851,"node_id":"I_kwDODunzps607xrT","number":7548,"title":"Python 3.13t (free threads) Compat","user":{"login":"Qubitium","id":417764,"node_id":"MDQ6VXNlcjQxNzc2NA==","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/417764?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Qubitium","html_url":"https:\/\/github.com\/Qubitium","followers_url":"https:\/\/api.github.com\/users\/Qubitium\/followers","following_url":"https:\/\/api.github.com\/users\/Qubitium\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Qubitium\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Qubitium\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Qubitium\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Qubitium\/orgs","repos_url":"https:\/\/api.github.com\/users\/Qubitium\/repos","events_url":"https:\/\/api.github.com\/users\/Qubitium\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Qubitium\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2025-05-02T09:20:09Z","updated_at":"2025-05-12T15:11:32Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nCannot install `datasets` under `python 3.13t` due to dependency on `aiohttp` and aiohttp cannot be built for free-threading python. \n\nThe `free threading` support issue in `aiothttp` is active since August 2024! Ouch.\n\nhttps:\/\/github.com\/aio-libs\/aiohttp\/issues\/8796#issue-2475941784\n\n`pip install dataset`\n\n```bash\n(vm313t) root@gpu-base:~\/GPTQModel# pip install datasets\nWARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError(\"HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)\")': \/simple\/datasets\/ \nCollecting datasets \n Using cached datasets-3.5.1-py3-none-any.whl.metadata (19 kB)\nRequirement already satisfied: filelock in \/root\/vm313t\/lib\/python3.13t\/site-packages (from datasets) (3.18.0)\nRequirement already satisfied: numpy>=1.17 in \/root\/vm313t\/lib\/python3.13t\/site-packages (from datasets) (2.2.5)\nCollecting pyarrow>=15.0.0 (from datasets)\n Using cached pyarrow-20.0.0-cp313-cp313t-manylinux_2_28_x86_64.whl.metadata (3.3 kB)\nCollecting dill<0.3.9,>=0.3.0 (from datasets)\n Using cached dill-0.3.8-py3-none-any.whl.metadata (10 kB)\nCollecting pandas (from datasets)\n Using cached pandas-2.2.3-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (89 kB)\nRequirement already satisfied: requests>=2.32.2 in \/root\/vm313t\/lib\/python3.13t\/site-packages (from datasets) (2.32.3)\nRequirement already satisfied: tqdm>=4.66.3 in \/root\/vm313t\/lib\/python3.13t\/site-packages (from datasets) (4.67.1)\nCollecting xxhash (from datasets)\n Using cached xxhash-3.5.0-cp313-cp313t-linux_x86_64.whl\nCollecting multiprocess<0.70.17 (from datasets)\n Using cached multiprocess-0.70.16-py312-none-any.whl.metadata (7.2 kB)\nCollecting fsspec<=2025.3.0,>=2023.1.0 (from fsspec[http]<=2025.3.0,>=2023.1.0->datasets)\n Using cached fsspec-2025.3.0-py3-none-any.whl.metadata (11 kB)\nCollecting aiohttp (from datasets)\n Using cached aiohttp-3.11.18.tar.gz (7.7 MB)\n Installing build dependencies ... done\n Getting requirements to build wheel ... done\n Preparing metadata (pyproject.toml) ... done\nRequirement already satisfied: huggingface-hub>=0.24.0 in \/root\/vm313t\/lib\/python3.13t\/site-packages (from datasets) (0.30.2)\nRequirement already satisfied: packaging in \/root\/vm313t\/lib\/python3.13t\/site-packages (from datasets) (25.0)\nRequirement already satisfied: pyyaml>=5.1 in \/root\/vm313t\/lib\/python3.13t\/site-packages (from datasets) (6.0.2)\nCollecting aiohappyeyeballs>=2.3.0 (from aiohttp->datasets)\n Using cached aiohappyeyeballs-2.6.1-py3-none-any.whl.metadata (5.9 kB)\nCollecting aiosignal>=1.1.2 (from aiohttp->datasets)\n Using cached aiosignal-1.3.2-py2.py3-none-any.whl.metadata (3.8 kB)\nCollecting attrs>=17.3.0 (from aiohttp->datasets)\n Using cached attrs-25.3.0-py3-none-any.whl.metadata (10 kB)\nCollecting frozenlist>=1.1.1 (from aiohttp->datasets)\n Using cached frozenlist-1.6.0-cp313-cp313t-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (16 kB)\nCollecting multidict<7.0,>=4.5 (from aiohttp->datasets)\n Using cached multidict-6.4.3-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (5.3 kB)\nCollecting propcache>=0.2.0 (from aiohttp->datasets)\n Using cached propcache-0.3.1-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (10 kB)\nCollecting yarl<2.0,>=1.17.0 (from aiohttp->datasets)\n Using cached yarl-1.20.0-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (72 kB)\nRequirement already satisfied: idna>=2.0 in \/root\/vm313t\/lib\/python3.13t\/site-packages (from yarl<2.0,>=1.17.0->aiohttp->datasets) (3.10)\nRequirement already satisfied: typing-extensions>=3.7.4.3 in \/root\/vm313t\/lib\/python3.13t\/site-packages (from huggingface-hub>=0.24.0->datasets) (4.13.2)\nRequirement already satisfied: charset-normalizer<4,>=2 in \/root\/vm313t\/lib\/python3.13t\/site-packages (from requests>=2.32.2->datasets) (3.4.1)\nRequirement already satisfied: urllib3<3,>=1.21.1 in \/root\/vm313t\/lib\/python3.13t\/site-packages (from requests>=2.32.2->datasets) (2.4.0)\nRequirement already satisfied: certifi>=2017.4.17 in \/root\/vm313t\/lib\/python3.13t\/site-packages (from requests>=2.32.2->datasets) (2025.4.26)\nCollecting python-dateutil>=2.8.2 (from pandas->datasets)\n Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl.metadata (8.4 kB)\nCollecting pytz>=2020.1 (from pandas->datasets)\n Using cached pytz-2025.2-py2.py3-none-any.whl.metadata (22 kB)\nCollecting tzdata>=2022.7 (from pandas->datasets)\n Using cached tzdata-2025.2-py2.py3-none-any.whl.metadata (1.4 kB)\nCollecting six>=1.5 (from python-dateutil>=2.8.2->pandas->datasets)\n Using cached six-1.17.0-py2.py3-none-any.whl.metadata (1.7 kB)\nUsing cached datasets-3.5.1-py3-none-any.whl (491 kB)\nUsing cached dill-0.3.8-py3-none-any.whl (116 kB)\nUsing cached fsspec-2025.3.0-py3-none-any.whl (193 kB)\nUsing cached multiprocess-0.70.16-py312-none-any.whl (146 kB)\nUsing cached multidict-6.4.3-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (220 kB)\nUsing cached yarl-1.20.0-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (404 kB)\nUsing cached aiohappyeyeballs-2.6.1-py3-none-any.whl (15 kB)\nUsing cached aiosignal-1.3.2-py2.py3-none-any.whl (7.6 kB)\nUsing cached attrs-25.3.0-py3-none-any.whl (63 kB)\nUsing cached frozenlist-1.6.0-cp313-cp313t-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (385 kB)\nUsing cached propcache-0.3.1-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (282 kB)\nUsing cached pyarrow-20.0.0-cp313-cp313t-manylinux_2_28_x86_64.whl (42.2 MB)\nUsing cached pandas-2.2.3-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.9 MB)\nUsing cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB)\nUsing cached pytz-2025.2-py2.py3-none-any.whl (509 kB)\nUsing cached six-1.17.0-py2.py3-none-any.whl (11 kB)\nUsing cached tzdata-2025.2-py2.py3-none-any.whl (347 kB)\nBuilding wheels for collected packages: aiohttp\n Building wheel for aiohttp (pyproject.toml) ... error\n error: subprocess-exited-with-error\n \n \u00d7 Building wheel for aiohttp (pyproject.toml) did not run successfully.\n \u2502 exit code: 1\n \u2570\u2500> [156 lines of output]\n *********************\n * Accelerated build *\n *********************\n \/tmp\/pip-build-env-wjqi8_7w\/overlay\/lib\/python3.13t\/site-packages\/setuptools\/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.\n !!\n \n ********************************************************************************\n Please consider removing the following classifiers in favor of a SPDX license expression:\n \n License :: OSI Approved :: Apache Software License\n \n See https:\/\/packaging.python.org\/en\/latest\/guides\/writing-pyproject-toml\/#license for details.\n ********************************************************************************\n \n !!\n self._finalize_license_expression()\n running bdist_wheel\n running build\n running build_py\n creating build\/lib.linux-x86_64-cpython-313t\/aiohttp\n copying aiohttp\/typedefs.py -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\n copying aiohttp\/http_parser.py -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\n copying aiohttp\/client_reqrep.py -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\n copying aiohttp\/client_ws.py -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\n copying aiohttp\/web_app.py -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\n copying aiohttp\/http_websocket.py -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\n copying aiohttp\/resolver.py -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\n copying aiohttp\/tracing.py -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\n copying aiohttp\/http_writer.py -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\n copying aiohttp\/http_exceptions.py -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\n copying aiohttp\/log.py -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\n copying aiohttp\/__init__.py -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\n copying aiohttp\/web_runner.py -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\n copying aiohttp\/worker.py -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\n copying aiohttp\/connector.py -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\n copying aiohttp\/client_exceptions.py -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\n copying aiohttp\/web_middlewares.py -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\n copying aiohttp\/web.py -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\n copying aiohttp\/tcp_helpers.py -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\n copying aiohttp\/web_response.py -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\n copying aiohttp\/web_server.py -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\n copying aiohttp\/web_request.py -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\n copying aiohttp\/web_urldispatcher.py -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\n copying aiohttp\/web_exceptions.py -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\n copying aiohttp\/formdata.py -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\n copying aiohttp\/streams.py -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\n copying aiohttp\/multipart.py -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\n copying aiohttp\/web_routedef.py -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\n copying aiohttp\/web_ws.py -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\n copying aiohttp\/payload.py -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\n copying aiohttp\/client_proto.py -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\n copying aiohttp\/web_log.py -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\n copying aiohttp\/base_protocol.py -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\n copying aiohttp\/payload_streamer.py -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\n copying aiohttp\/http.py -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\n copying aiohttp\/web_fileresponse.py -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\n copying aiohttp\/test_utils.py -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\n copying aiohttp\/client.py -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\n copying aiohttp\/cookiejar.py -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\n copying aiohttp\/compression_utils.py -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\n copying aiohttp\/hdrs.py -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\n copying aiohttp\/helpers.py -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\n copying aiohttp\/pytest_plugin.py -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\n copying aiohttp\/web_protocol.py -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\n copying aiohttp\/abc.py -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\n creating build\/lib.linux-x86_64-cpython-313t\/aiohttp\/_websocket\n copying aiohttp\/_websocket\/__init__.py -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\/_websocket\n copying aiohttp\/_websocket\/writer.py -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\/_websocket\n copying aiohttp\/_websocket\/models.py -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\/_websocket\n copying aiohttp\/_websocket\/reader.py -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\/_websocket\n copying aiohttp\/_websocket\/reader_c.py -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\/_websocket\n copying aiohttp\/_websocket\/helpers.py -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\/_websocket\n copying aiohttp\/_websocket\/reader_py.py -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\/_websocket\n running egg_info\n writing aiohttp.egg-info\/PKG-INFO\n writing dependency_links to aiohttp.egg-info\/dependency_links.txt\n writing requirements to aiohttp.egg-info\/requires.txt\n writing top-level names to aiohttp.egg-info\/top_level.txt\n reading manifest file 'aiohttp.egg-info\/SOURCES.txt'\n reading manifest template 'MANIFEST.in'\n warning: no files found matching 'aiohttp' anywhere in distribution\n warning: no files found matching '*.pyi' anywhere in distribution\n warning: no previously-included files matching '*.pyc' found anywhere in distribution\n warning: no previously-included files matching '*.pyd' found anywhere in distribution\n warning: no previously-included files matching '*.so' found anywhere in distribution\n warning: no previously-included files matching '*.lib' found anywhere in distribution\n warning: no previously-included files matching '*.dll' found anywhere in distribution\n warning: no previously-included files matching '*.a' found anywhere in distribution\n warning: no previously-included files matching '*.obj' found anywhere in distribution\n warning: no previously-included files found matching 'aiohttp\/*.html'\n no previously-included directories found matching 'docs\/_build'\n adding license file 'LICENSE.txt'\n writing manifest file 'aiohttp.egg-info\/SOURCES.txt'\n copying aiohttp\/_cparser.pxd -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\n copying aiohttp\/_find_header.pxd -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\n copying aiohttp\/_headers.pxi -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\n copying aiohttp\/_http_parser.pyx -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\n copying aiohttp\/_http_writer.pyx -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\n copying aiohttp\/py.typed -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\n creating build\/lib.linux-x86_64-cpython-313t\/aiohttp\/.hash\n copying aiohttp\/.hash\/_cparser.pxd.hash -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\/.hash\n copying aiohttp\/.hash\/_find_header.pxd.hash -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\/.hash\n copying aiohttp\/.hash\/_http_parser.pyx.hash -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\/.hash\n copying aiohttp\/.hash\/_http_writer.pyx.hash -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\/.hash\n copying aiohttp\/.hash\/hdrs.py.hash -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\/.hash\n copying aiohttp\/_websocket\/mask.pxd -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\/_websocket\n copying aiohttp\/_websocket\/mask.pyx -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\/_websocket\n copying aiohttp\/_websocket\/reader_c.pxd -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\/_websocket\n creating build\/lib.linux-x86_64-cpython-313t\/aiohttp\/_websocket\/.hash\n copying aiohttp\/_websocket\/.hash\/mask.pxd.hash -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\/_websocket\/.hash\n copying aiohttp\/_websocket\/.hash\/mask.pyx.hash -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\/_websocket\/.hash\n copying aiohttp\/_websocket\/.hash\/reader_c.pxd.hash -> build\/lib.linux-x86_64-cpython-313t\/aiohttp\/_websocket\/.hash\n running build_ext\n building 'aiohttp._websocket.mask' extension\n creating build\/temp.linux-x86_64-cpython-313t\/aiohttp\/_websocket\n x86_64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fPIC -I\/root\/vm313t\/include -I\/usr\/include\/python3.13t -c aiohttp\/_websocket\/mask.c -o build\/temp.linux-x86_64-cpython-313t\/aiohttp\/_websocket\/mask.o\n aiohttp\/_websocket\/mask.c:1864:80: error: unknown type name \u2018__pyx_vectorcallfunc\u2019; did you mean \u2018vectorcallfunc\u2019?\n 1864 | static CYTHON_INLINE PyObject *__Pyx_PyVectorcall_FastCallDict(PyObject *func, __pyx_vectorcallfunc vc, PyObject *const *args, size_t nargs, PyObject *kw);\n | ^~~~~~~~~~~~~~~~~~~~\n | vectorcallfunc\n aiohttp\/_websocket\/mask.c: In function \u2018__pyx_f_7aiohttp_10_websocket_4mask__websocket_mask_cython\u2019:\n aiohttp\/_websocket\/mask.c:2905:3: warning: \u2018Py_OptimizeFlag\u2019 is deprecated [-Wdeprecated-declarations]\n 2905 | if (unlikely(__pyx_assertions_enabled())) {\n | ^~\n In file included from \/usr\/include\/python3.13t\/Python.h:76,\n from aiohttp\/_websocket\/mask.c:16:\n \/usr\/include\/python3.13t\/cpython\/pydebug.h:13:37: note: declared here\n 13 | Py_DEPRECATED(3.12) PyAPI_DATA(int) Py_OptimizeFlag;\n | ^~~~~~~~~~~~~~~\n aiohttp\/_websocket\/mask.c: At top level:\n aiohttp\/_websocket\/mask.c:4846:69: error: unknown type name \u2018__pyx_vectorcallfunc\u2019; did you mean \u2018vectorcallfunc\u2019?\n 4846 | static PyObject *__Pyx_PyVectorcall_FastCallDict_kw(PyObject *func, __pyx_vectorcallfunc vc, PyObject *const *args, size_t nargs, PyObject *kw)\n | ^~~~~~~~~~~~~~~~~~~~\n | vectorcallfunc\n aiohttp\/_websocket\/mask.c:4891:80: error: unknown type name \u2018__pyx_vectorcallfunc\u2019; did you mean \u2018vectorcallfunc\u2019?\n 4891 | static CYTHON_INLINE PyObject *__Pyx_PyVectorcall_FastCallDict(PyObject *func, __pyx_vectorcallfunc vc, PyObject *const *args, size_t nargs, PyObject *kw)\n | ^~~~~~~~~~~~~~~~~~~~\n | vectorcallfunc\n aiohttp\/_websocket\/mask.c: In function \u2018__Pyx_CyFunction_CallAsMethod\u2019:\n aiohttp\/_websocket\/mask.c:5580:6: error: unknown type name \u2018__pyx_vectorcallfunc\u2019; did you mean \u2018vectorcallfunc\u2019?\n 5580 | __pyx_vectorcallfunc vc = __Pyx_CyFunction_func_vectorcall(cyfunc);\n | ^~~~~~~~~~~~~~~~~~~~\n | vectorcallfunc\n aiohttp\/_websocket\/mask.c:1954:45: warning: initialization of \u2018int\u2019 from \u2018vectorcallfunc\u2019 {aka \u2018struct _object * (*)(struct _object *, struct _object * const*, long unsigned int, struct _object *)\u2019} makes integer from pointer without a cast [-Wint-conversion]\n 1954 | #define __Pyx_CyFunction_func_vectorcall(f) (((PyCFunctionObject*)f)->vectorcall)\n | ^\n aiohttp\/_websocket\/mask.c:5580:32: note: in expansion of macro \u2018__Pyx_CyFunction_func_vectorcall\u2019\n 5580 | __pyx_vectorcallfunc vc = __Pyx_CyFunction_func_vectorcall(cyfunc);\n | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n aiohttp\/_websocket\/mask.c:5583:16: warning: implicit declaration of function \u2018__Pyx_PyVectorcall_FastCallDict\u2019 [-Wimplicit-function-declaration]\n 5583 | return __Pyx_PyVectorcall_FastCallDict(func, vc, &PyTuple_GET_ITEM(args, 0), (size_t)PyTuple_GET_SIZE(args), kw);\n | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n aiohttp\/_websocket\/mask.c:5583:16: warning: returning \u2018int\u2019 from a function with return type \u2018PyObject *\u2019 {aka \u2018struct _object *\u2019} makes pointer from integer without a cast [-Wint-conversion]\n 5583 | return __Pyx_PyVectorcall_FastCallDict(func, vc, &PyTuple_GET_ITEM(args, 0), (size_t)PyTuple_GET_SIZE(args), kw);\n | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n error: command '\/usr\/bin\/x86_64-linux-gnu-gcc' failed with exit code 1\n [end of output]\n \n note: This error originates from a subprocess, and is likely not a problem with pip.\n ERROR: Failed building wheel for aiohttp\nFailed to build aiohttp \nERROR: Failed to build installable wheels for some pyproject.toml based projects (aiohttp)\n```\n\n### Steps to reproduce the bug\n\nSee above\n\n### Expected behavior\n\nInstall\n\n### Environment info\n\nUbuntu 24.04","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7548\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7548\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7547","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7547\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7547\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7547\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7547","id":3034830291,"node_id":"PR_kwDODunzps6UsTuF","number":7547,"title":"Avoid global umask for setting file mode.","user":{"login":"ryan-clancy","id":1282383,"node_id":"MDQ6VXNlcjEyODIzODM=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/1282383?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ryan-clancy","html_url":"https:\/\/github.com\/ryan-clancy","followers_url":"https:\/\/api.github.com\/users\/ryan-clancy\/followers","following_url":"https:\/\/api.github.com\/users\/ryan-clancy\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ryan-clancy\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ryan-clancy\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ryan-clancy\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ryan-clancy\/orgs","repos_url":"https:\/\/api.github.com\/users\/ryan-clancy\/repos","events_url":"https:\/\/api.github.com\/users\/ryan-clancy\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ryan-clancy\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-05-01T22:24:24Z","updated_at":"2025-05-06T13:05:00Z","closed_at":"2025-05-06T13:05:00Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7547","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7547","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7547.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7547.patch","merged_at":"2025-05-06T13:05:00Z"},"body":"This PR updates the method for setting the permissions on `cache_path` after calling `shutil.move`. The call to `shutil.move` may not preserve permissions if the source and destination are on different filesystems. Reading and resetting umask can cause race conditions, so directly read what permissions were set for the `temp_file` instead.\r\n\r\nThis fixes https:\/\/github.com\/huggingface\/datasets\/issues\/7536.","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7547\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7547\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7546","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7546\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7546\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7546\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7546","id":3034018298,"node_id":"I_kwDODunzps6013H6","number":7546,"title":"Large memory use when loading large datasets to a ZFS pool","user":{"login":"FredHaa","id":6875946,"node_id":"MDQ6VXNlcjY4NzU5NDY=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/6875946?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/FredHaa","html_url":"https:\/\/github.com\/FredHaa","followers_url":"https:\/\/api.github.com\/users\/FredHaa\/followers","following_url":"https:\/\/api.github.com\/users\/FredHaa\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/FredHaa\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/FredHaa\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/FredHaa\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/FredHaa\/orgs","repos_url":"https:\/\/api.github.com\/users\/FredHaa\/repos","events_url":"https:\/\/api.github.com\/users\/FredHaa\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/FredHaa\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2025-05-01T14:43:47Z","updated_at":"2025-05-13T13:30:09Z","closed_at":"2025-05-13T13:29:53Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nWhen I load large parquet based datasets from the hub like `MLCommons\/peoples_speech` using `load_dataset`, all my memory (500GB) is used and isn't released after loading, meaning that the process is terminated by the kernel if I try to load an additional dataset. This makes it impossible to train models using multiple large datasets.\n\n### Steps to reproduce the bug\n\n`uv run --with datasets==3.5.1 python`\n\n```python\nfrom datasets import load_dataset\nload_dataset('MLCommons\/peoples_speech', 'clean')\nload_dataset('mozilla-foundation\/common_voice_17_0', 'en')\n```\n\n### Expected behavior\n\nI would expect that a lot less than 500GB of RAM would be required to load the dataset, or at least that the RAM usage would be cleared as soon as the dataset is loaded (and thus reside as a memory mapped file) such that other datasets can be loaded.\n\n### Environment info\n\nI am currently using the latest datasets==3.5.1 but I have had the same problem with multiple other versions.","closed_by":{"login":"FredHaa","id":6875946,"node_id":"MDQ6VXNlcjY4NzU5NDY=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/6875946?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/FredHaa","html_url":"https:\/\/github.com\/FredHaa","followers_url":"https:\/\/api.github.com\/users\/FredHaa\/followers","following_url":"https:\/\/api.github.com\/users\/FredHaa\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/FredHaa\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/FredHaa\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/FredHaa\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/FredHaa\/orgs","repos_url":"https:\/\/api.github.com\/users\/FredHaa\/repos","events_url":"https:\/\/api.github.com\/users\/FredHaa\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/FredHaa\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7546\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7546\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7545","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7545\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7545\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7545\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7545","id":3031617547,"node_id":"I_kwDODunzps60stAL","number":7545,"title":"Networked Pull Through Cache","user":{"login":"wrmedford","id":8764173,"node_id":"MDQ6VXNlcjg3NjQxNzM=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8764173?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/wrmedford","html_url":"https:\/\/github.com\/wrmedford","followers_url":"https:\/\/api.github.com\/users\/wrmedford\/followers","following_url":"https:\/\/api.github.com\/users\/wrmedford\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/wrmedford\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/wrmedford\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/wrmedford\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/wrmedford\/orgs","repos_url":"https:\/\/api.github.com\/users\/wrmedford\/repos","events_url":"https:\/\/api.github.com\/users\/wrmedford\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/wrmedford\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-04-30T15:16:33Z","updated_at":"2025-04-30T15:16:33Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nIntroduce a HF_DATASET_CACHE_NETWORK_LOCATION configuration (e.g. an environment variable) together with a companion network cache service.\n\nEnable a three-tier cache lookup for datasets:\n\n1. Local on-disk cache\n2. Configurable network cache proxy\n3. Official Hugging Face Hub\n\n### Motivation\n\n- Distributed training & ephemeral jobs: In high-performance or containerized clusters, relying solely on a local disk cache either becomes a streaming bottleneck or incurs a heavy cold-start penalty as each job must re-download datasets.\n- Traffic & cost reduction: A pull-through network cache lets multiple consumers share a common cache layer, reducing duplicate downloads from the Hub and lowering egress costs.\n- Better streaming adoption: By offloading repeat dataset pulls to a locally managed cache proxy, streaming workloads can achieve higher throughput and more predictable latency.\n- Proven pattern: Similar proxy-cache solutions (e.g. Harbor\u2019s Proxy Cache for Docker images) have demonstrated reliability and performance at scale: https:\/\/goharbor.io\/docs\/2.1.0\/administration\/configure-proxy-cache\/\n\n### Your contribution\n\nI\u2019m happy to draft the initial PR for adding HF_DATASET_CACHE_NETWORK_LOCATION support in datasets and sketch out a minimal cache-service prototype.\n\nI have limited bandwidth so I would be looking for collaborators if anyone else is interested. ","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7545\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7545\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7544","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7544\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7544\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7544\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7544","id":3027024285,"node_id":"PR_kwDODunzps6UR4Nn","number":7544,"title":"Add try_original_type to DatasetDict.map","user":{"login":"yoshitomo-matsubara","id":11156001,"node_id":"MDQ6VXNlcjExMTU2MDAx","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/11156001?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/yoshitomo-matsubara","html_url":"https:\/\/github.com\/yoshitomo-matsubara","followers_url":"https:\/\/api.github.com\/users\/yoshitomo-matsubara\/followers","following_url":"https:\/\/api.github.com\/users\/yoshitomo-matsubara\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/yoshitomo-matsubara\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/yoshitomo-matsubara\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/yoshitomo-matsubara\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/yoshitomo-matsubara\/orgs","repos_url":"https:\/\/api.github.com\/users\/yoshitomo-matsubara\/repos","events_url":"https:\/\/api.github.com\/users\/yoshitomo-matsubara\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/yoshitomo-matsubara\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2025-04-29T04:39:44Z","updated_at":"2025-05-05T14:42:49Z","closed_at":"2025-05-05T14:42:49Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7544","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7544","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7544.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7544.patch","merged_at":"2025-05-05T14:42:49Z"},"body":"This PR resolves #7472 for DatasetDict \r\n\r\nThe previously merged PR #7483 added `try_original_type` to ArrowDataset, but DatasetDict misses `try_original_type`\r\n\r\nCc: @lhoestq ","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7544\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7544\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7543","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7543\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7543\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7543\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7543","id":3026867706,"node_id":"I_kwDODunzps60alX6","number":7543,"title":"The memory-disk mapping failure issue of the map function\uff08resolved, but there are some suggestions.\uff09","user":{"login":"jxma20","id":76415358,"node_id":"MDQ6VXNlcjc2NDE1MzU4","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/76415358?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/jxma20","html_url":"https:\/\/github.com\/jxma20","followers_url":"https:\/\/api.github.com\/users\/jxma20\/followers","following_url":"https:\/\/api.github.com\/users\/jxma20\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/jxma20\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/jxma20\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/jxma20\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/jxma20\/orgs","repos_url":"https:\/\/api.github.com\/users\/jxma20\/repos","events_url":"https:\/\/api.github.com\/users\/jxma20\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/jxma20\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-04-29T03:04:59Z","updated_at":"2025-04-30T02:22:17Z","closed_at":"2025-04-30T02:22:17Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\n## bug\nWhen the map function processes a large dataset, it temporarily stores the data in a cache file on the disk. After the data is stored, the memory occupied by it is released. Therefore, when using the map function to process a large-scale dataset, only a dataset space of the size of `writer_batch_size` will be occupied in memory.\n\nHowever, I found that the map function does not actually reduce memory usage when I used it. At first, I thought there was a bug in the program, causing a memory leak\u2014meaning the memory was not released after the data was stored in the cache. But later, I used a Linux command to check for recently modified files during program execution and found that no new files were created or modified. This indicates that the program did not store the dataset in the disk cache.\n## bug solved\nAfter modifying the parameters of the map function multiple times, I discovered the `cache_file_name` parameter. By changing it, the cache file can be stored in the specified directory. After making this change, I noticed that the cache file appeared. Initially, I found this quite incredible, but then I wondered if the cache file might have failed to be stored in a certain folder. This could be related to the fact that I don't have root privileges.\n\nSo, I delved into the source code of the map function to find out where the cache file would be stored by default. Eventually, I found the function `def _get_cache_file_path(self, fingerprint):`, which automatically generates the storage path for the cache file. The output was as follows: `\/tmp\/hf_datasets-j5qco9ug\/cache-f2830487643b9cc2.arrow`. My hypothesis was confirmed: the lack of root privileges indeed prevented the cache file from being stored, which in turn prevented the release of memory. Therefore, changing the storage location to a folder where I have write access resolved the issue.\n\n### Steps to reproduce the bug\n\nmy code\n`train_data = train_data.map(process_fun, remove_columns=['image_name', 'question_type', 'concern', 'question', 'candidate_answers', 'answer'])`\n\n### Expected behavior\n\nAlthough my bug has been resolved, it still took me nearly a week to search for relevant information and debug the program. However, if a warning or error message about insufficient cache file write permissions could be provided during program execution, I might have been able to identify the cause more quickly. Therefore, I hope this aspect can be improved. I am documenting this bug here so that friends who encounter similar issues can solve their problems in a timely manner.\n\n### Environment info\n\npython: 3.10.15\ndatasets: 3.5.0","closed_by":{"login":"jxma20","id":76415358,"node_id":"MDQ6VXNlcjc2NDE1MzU4","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/76415358?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/jxma20","html_url":"https:\/\/github.com\/jxma20","followers_url":"https:\/\/api.github.com\/users\/jxma20\/followers","following_url":"https:\/\/api.github.com\/users\/jxma20\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/jxma20\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/jxma20\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/jxma20\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/jxma20\/orgs","repos_url":"https:\/\/api.github.com\/users\/jxma20\/repos","events_url":"https:\/\/api.github.com\/users\/jxma20\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/jxma20\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7543\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7543\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7542","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7542\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7542\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7542\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7542","id":3025054630,"node_id":"PR_kwDODunzps6ULHxo","number":7542,"title":"set dev version","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-04-28T14:03:48Z","updated_at":"2025-04-28T14:08:37Z","closed_at":"2025-04-28T14:04:00Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7542","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7542","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7542.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7542.patch","merged_at":"2025-04-28T14:04:00Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7542\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7542\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7541","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7541\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7541\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7541\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7541","id":3025045919,"node_id":"PR_kwDODunzps6ULF7F","number":7541,"title":"release: 3.5.1","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-04-28T14:00:59Z","updated_at":"2025-04-28T14:03:38Z","closed_at":"2025-04-28T14:01:54Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7541","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7541","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7541.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7541.patch","merged_at":"2025-04-28T14:01:54Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7541\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7541\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7540","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7540\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7540\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7540\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7540","id":3024862966,"node_id":"PR_kwDODunzps6UKe6T","number":7540,"title":"support pyarrow 20","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-04-28T13:01:11Z","updated_at":"2025-04-28T13:23:53Z","closed_at":"2025-04-28T13:23:52Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7540","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7540","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7540.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7540.patch","merged_at":"2025-04-28T13:23:52Z"},"body":"fix\r\n\r\n```\r\nTypeError: ArrayExtensionArray.to_pylist() got an unexpected keyword argument 'maps_as_pydicts'\r\n```","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7540\/reactions","total_count":1,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":1,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7540\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7539","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7539\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7539\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7539\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7539","id":3023311163,"node_id":"PR_kwDODunzps6UFQ0W","number":7539,"title":"Fix IterableDataset state_dict shard_example_idx counting","user":{"login":"Harry-Yang0518","id":129883215,"node_id":"U_kgDOB73cTw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/129883215?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Harry-Yang0518","html_url":"https:\/\/github.com\/Harry-Yang0518","followers_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/followers","following_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/orgs","repos_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/repos","events_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-04-27T20:41:18Z","updated_at":"2025-05-06T14:24:25Z","closed_at":"2025-05-06T14:24:24Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7539","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7539","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7539.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7539.patch","merged_at":null},"body":"# Fix IterableDataset's state_dict shard_example_idx reporting\r\n\r\n## Description\r\n\r\nThis PR fixes issue #7475 where the `shard_example_idx` value in `IterableDataset`'s `state_dict()` always equals the number of samples in a shard, even if only a few examples have been consumed.\r\n\r\nThe issue is in the `_iter_arrow` method of the `ArrowExamplesIterable` class where it updates the `shard_example_idx` state by the full length of the batch (`len(pa_table)`) even when we're only partway through processing the examples. \r\n\r\n## Changes\r\n\r\nModified the `_iter_arrow` method of `ArrowExamplesIterable` to:\r\n1. Track the actual number of examples processed\r\n2. Only increment the `shard_example_idx` by the number of examples actually yielded\r\n3. Handle partial batches correctly\r\n\r\n## How to Test\r\n\r\nI've included a simple test case that demonstrates the fix:\r\n\r\n```python\r\nfrom datasets import Dataset\r\n\r\n# Create a test dataset\r\nds = Dataset.from_dict({\"a\": range(6)}).to_iterable_dataset(num_shards=1)\r\n\r\n# Iterate through part of the dataset\r\nfor idx, example in enumerate(ds):\r\n print(example)\r\n if idx == 2: # Stop after 3 examples (0, 1, 2)\r\n state_dict = ds.state_dict()\r\n print(\"Checkpoint state_dict:\", state_dict)\r\n break\r\n\r\n# Before the fix, the output would show shard_example_idx: 6\r\n# After the fix, it shows shard_example_idx: 3, correctly reflecting the 3 processed examples\r\n```\r\n\r\n## Implementation Details\r\n\r\n1. Added logic to track the number of examples actually seen in the current shard\r\n2. Modified the state update to only count examples actually yielded\r\n3. Improved handling of partial batches and skipped examples\r\n\r\nThis fix ensures that checkpointing and resuming works correctly with exactly the expected number of examples, rather than skipping ahead to the end of the batch.","closed_by":{"login":"Harry-Yang0518","id":129883215,"node_id":"U_kgDOB73cTw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/129883215?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Harry-Yang0518","html_url":"https:\/\/github.com\/Harry-Yang0518","followers_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/followers","following_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/orgs","repos_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/repos","events_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7539\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7539\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7538","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7538\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7538\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7538\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7538","id":3023280056,"node_id":"I_kwDODunzps60M5e4","number":7538,"title":"`IterableDataset` drops samples when resuming from a checkpoint","user":{"login":"mariosasko","id":47462742,"node_id":"MDQ6VXNlcjQ3NDYyNzQy","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/47462742?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/mariosasko","html_url":"https:\/\/github.com\/mariosasko","followers_url":"https:\/\/api.github.com\/users\/mariosasko\/followers","following_url":"https:\/\/api.github.com\/users\/mariosasko\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/mariosasko\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/mariosasko\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/mariosasko\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/mariosasko\/orgs","repos_url":"https:\/\/api.github.com\/users\/mariosasko\/repos","events_url":"https:\/\/api.github.com\/users\/mariosasko\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/mariosasko\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892857,"node_id":"MDU6TGFiZWwxOTM1ODkyODU3","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/bug","name":"bug","color":"d73a4a","default":true,"description":"Something isn't working"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-04-27T19:34:49Z","updated_at":"2025-05-06T14:04:05Z","closed_at":"2025-05-06T14:03:42Z","author_association":"COLLABORATOR","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"When resuming from a checkpoint, `IterableDataset` will drop samples if `num_shards % world_size == 0` and the underlying example supports `iter_arrow` and needs to be formatted. \n\nIn that case, the `FormattedExamplesIterable` fetches a batch of samples from the child iterable's `iter_arrow` and yields them one by one (after formatting). However, the child increments the `shard_example_idx` counter (in its `iter_arrow`) before returning the batch for the whole batch size, which leads to a portion of samples being skipped if the iteration (of the parent iterable) is stopped mid-batch. \n\nPerhaps one way to avoid this would be by signalling the child iterable which samples (within the chunk) are processed by the parent and which are not, so that it can adjust the `shard_example_idx` counter accordingly. This would also mean the chunk needs to be sliced when resuming, but this is straightforward to implement.\n\nThe following is a minimal reproducer of the bug:\n```python\nfrom datasets import Dataset\nfrom datasets.distributed import split_dataset_by_node\n\nds = Dataset.from_dict({\"n\": list(range(24))})\nds = ds.to_iterable_dataset(num_shards=4)\n\nworld_size = 4\nrank = 0 \nds_rank = split_dataset_by_node(ds, rank, world_size)\n\nit = iter(ds_rank)\nexamples = []\nfor idx, example in enumerate(it):\n examples.append(example)\n if idx == 2:\n state_dict = ds_rank.state_dict()\n break\n\nds_rank.load_state_dict(state_dict)\nit_resumed = iter(ds_rank)\nexamples_resumed = examples[:]\n\nfor example in it:\n examples.append(example)\n\nfor example in it_resumed:\n examples_resumed.append(example)\n\nprint(\"ORIGINAL ITER EXAMPLES:\", examples)\nprint(\"RESUMED ITER EXAMPLES:\", examples_resumed)\n```","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7538\/reactions","total_count":1,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7538\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7537","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7537\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7537\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7537\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7537","id":3018792966,"node_id":"I_kwDODunzps6z7yAG","number":7537,"title":"`datasets.map(..., num_proc=4)` multi-processing fails","user":{"login":"faaany","id":24477841,"node_id":"MDQ6VXNlcjI0NDc3ODQx","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/24477841?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/faaany","html_url":"https:\/\/github.com\/faaany","followers_url":"https:\/\/api.github.com\/users\/faaany\/followers","following_url":"https:\/\/api.github.com\/users\/faaany\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/faaany\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/faaany\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/faaany\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/faaany\/orgs","repos_url":"https:\/\/api.github.com\/users\/faaany\/repos","events_url":"https:\/\/api.github.com\/users\/faaany\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/faaany\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-04-25T01:53:47Z","updated_at":"2025-05-06T13:12:08Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"The following code fails in python 3.11+ \n\n```python\ntokenized_datasets = datasets.map(tokenize_function, batched=True, num_proc=4, remove_columns=[\"text\"]) \n```\nError log:\n```bash\nTraceback (most recent call last):\nFile \"\/usr\/local\/lib\/python3.12\/dist-packages\/multiprocess\/process.py\", line 315, in _bootstrap\nself.run()\nFile \"\/usr\/local\/lib\/python3.12\/dist-packages\/multiprocess\/process.py\", line 108, in run\nself._target(*self._args, **self._kwargs)\nFile \"\/usr\/local\/lib\/python3.12\/dist-packages\/multiprocess\/pool.py\", line 114, in worker\ntask = get()\n^^^^^\nFile \"\/usr\/local\/lib\/python3.12\/dist-packages\/multiprocess\/queues.py\", line 371, in get\nreturn _ForkingPickler.loads(res)\n^^^^^^^^^^^^^^^^^^^^^^^^^^\nFile \"\/usr\/local\/lib\/python3.12\/dist-packages\/dill\/_dill.py\", line 327, in loads\nreturn load(file, ignore, **kwds)\n^^^^^^^^^^^^^^^^^^^^^^^^^^\nFile \"\/usr\/local\/lib\/python3.12\/dist-packages\/dill\/_dill.py\", line 313, in load\nreturn Unpickler(file, ignore=ignore, **kwds).load()\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nFile \"\/usr\/local\/lib\/python3.12\/dist-packages\/dill\/_dill.py\", line 525, in load\nobj = StockUnpickler.load(self)\n^^^^^^^^^^^^^^^^^^^^^^^^^\nFile \"\/usr\/local\/lib\/python3.12\/dist-packages\/dill\/_dill.py\", line 659, in _create_code\nif len(args) == 16: return CodeType(*args)\n^^^^^^^^^^^^^^^\nTypeError: code() argument 13 must be str, not int\n```\n\nAfter upgrading dill to the latest 0.4.0 with \"pip install --upgrade dill\", it can pass. So it seems that there is a compatibility issue between dill 0.3.4 and python 3.11+, because python 3.10 works fine. \n\n\nIs the dill deterministic issue mentioned in https:\/\/github.com\/huggingface\/datasets\/blob\/main\/setup.py#L117) still valid? Any plan to unpin? \n","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7537\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7537\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7536","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7536\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7536\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7536\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7536","id":3018425549,"node_id":"I_kwDODunzps6z6YTN","number":7536,"title":"[Errno 13] Permission denied: on `.incomplete` file","user":{"login":"ryan-clancy","id":1282383,"node_id":"MDQ6VXNlcjEyODIzODM=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/1282383?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ryan-clancy","html_url":"https:\/\/github.com\/ryan-clancy","followers_url":"https:\/\/api.github.com\/users\/ryan-clancy\/followers","following_url":"https:\/\/api.github.com\/users\/ryan-clancy\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ryan-clancy\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ryan-clancy\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ryan-clancy\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ryan-clancy\/orgs","repos_url":"https:\/\/api.github.com\/users\/ryan-clancy\/repos","events_url":"https:\/\/api.github.com\/users\/ryan-clancy\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ryan-clancy\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2025-04-24T20:52:45Z","updated_at":"2025-05-06T13:05:01Z","closed_at":"2025-05-06T13:05:01Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nWhen downloading a dataset, we frequently hit the below Permission Denied error. This looks to happen (at least) across datasets in HF, S3, and GCS.\n\nIt looks like the `temp_file` being passed [here](https:\/\/github.com\/huggingface\/datasets\/blob\/main\/src\/datasets\/utils\/file_utils.py#L412) can sometimes be created with `000` permissions leading to the permission denied error (the user running the code is still the owner of the file). Deleting that particular file and re-running the code with 0 changes will usually succeed.\n\nIs there some race condition happening with the [umask](https:\/\/github.com\/huggingface\/datasets\/blob\/main\/src\/datasets\/utils\/file_utils.py#L416), which is process global, and the [file creation](https:\/\/github.com\/huggingface\/datasets\/blob\/main\/src\/datasets\/utils\/file_utils.py#L404)?\n\n```\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n.venv\/lib\/python3.12\/site-packages\/datasets\/load.py:2084: in load_dataset\n builder_instance.download_and_prepare(\n.venv\/lib\/python3.12\/site-packages\/datasets\/builder.py:925: in download_and_prepare\n self._download_and_prepare(\n.venv\/lib\/python3.12\/site-packages\/datasets\/builder.py:1649: in _download_and_prepare\n super()._download_and_prepare(\n.venv\/lib\/python3.12\/site-packages\/datasets\/builder.py:979: in _download_and_prepare\n split_generators = self._split_generators(dl_manager, **split_generators_kwargs)\n.venv\/lib\/python3.12\/site-packages\/datasets\/packaged_modules\/folder_based_builder\/folder_based_builder.py:120: in _split_generators\n downloaded_files = dl_manager.download(files)\n.venv\/lib\/python3.12\/site-packages\/datasets\/download\/download_manager.py:159: in download\n downloaded_path_or_paths = map_nested(\n.venv\/lib\/python3.12\/site-packages\/datasets\/utils\/py_utils.py:514: in map_nested\n _single_map_nested((function, obj, batched, batch_size, types, None, True, None))\n.venv\/lib\/python3.12\/site-packages\/datasets\/utils\/py_utils.py:382: in _single_map_nested\n return [mapped_item for batch in iter_batched(data_struct, batch_size) for mapped_item in function(batch)]\n.venv\/lib\/python3.12\/site-packages\/datasets\/download\/download_manager.py:206: in _download_batched\n return thread_map(\n.venv\/lib\/python3.12\/site-packages\/tqdm\/contrib\/concurrent.py:69: in thread_map\n return _executor_map(ThreadPoolExecutor, fn, *iterables, **tqdm_kwargs)\n.venv\/lib\/python3.12\/site-packages\/tqdm\/contrib\/concurrent.py:51: in _executor_map\n return list(tqdm_class(ex.map(fn, *iterables, chunksize=chunksize), **kwargs))\n.venv\/lib\/python3.12\/site-packages\/tqdm\/std.py:1181: in __iter__\n for obj in iterable:\n..\/..\/..\/_tool\/Python\/3.12.10\/x64\/lib\/python3.12\/concurrent\/futures\/_base.py:619: in result_iterator\n yield _result_or_cancel(fs.pop())\n..\/..\/..\/_tool\/Python\/3.12.10\/x64\/lib\/python3.12\/concurrent\/futures\/_base.py:317: in _result_or_cancel\n return fut.result(timeout)\n..\/..\/..\/_tool\/Python\/3.12.10\/x64\/lib\/python3.12\/concurrent\/futures\/_base.py:449: in result\n return self.__get_result()\n..\/..\/..\/_tool\/Python\/3.12.10\/x64\/lib\/python3.12\/concurrent\/futures\/_base.py:401: in __get_result\n raise self._exception\n..\/..\/..\/_tool\/Python\/3.12.10\/x64\/lib\/python3.12\/concurrent\/futures\/thread.py:59: in run\n result = self.fn(*self.args, **self.kwargs)\n.venv\/lib\/python3.12\/site-packages\/datasets\/download\/download_manager.py:229: in _download_single\n out = cached_path(url_or_filename, download_config=download_config)\n.venv\/lib\/python3.12\/site-packages\/datasets\/utils\/file_utils.py:206: in cached_path\n output_path = get_from_cache(\n.venv\/lib\/python3.12\/site-packages\/datasets\/utils\/file_utils.py:412: in get_from_cache\n fsspec_get(url, temp_file, storage_options=storage_options, desc=download_desc, disable_tqdm=disable_tqdm)\n.venv\/lib\/python3.12\/site-packages\/datasets\/utils\/file_utils.py:331: in fsspec_get\n fs.get_file(path, temp_file.name, callback=callback)\n.venv\/lib\/python3.12\/site-packages\/fsspec\/asyn.py:118: in wrapper\n return sync(self.loop, func, *args, **kwargs)\n.venv\/lib\/python3.12\/site-packages\/fsspec\/asyn.py:103: in sync\n raise return_result\n.venv\/lib\/python3.12\/site-packages\/fsspec\/asyn.py:56: in _runner\n result[0] = await coro\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nrpath = '\/\/img_1.jpg'\nlpath = '\/home\/runner\/_work\/_temp\/hf_cache\/downloads\/6c97983efa4e24e534557724655df8247a0bd04326cdfc4a95b638c11e78222d.incomplete'\ncallback = \nversion_id = None, kwargs = {}\n_open_file = ._open_file at 0x7f27628d1120>\nbody = \ncontent_length = 521923, failed_reads = 0, bytes_read = 0\n\n async def _get_file(\n self, rpath, lpath, callback=_DEFAULT_CALLBACK, version_id=None, **kwargs\n ):\n if os.path.isdir(lpath):\n return\n bucket, key, vers = self.split_path(rpath)\n \n async def _open_file(range: int):\n kw = self.req_kw.copy()\n if range:\n kw[\"Range\"] = f\"bytes={range}-\"\n resp = await self._call_s3(\n \"get_object\",\n Bucket=bucket,\n Key=key,\n **version_id_kw(version_id or vers),\n **kw,\n )\n return resp[\"Body\"], resp.get(\"ContentLength\", None)\n \n body, content_length = await _open_file(range=0)\n callback.set_size(content_length)\n \n failed_reads = 0\n bytes_read = 0\n \n try:\n> with open(lpath, \"wb\") as f0:\nE PermissionError: [Errno 13] Permission denied: '\/home\/runner\/_work\/_temp\/hf_cache\/downloads\/6c97983efa4e24e534557724655df8247a0bd04326cdfc4a95b638c11e78222d.incomplete'\n\n.venv\/lib\/python3.12\/site-packages\/s3fs\/core.py:1355: PermissionError\n```\n\n### Steps to reproduce the bug\n\nI believe this is a race condition and cannot reliably re-produce it, but it happens fairly frequently in our GitHub Actions tests and can also be re-produced (with lesser frequency) on cloud VMs.\n\n### Expected behavior\n\nThe dataset loads properly with no permission denied error.\n\n### Environment info\n\n- `datasets` version: 3.5.0\n- Platform: Linux-5.10.0-34-cloud-amd64-x86_64-with-glibc2.31\n- Python version: 3.12.10\n- `huggingface_hub` version: 0.30.2\n- PyArrow version: 19.0.1\n- Pandas version: 2.2.3\n- `fsspec` version: 2024.12.0","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7536\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7536\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7535","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7535\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7535\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7535\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7535","id":3018289872,"node_id":"PR_kwDODunzps6T0lm3","number":7535,"title":"Change dill version in requirements","user":{"login":"JGrel","id":98061329,"node_id":"U_kgDOBdhMEQ","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/98061329?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/JGrel","html_url":"https:\/\/github.com\/JGrel","followers_url":"https:\/\/api.github.com\/users\/JGrel\/followers","following_url":"https:\/\/api.github.com\/users\/JGrel\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/JGrel\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/JGrel\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/JGrel\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/JGrel\/orgs","repos_url":"https:\/\/api.github.com\/users\/JGrel\/repos","events_url":"https:\/\/api.github.com\/users\/JGrel\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/JGrel\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-04-24T19:44:28Z","updated_at":"2025-05-19T14:51:29Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7535","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7535","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7535.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7535.patch","merged_at":null},"body":"Change dill version to >=0.3.9,<0.4.5 and check for errors","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7535\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7535\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7534","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7534\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7534\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7534\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7534","id":3017259407,"node_id":"I_kwDODunzps6z17mP","number":7534,"title":"TensorFlow RaggedTensor Support (batch-level)","user":{"login":"Lundez","id":7490199,"node_id":"MDQ6VXNlcjc0OTAxOTk=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/7490199?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Lundez","html_url":"https:\/\/github.com\/Lundez","followers_url":"https:\/\/api.github.com\/users\/Lundez\/followers","following_url":"https:\/\/api.github.com\/users\/Lundez\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Lundez\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Lundez\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Lundez\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Lundez\/orgs","repos_url":"https:\/\/api.github.com\/users\/Lundez\/repos","events_url":"https:\/\/api.github.com\/users\/Lundez\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Lundez\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2025-04-24T13:14:52Z","updated_at":"2025-06-30T17:03:39Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nHi,\n\nCurrently datasets does not support RaggedTensor output on batch-level.\nWhen building a Object Detection Dataset (with TensorFlow) I need to enable RaggedTensors as that's how BBoxes & classes are expected from the Keras Model POV.\n\nCurrently there's a error thrown saying that \"Nested Data is not supported\".\n\nIt'd be very helpful if this was fixed! :)\n\n### Motivation\n\nEnabling Object Detection pipelines for TensorFlow.\n\n### Your contribution\n\nWith guidance I'd happily help making the PR.\n\nThe current implementation with DataCollator and later enforcing `np.array` is the problematic part (at the end of `np_get_batch` in `tf_utils.py`). As `numpy` don't support \"Raggednes\"","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7534\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7534\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7533","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7533\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7533\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7533\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7533","id":3015075086,"node_id":"PR_kwDODunzps6TpraJ","number":7533,"title":"Add custom fingerprint support to `from_generator`","user":{"login":"simonreise","id":43753582,"node_id":"MDQ6VXNlcjQzNzUzNTgy","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/43753582?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/simonreise","html_url":"https:\/\/github.com\/simonreise","followers_url":"https:\/\/api.github.com\/users\/simonreise\/followers","following_url":"https:\/\/api.github.com\/users\/simonreise\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/simonreise\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/simonreise\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/simonreise\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/simonreise\/orgs","repos_url":"https:\/\/api.github.com\/users\/simonreise\/repos","events_url":"https:\/\/api.github.com\/users\/simonreise\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/simonreise\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2025-04-23T19:31:35Z","updated_at":"2025-08-11T10:28:46Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7533","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7533","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7533.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7533.patch","merged_at":null},"body":"This PR adds `dataset_id_suffix` parameter to 'Dataset.from_generator' function.\r\n\r\n`Dataset.from_generator` function passes all of its arguments to `BuilderConfig.create_config_id`, including generator function itself. `BuilderConfig.create_config_id` function tries to hash all the args, which can take a large amount of time or even cause MemoryError if the dataset processed in a generator function is large enough.\r\n\r\nThis PR allows user to pass a custom fingerprint (`dataset_id_suffix`) to be used as a suffix in a dataset name instead of the one generated by hashing the args.\r\n\r\nThis PR is a possible solution of #7513 ","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7533\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7533\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7532","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7532\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7532\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7532\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7532","id":3009546204,"node_id":"PR_kwDODunzps6TW8Ss","number":7532,"title":"Document the HF_DATASETS_CACHE environment variable in the datasets cache documentation","user":{"login":"Harry-Yang0518","id":129883215,"node_id":"U_kgDOB73cTw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/129883215?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Harry-Yang0518","html_url":"https:\/\/github.com\/Harry-Yang0518","followers_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/followers","following_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/orgs","repos_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/repos","events_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2025-04-22T00:23:13Z","updated_at":"2025-05-06T15:54:38Z","closed_at":"2025-05-06T15:54:38Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7532","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7532","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7532.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7532.patch","merged_at":"2025-05-06T15:54:38Z"},"body":"\r\nThis pull request updates the Datasets documentation to include the `HF_DATASETS_CACHE` environment variable. While the current documentation only mentions `HF_HOME` for overriding the default cache directory, `HF_DATASETS_CACHE` is also a supported and useful option for specifying a custom cache location for datasets stored in Arrow format.\r\n\r\nThis addition is based on the discussion in (https:\/\/github.com\/huggingface\/datasets\/issues\/7457), where users noted the absence of this variable in the documentation despite its functionality. The update adds a new section to `cache.mdx` that explains how to use `HF_DATASETS_CACHE` with an example.\r\n\r\nThis change aims to improve clarity and help users better manage their cache directories when working in shared environments or with limited local storage.\r\n\r\nCloses #7457.","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7532\/reactions","total_count":1,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7532\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7531","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7531\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7531\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7531\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7531","id":3008914887,"node_id":"I_kwDODunzps6zWGXH","number":7531,"title":"Deepspeed reward training hangs at end of training with Dataset.from_list","user":{"login":"Matt00n","id":60710414,"node_id":"MDQ6VXNlcjYwNzEwNDE0","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/60710414?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Matt00n","html_url":"https:\/\/github.com\/Matt00n","followers_url":"https:\/\/api.github.com\/users\/Matt00n\/followers","following_url":"https:\/\/api.github.com\/users\/Matt00n\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Matt00n\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Matt00n\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Matt00n\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Matt00n\/orgs","repos_url":"https:\/\/api.github.com\/users\/Matt00n\/repos","events_url":"https:\/\/api.github.com\/users\/Matt00n\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Matt00n\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-04-21T17:29:20Z","updated_at":"2025-06-29T06:20:45Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"There seems to be a weird interaction between Deepspeed, the Dataset.from_list method and trl's RewardTrainer. On a multi-GPU setup (10 A100s), training always hangs at the very end of training until it times out. The training itself works fine until the end of training and running the same script with Deepspeed on a single GPU works without hangig. The issue persisted across a wide range of Deepspeed configs and training arguments. The issue went away when storing the exact same dataset as a JSON and using `dataset = load_dataset(\"json\", ...)`. Here is my training script:\n\n```python\nimport pickle\nimport os\nimport random\nimport warnings\n\nimport torch\nfrom datasets import load_dataset, Dataset\nfrom transformers import AutoModelForSequenceClassification, AutoTokenizer\nfrom trl import RewardConfig, RewardTrainer, ModelConfig\n\n####################################### Reward model #################################################\n\n# Explicitly set arguments\nmodel_name_or_path = \"Qwen\/Qwen2.5-1.5B\"\noutput_dir = \"Qwen2-0.5B-Reward-LoRA\"\nper_device_train_batch_size = 2\nnum_train_epochs = 5\ngradient_checkpointing = True\nlearning_rate = 1.0e-4\nlogging_steps = 25\neval_strategy = \"steps\"\neval_steps = 50\nmax_length = 2048\ntorch_dtype = \"auto\"\ntrust_remote_code = False\n\nmodel_args = ModelConfig(\n model_name_or_path=model_name_or_path,\n model_revision=None,\n trust_remote_code=trust_remote_code,\n torch_dtype=torch_dtype,\n lora_task_type=\"SEQ_CLS\", # Make sure task type is seq_cls\n)\n\ntraining_args = RewardConfig(\n output_dir=output_dir,\n per_device_train_batch_size=per_device_train_batch_size,\n num_train_epochs=num_train_epochs,\n gradient_checkpointing=gradient_checkpointing,\n learning_rate=learning_rate,\n logging_steps=logging_steps,\n eval_strategy=eval_strategy,\n eval_steps=eval_steps,\n max_length=max_length,\n gradient_checkpointing_kwargs=dict(use_reentrant=False),\n center_rewards_coefficient = 0.01,\n fp16=False,\n bf16=True,\n save_strategy=\"no\",\n dataloader_num_workers=0,\n # deepspeed=\".\/configs\/deepspeed_config.json\",\n)\n\n################\n# Model & Tokenizer\n################\n\nmodel_kwargs = dict(\n revision=model_args.model_revision,\n use_cache=False if training_args.gradient_checkpointing else True,\n torch_dtype=model_args.torch_dtype,\n)\ntokenizer = AutoTokenizer.from_pretrained(\n model_args.model_name_or_path, use_fast=True\n)\nmodel = AutoModelForSequenceClassification.from_pretrained(\n model_args.model_name_or_path, num_labels=1, trust_remote_code=model_args.trust_remote_code, **model_kwargs\n)\n# Align padding tokens between tokenizer and model\nmodel.config.pad_token_id = tokenizer.pad_token_id\n\n# If post-training a base model, use ChatML as the default template\nif tokenizer.chat_template is None:\n model, tokenizer = setup_chat_format(model, tokenizer)\n\nif model_args.use_peft and model_args.lora_task_type != \"SEQ_CLS\":\n warnings.warn(\n \"You are using a `task_type` that is different than `SEQ_CLS` for PEFT. This will lead to silent bugs\"\n \" Make sure to pass --lora_task_type SEQ_CLS when using this script with PEFT.\",\n UserWarning,\n )\n\n##############\n# Load dataset\n##############\n\n\nwith open('.\/prefs.pkl', 'rb') as fh:\n loaded_data = pickle.load(fh)\n\nrandom.shuffle(loaded_data)\n\ndataset = []\nfor a_wins, a, b in loaded_data:\n if a_wins == 0:\n a, b = b, a\n dataset.append({'chosen': a, 'rejected': b})\n\n\ndataset = Dataset.from_list(dataset)\n\n# Split the dataset into training and evaluation sets\ntrain_eval_split = dataset.train_test_split(test_size=0.15, shuffle=True, seed=42)\n\n# Access the training and evaluation datasets\ntrain_dataset = train_eval_split['train']\neval_dataset = train_eval_split['test']\n\n\n##########\n# Training\n##########\n\n\ntrainer = RewardTrainer(\n model=model,\n processing_class=tokenizer,\n args=training_args,\n train_dataset=train_dataset,\n eval_dataset=eval_dataset,\n)\n\ntrainer.train()\n```\n\nReplacing `dataset = Dataset.from_list(dataset)` with \n```python\nwith open('.\/prefs.json', 'w') as fh:\n json.dump(dataset, fh)\ndataset = load_dataset(\"json\", data_files=\".\/prefs.json\", split='train')\n```\nresolves the issue.","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7531\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7531\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7530","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7530\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7530\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7530\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7530","id":3007452499,"node_id":"I_kwDODunzps6zQhVT","number":7530,"title":"How to solve \"Spaces stuck in Building\" problems","user":{"login":"ghost","id":10137,"node_id":"MDQ6VXNlcjEwMTM3","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/10137?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ghost","html_url":"https:\/\/github.com\/ghost","followers_url":"https:\/\/api.github.com\/users\/ghost\/followers","following_url":"https:\/\/api.github.com\/users\/ghost\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ghost\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ghost\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ghost\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ghost\/orgs","repos_url":"https:\/\/api.github.com\/users\/ghost\/repos","events_url":"https:\/\/api.github.com\/users\/ghost\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ghost\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2025-04-21T03:08:38Z","updated_at":"2025-04-22T07:49:52Z","closed_at":"2025-04-22T07:49:52Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nPublic spaces may stuck in Building after restarting, error log as follows:\n\nbuild error\nUnexpected job error\n\nERROR: failed to push spaces-registry.huggingface.tech\/spaces\/*:cpu-*-*: unexpected status from HEAD request to https:\/\/spaces-registry.huggingface.tech\/v2\/spaces\/*\/manifests\/cpu-*-*: 401 Unauthorized\n\n### Steps to reproduce the bug\n\nRestart space \/ Factory rebuild cannot avoid it\n\n### Expected behavior\n\nFix this problem\n\n### Environment info\n\nno requirements.txt can still happen\npython gradio spaces","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7530\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7530\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7529","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7529\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7529\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7529\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7529","id":3007118969,"node_id":"I_kwDODunzps6zPP55","number":7529,"title":"audio folder builder cannot detect custom split name","user":{"login":"phineas-pta","id":37548991,"node_id":"MDQ6VXNlcjM3NTQ4OTkx","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/37548991?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/phineas-pta","html_url":"https:\/\/github.com\/phineas-pta","followers_url":"https:\/\/api.github.com\/users\/phineas-pta\/followers","following_url":"https:\/\/api.github.com\/users\/phineas-pta\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/phineas-pta\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/phineas-pta\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/phineas-pta\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/phineas-pta\/orgs","repos_url":"https:\/\/api.github.com\/users\/phineas-pta\/repos","events_url":"https:\/\/api.github.com\/users\/phineas-pta\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/phineas-pta\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-04-20T16:53:21Z","updated_at":"2025-04-20T16:53:21Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nwhen using audio folder builder (`load_dataset(\"audiofolder\", data_dir=\"\/path\/to\/folder\")`), it cannot detect custom split name other than train\/validation\/test\n\n### Steps to reproduce the bug\n\ni have the following folder structure\n```\nmy_dataset\/\n\u251c\u2500\u2500 train\/\n\u2502 \u251c\u2500\u2500 lorem.wav\n\u2502 \u251c\u2500\u2500 \u2026\n\u2502 \u2514\u2500\u2500 metadata.csv\n\u251c\u2500\u2500 test\/\n\u2502 \u251c\u2500\u2500 ipsum.wav\n\u2502 \u251c\u2500\u2500 \u2026\n\u2502 \u2514\u2500\u2500 metadata.csv\n\u251c\u2500\u2500 validation\/\n\u2502 \u251c\u2500\u2500 dolor.wav\n\u2502 \u251c\u2500\u2500 \u2026\n\u2502 \u2514\u2500\u2500 metadata.csv\n\u2514\u2500\u2500 custom\/\n \u251c\u2500\u2500 sit.wav\n \u251c\u2500\u2500 \u2026\n \u2514\u2500\u2500 metadata.csv\n```\nusing `ds = load_dataset(\"audiofolder\", data_dir=\"\/path\/to\/my_dataset\")`\n\n### Expected behavior\n\ni got `ds` with only 3 splits train\/validation\/test, whenever i rename train\/validation\/test folder it also disappear if i re-create `ds`\n\n### Environment info\n\n- `datasets` version: 3.5.0\n- Platform: Windows-11-10.0.26100-SP0\n- Python version: 3.12.8\n- `huggingface_hub` version: 0.30.2\n- PyArrow version: 18.1.0\n- Pandas version: 2.2.3\n- `fsspec` version: 2024.9.0","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7529\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7529\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7528","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7528\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7528\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7528\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7528","id":3006433485,"node_id":"I_kwDODunzps6zMojN","number":7528,"title":"Data Studio Error: Convert JSONL incorrectly","user":{"login":"zxccade","id":144962041,"node_id":"U_kgDOCKPx-Q","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/144962041?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/zxccade","html_url":"https:\/\/github.com\/zxccade","followers_url":"https:\/\/api.github.com\/users\/zxccade\/followers","following_url":"https:\/\/api.github.com\/users\/zxccade\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/zxccade\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/zxccade\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/zxccade\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/zxccade\/orgs","repos_url":"https:\/\/api.github.com\/users\/zxccade\/repos","events_url":"https:\/\/api.github.com\/users\/zxccade\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/zxccade\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-04-19T13:21:44Z","updated_at":"2025-05-06T13:18:38Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nHi there,\n\nI uploaded a dataset here https:\/\/huggingface.co\/datasets\/V-STaR-Bench\/V-STaR, but I found that Data Studio incorrectly convert the \"bboxes\" value for the whole dataset. Therefore, anyone who downloaded the dataset via the API would get the wrong \"bboxes\" value in the data file.\n\nCould you help me address the issue?\n\nMany thanks,\n\n\n\n### Steps to reproduce the bug\n\nThe JSONL file of [V_STaR_test_release.jsonl](https:\/\/huggingface.co\/datasets\/V-STaR-Bench\/V-STaR\/blob\/main\/V_STaR_test_release.jsonl) has the correct values of every \"bboxes\" for each sample.\n\nBut in the Data Studio, we can see that the values of \"bboxes\" have changed, and load the dataset via API will also get the wrong values.\n\n### Expected behavior\n\nFix the bug to correctly download my dataset.\n\n### Environment info\n\n- `datasets` version: 2.16.1\n- Platform: Linux-5.14.0-427.22.1.el9_4.x86_64-x86_64-with-glibc2.34\n- Python version: 3.10.16\n- `huggingface_hub` version: 0.29.3\n- PyArrow version: 19.0.0\n- Pandas version: 2.2.3\n- `fsspec` version: 2023.10.0","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7528\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7528\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7527","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7527\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7527\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7527\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7527","id":3005242422,"node_id":"I_kwDODunzps6zIFw2","number":7527,"title":"Auto-merge option for `convert-to-parquet`","user":{"login":"klamike","id":17013474,"node_id":"MDQ6VXNlcjE3MDEzNDc0","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/17013474?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/klamike","html_url":"https:\/\/github.com\/klamike","followers_url":"https:\/\/api.github.com\/users\/klamike\/followers","following_url":"https:\/\/api.github.com\/users\/klamike\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/klamike\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/klamike\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/klamike\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/klamike\/orgs","repos_url":"https:\/\/api.github.com\/users\/klamike\/repos","events_url":"https:\/\/api.github.com\/users\/klamike\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/klamike\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"closed","locked":false,"assignee":{"login":"klamike","id":17013474,"node_id":"MDQ6VXNlcjE3MDEzNDc0","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/17013474?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/klamike","html_url":"https:\/\/github.com\/klamike","followers_url":"https:\/\/api.github.com\/users\/klamike\/followers","following_url":"https:\/\/api.github.com\/users\/klamike\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/klamike\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/klamike\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/klamike\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/klamike\/orgs","repos_url":"https:\/\/api.github.com\/users\/klamike\/repos","events_url":"https:\/\/api.github.com\/users\/klamike\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/klamike\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"klamike","id":17013474,"node_id":"MDQ6VXNlcjE3MDEzNDc0","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/17013474?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/klamike","html_url":"https:\/\/github.com\/klamike","followers_url":"https:\/\/api.github.com\/users\/klamike\/followers","following_url":"https:\/\/api.github.com\/users\/klamike\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/klamike\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/klamike\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/klamike\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/klamike\/orgs","repos_url":"https:\/\/api.github.com\/users\/klamike\/repos","events_url":"https:\/\/api.github.com\/users\/klamike\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/klamike\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":4,"created_at":"2025-04-18T16:03:22Z","updated_at":"2025-07-18T19:09:03Z","closed_at":"2025-07-18T19:09:03Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nAdd a command-line option, e.g. `--auto-merge-pull-request` that enables automatic merging of the commits created by the `convert-to-parquet` tool.\n\n### Motivation\n\nLarge datasets may result in dozens of PRs due to the splitting mechanism. Each of these has to be manually accepted via the website.\n\n### Your contribution\n\nHappy to look into submitting a PR if this is of interest to maintainers.","closed_by":{"login":"klamike","id":17013474,"node_id":"MDQ6VXNlcjE3MDEzNDc0","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/17013474?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/klamike","html_url":"https:\/\/github.com\/klamike","followers_url":"https:\/\/api.github.com\/users\/klamike\/followers","following_url":"https:\/\/api.github.com\/users\/klamike\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/klamike\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/klamike\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/klamike\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/klamike\/orgs","repos_url":"https:\/\/api.github.com\/users\/klamike\/repos","events_url":"https:\/\/api.github.com\/users\/klamike\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/klamike\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7527\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7527\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7526","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7526\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7526\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7526\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7526","id":3005107536,"node_id":"I_kwDODunzps6zHk1Q","number":7526,"title":"Faster downloads\/uploads with Xet storage","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-04-18T14:46:42Z","updated_at":"2025-05-12T12:09:09Z","closed_at":null,"author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"![Image](https:\/\/github.com\/user-attachments\/assets\/6e247f4a-d436-4428-a682-fe18ebdc73a9)\n\n## Xet is out !\n\nOver the past few weeks, Hugging Face\u2019s [Xet Team](https:\/\/huggingface.co\/xet-team) took a major step forward by [migrating the first Model and Dataset repositories off LFS and to Xet storage](https:\/\/huggingface.co\/posts\/jsulz\/911431940353906).\n\nSee more information on the HF blog: https:\/\/huggingface.co\/blog\/xet-on-the-hub\n\nYou can already enable Xet on Hugging Face account to benefit from faster downloads and uploads :)\n\nWe finalized an official integration with the `huggingface_hub` library that means you get the benefits of Xet without any significant changes to your current workflow.\n\n\n## Previous versions of `datasets`\n\nFor older versions of `datasets` you might see this warning in `push_to_hub()`:\n\n```\nUploading files as bytes or binary IO objects is not supported by Xet Storage.\n```\n\nThis means the `huggingface_hub` + Xet integration isn't enabled for your version of `datasets`.\n\nYou can fix this by updating to `datasets>=3.6.0` and `huggingface_hub>=0.31.0`\n\n```\npip install -U datasets huggingface_hub\n```\n\n## The future\n\nStay tuned for more Xet optimizations, especially on [Xet-optimized Parquet](https:\/\/huggingface.co\/blog\/improve_parquet_dedupe)\n\n","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7526\/reactions","total_count":6,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":6,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7526\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7525","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7525\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7525\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7525\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7525","id":3003032248,"node_id":"PR_kwDODunzps6TBOH1","number":7525,"title":"Fix indexing in split commit messages","user":{"login":"klamike","id":17013474,"node_id":"MDQ6VXNlcjE3MDEzNDc0","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/17013474?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/klamike","html_url":"https:\/\/github.com\/klamike","followers_url":"https:\/\/api.github.com\/users\/klamike\/followers","following_url":"https:\/\/api.github.com\/users\/klamike\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/klamike\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/klamike\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/klamike\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/klamike\/orgs","repos_url":"https:\/\/api.github.com\/users\/klamike\/repos","events_url":"https:\/\/api.github.com\/users\/klamike\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/klamike\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-04-17T17:06:26Z","updated_at":"2025-04-28T14:26:27Z","closed_at":"2025-04-28T14:26:27Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7525","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7525","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7525.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7525.patch","merged_at":null},"body":"When a large commit is split up, it seems the commit index in the message is zero-based while the total number is one-based. I came across this running `convert-to-parquet` and was wondering why there was no `6-of-6` commit. This PR fixes that by adding one to the commit index, so both are one-based.\r\n\r\nCurrent behavior:\r\n\"Screenshot","closed_by":{"login":"klamike","id":17013474,"node_id":"MDQ6VXNlcjE3MDEzNDc0","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/17013474?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/klamike","html_url":"https:\/\/github.com\/klamike","followers_url":"https:\/\/api.github.com\/users\/klamike\/followers","following_url":"https:\/\/api.github.com\/users\/klamike\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/klamike\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/klamike\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/klamike\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/klamike\/orgs","repos_url":"https:\/\/api.github.com\/users\/klamike\/repos","events_url":"https:\/\/api.github.com\/users\/klamike\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/klamike\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7525\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7525\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7524","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7524\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7524\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7524\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7524","id":3002067826,"node_id":"PR_kwDODunzps6S99KB","number":7524,"title":"correct use with polars example","user":{"login":"SiQube","id":43832476,"node_id":"MDQ6VXNlcjQzODMyNDc2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/43832476?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/SiQube","html_url":"https:\/\/github.com\/SiQube","followers_url":"https:\/\/api.github.com\/users\/SiQube\/followers","following_url":"https:\/\/api.github.com\/users\/SiQube\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/SiQube\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/SiQube\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/SiQube\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/SiQube\/orgs","repos_url":"https:\/\/api.github.com\/users\/SiQube\/repos","events_url":"https:\/\/api.github.com\/users\/SiQube\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/SiQube\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-04-17T10:19:19Z","updated_at":"2025-04-28T13:48:34Z","closed_at":"2025-04-28T13:48:33Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7524","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7524","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7524.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7524.patch","merged_at":"2025-04-28T13:48:33Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7524\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7524\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7523","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7523\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7523\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7523\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7523","id":2999616692,"node_id":"PR_kwDODunzps6S1r8w","number":7523,"title":"mention av in video docs","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-04-16T13:11:12Z","updated_at":"2025-04-16T13:13:45Z","closed_at":"2025-04-16T13:11:42Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7523","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7523","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7523.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7523.patch","merged_at":"2025-04-16T13:11:42Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7523\/reactions","total_count":1,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7523\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7522","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7522\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7522\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7522\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7522","id":2998169017,"node_id":"PR_kwDODunzps6SwwXW","number":7522,"title":"Preserve formatting in concatenated IterableDataset","user":{"login":"francescorubbo","id":5140987,"node_id":"MDQ6VXNlcjUxNDA5ODc=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/5140987?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/francescorubbo","html_url":"https:\/\/github.com\/francescorubbo","followers_url":"https:\/\/api.github.com\/users\/francescorubbo\/followers","following_url":"https:\/\/api.github.com\/users\/francescorubbo\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/francescorubbo\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/francescorubbo\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/francescorubbo\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/francescorubbo\/orgs","repos_url":"https:\/\/api.github.com\/users\/francescorubbo\/repos","events_url":"https:\/\/api.github.com\/users\/francescorubbo\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/francescorubbo\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-04-16T02:37:33Z","updated_at":"2025-05-19T15:07:38Z","closed_at":"2025-05-19T15:07:37Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7522","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7522","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7522.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7522.patch","merged_at":"2025-05-19T15:07:37Z"},"body":"Fixes #7515 ","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7522\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7522\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7521","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7521\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7521\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7521\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7521","id":2997666366,"node_id":"PR_kwDODunzps6SvEZp","number":7521,"title":"fix: Image Feature in Datasets Library Fails to Handle bytearray Objects from Spark DataFrames (#7517)","user":{"login":"giraffacarp","id":73196164,"node_id":"MDQ6VXNlcjczMTk2MTY0","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/73196164?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/giraffacarp","html_url":"https:\/\/github.com\/giraffacarp","followers_url":"https:\/\/api.github.com\/users\/giraffacarp\/followers","following_url":"https:\/\/api.github.com\/users\/giraffacarp\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/giraffacarp\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/giraffacarp\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/giraffacarp\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/giraffacarp\/orgs","repos_url":"https:\/\/api.github.com\/users\/giraffacarp\/repos","events_url":"https:\/\/api.github.com\/users\/giraffacarp\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/giraffacarp\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-04-15T21:23:58Z","updated_at":"2025-05-07T14:17:29Z","closed_at":"2025-05-07T14:17:29Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7521","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7521","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7521.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7521.patch","merged_at":"2025-05-07T14:17:29Z"},"body":"## Task\r\nSupport bytes-like objects (bytes and bytearray) in Features classes\r\n\r\n### Description\r\nThe `Features` classes only accept `bytes` objects for binary data, but not `bytearray`. This leads to errors when using `IterableDataset.from_spark()` with Spark DataFrames as they contain `bytearray` objects, even though both `bytes` and `bytearray` are valid [*bytes-like objects* in Python](https:\/\/docs.python.org\/3\/glossary.html#term-bytes-like-object).\r\n\r\n### Changes\r\n- Updated `Features` classes to accept both `bytes` and `bytearray` types for binary data fields.\r\n\r\n### Reasoning\r\n- `bytes` and `bytearray` serve the same purpose for binary data, with the only difference being mutability.\r\n- Modifying the Spark iterator to convert `bytearray` to `bytes` would be a workaround, not a true fix. I think the correct solution is to accept all bytes-like objects as input.\r\n- This approach is more robust and future-proof since Python 3.12+ provides a [standard way to check for buffer protocol](https:\/\/docs.python.org\/3\/c-api\/buffer.html#bufferobjects).\r\n\r\n### Testing\r\n- Added tests to cover `bytearray` inputs for image features.\r\n\r\n### Related Issues\r\n- Fixes: #7517 ","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7521\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7521\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7520","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7520\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7520\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7520\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7520","id":2997422044,"node_id":"I_kwDODunzps6yqQfc","number":7520,"title":"Update items in the dataset without `map`","user":{"login":"mashdragon","id":122402293,"node_id":"U_kgDOB0u19Q","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/122402293?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/mashdragon","html_url":"https:\/\/github.com\/mashdragon","followers_url":"https:\/\/api.github.com\/users\/mashdragon\/followers","following_url":"https:\/\/api.github.com\/users\/mashdragon\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/mashdragon\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/mashdragon\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/mashdragon\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/mashdragon\/orgs","repos_url":"https:\/\/api.github.com\/users\/mashdragon\/repos","events_url":"https:\/\/api.github.com\/users\/mashdragon\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/mashdragon\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-04-15T19:39:01Z","updated_at":"2025-04-19T18:47:46Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nI would like to be able to update items in my dataset without affecting all rows. At least if there was a range option, I would be able to process those items, save the dataset, and then continue.\n\nIf I am supposed to split the dataset first, that is not clear, since the docs suggest that any of those functions returns a new object, so I don't think I can do that.\n\n### Motivation\n\nI am applying an extremely time-consuming function to each item in my `Dataset`. Unfortunately, datasets only supports updating values via `map`, so if my computer dies in the middle of this long-running process, I lose all progress. This is far from ideal. I would like to use `datasets` throughout this processing, but this limitation is now forcing me to write my own dataset format just to do this intermediary operation.\n\nIt would be less intuitive but I suppose I could split and then concatenate the dataset before saving? But this feels very inefficient.\n\n### Your contribution\n\nI can test the feature.","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7520\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7520\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7519","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7519\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7519\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7519\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7519","id":2996458961,"node_id":"PR_kwDODunzps6Sq76Z","number":7519,"title":"pdf docs fixes","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-04-15T13:35:56Z","updated_at":"2025-04-15T13:38:31Z","closed_at":"2025-04-15T13:36:03Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7519","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7519","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7519.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7519.patch","merged_at":"2025-04-15T13:36:03Z"},"body":"close https:\/\/github.com\/huggingface\/datasets\/issues\/7494","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7519\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7519\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7518","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7518\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7518\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7518\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7518","id":2996141825,"node_id":"I_kwDODunzps6ylX8B","number":7518,"title":"num_proc parallelization works only for first ~10s.","user":{"login":"pshishodiaa","id":33901783,"node_id":"MDQ6VXNlcjMzOTAxNzgz","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/33901783?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/pshishodiaa","html_url":"https:\/\/github.com\/pshishodiaa","followers_url":"https:\/\/api.github.com\/users\/pshishodiaa\/followers","following_url":"https:\/\/api.github.com\/users\/pshishodiaa\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/pshishodiaa\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/pshishodiaa\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/pshishodiaa\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/pshishodiaa\/orgs","repos_url":"https:\/\/api.github.com\/users\/pshishodiaa\/repos","events_url":"https:\/\/api.github.com\/users\/pshishodiaa\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/pshishodiaa\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-04-15T11:44:03Z","updated_at":"2025-04-15T13:12:13Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nWhen I try to load an already downloaded dataset with num_proc=64, the speed is very high for the first 10-20 seconds acheiving 30-40K samples \/ s, and 100% utilization for all cores but it soon drops to <= 1000 with almost 0% utilization for most cores. \n\n### Steps to reproduce the bug\n\n```\n\/\/ download dataset with cli\n!huggingface-cli download --repo-type dataset timm\/imagenet-1k-wds --max-workers 32\n\nfrom datasets import load_dataset\nds = load_dataset(\"timm\/imagenet-1k-wds\", num_proc=64)\n```\n\n\n### Expected behavior\n\n100% core utilization throughout. \n\n### Environment info\n\nAzure A100-80GB, 16 cores VM\n\n![Image](https:\/\/github.com\/user-attachments\/assets\/69d00fe3-d720-4474-9439-21e046d85034)","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7518\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7518\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7517","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7517\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7517\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7517\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7517","id":2996106077,"node_id":"I_kwDODunzps6ylPNd","number":7517,"title":"Image Feature in Datasets Library Fails to Handle bytearray Objects from Spark DataFrames","user":{"login":"giraffacarp","id":73196164,"node_id":"MDQ6VXNlcjczMTk2MTY0","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/73196164?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/giraffacarp","html_url":"https:\/\/github.com\/giraffacarp","followers_url":"https:\/\/api.github.com\/users\/giraffacarp\/followers","following_url":"https:\/\/api.github.com\/users\/giraffacarp\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/giraffacarp\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/giraffacarp\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/giraffacarp\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/giraffacarp\/orgs","repos_url":"https:\/\/api.github.com\/users\/giraffacarp\/repos","events_url":"https:\/\/api.github.com\/users\/giraffacarp\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/giraffacarp\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"giraffacarp","id":73196164,"node_id":"MDQ6VXNlcjczMTk2MTY0","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/73196164?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/giraffacarp","html_url":"https:\/\/github.com\/giraffacarp","followers_url":"https:\/\/api.github.com\/users\/giraffacarp\/followers","following_url":"https:\/\/api.github.com\/users\/giraffacarp\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/giraffacarp\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/giraffacarp\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/giraffacarp\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/giraffacarp\/orgs","repos_url":"https:\/\/api.github.com\/users\/giraffacarp\/repos","events_url":"https:\/\/api.github.com\/users\/giraffacarp\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/giraffacarp\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"giraffacarp","id":73196164,"node_id":"MDQ6VXNlcjczMTk2MTY0","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/73196164?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/giraffacarp","html_url":"https:\/\/github.com\/giraffacarp","followers_url":"https:\/\/api.github.com\/users\/giraffacarp\/followers","following_url":"https:\/\/api.github.com\/users\/giraffacarp\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/giraffacarp\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/giraffacarp\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/giraffacarp\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/giraffacarp\/orgs","repos_url":"https:\/\/api.github.com\/users\/giraffacarp\/repos","events_url":"https:\/\/api.github.com\/users\/giraffacarp\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/giraffacarp\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":4,"created_at":"2025-04-15T11:29:17Z","updated_at":"2025-05-07T14:17:30Z","closed_at":"2025-05-07T14:17:30Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nWhen using `IterableDataset.from_spark()` with a Spark DataFrame containing image data, the `Image` feature class fails to properly process this data type, causing an `AttributeError: 'bytearray' object has no attribute 'get'`\n\n### Steps to reproduce the bug\n\n1. Create a Spark DataFrame with a column containing image data as bytearray objects\n2. Define a Feature schema with an Image feature\n3. Create an IterableDataset using `IterableDataset.from_spark()`\n4. Attempt to iterate through the dataset\n\n```\nfrom pyspark.sql import SparkSession\nfrom datasets import Dataset, IterableDataset, Features, Image, Value\n\n# initialize spark\nspark = SparkSession.builder.appName(\"MinimalRepro\").getOrCreate()\n\n# create spark dataframe\ndata = [(0, open(\"image.png\", \"rb\").read())]\ndf = spark.createDataFrame(data, \"idx: int, image: binary\")\n\n# convert to dataset\nfeatures = Features({\"idx\": Value(\"int64\"), \"image\": Image()})\nds = Dataset.from_spark(df, features=features)\nds_iter = IterableDataset.from_spark(df, features=features)\n\n# iterate\nprint(next(iter(ds)))\nprint(next(iter(ds_iter)))\n```\n\n### Expected behavior\n\nThe features should work on `IterableDataset` the same way they work on `Dataset`\n\n### Environment info\n\n- `datasets` version: 3.5.0\n- Platform: macOS-15.3.2-arm64-arm-64bit\n- Python version: 3.12.7\n- `huggingface_hub` version: 0.30.2\n- PyArrow version: 18.1.0\n- Pandas version: 2.2.3\n- `fsspec` version: 2024.12.0\n","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7517\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7517\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7516","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7516\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7516\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7516\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7516","id":2995780283,"node_id":"I_kwDODunzps6yj_q7","number":7516,"title":"unsloth\/DeepSeek-R1-Distill-Qwen-32B server error","user":{"login":"Editor-1","id":164353862,"node_id":"U_kgDOCcvXRg","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/164353862?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Editor-1","html_url":"https:\/\/github.com\/Editor-1","followers_url":"https:\/\/api.github.com\/users\/Editor-1\/followers","following_url":"https:\/\/api.github.com\/users\/Editor-1\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Editor-1\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Editor-1\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Editor-1\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Editor-1\/orgs","repos_url":"https:\/\/api.github.com\/users\/Editor-1\/repos","events_url":"https:\/\/api.github.com\/users\/Editor-1\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Editor-1\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-04-15T09:26:53Z","updated_at":"2025-04-15T09:57:26Z","closed_at":"2025-04-15T09:57:26Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nhfhubhttperror: 500 server error: internal server error for url: https:\/\/huggingface.co\/api\/models\/unsloth\/deepseek-r1-distill-qwen-32b-bnb-4bit\/commits\/main (request id: root=1-67fe23fa-3a2150eb444c2a823c388579;de3aed68-c397-4da5-94d4-6565efd3b919) internal error - we're working hard to fix this as soon as possible!\n\n### Steps to reproduce the bug\n\nunsloth\/DeepSeek-R1-Distill-Qwen-32B server error\n\n### Expected behavior\n\nNetwork repair\n\n### Environment info\n\nThe web side is also unavailable","closed_by":{"login":"Editor-1","id":164353862,"node_id":"U_kgDOCcvXRg","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/164353862?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Editor-1","html_url":"https:\/\/github.com\/Editor-1","followers_url":"https:\/\/api.github.com\/users\/Editor-1\/followers","following_url":"https:\/\/api.github.com\/users\/Editor-1\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Editor-1\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Editor-1\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Editor-1\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Editor-1\/orgs","repos_url":"https:\/\/api.github.com\/users\/Editor-1\/repos","events_url":"https:\/\/api.github.com\/users\/Editor-1\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Editor-1\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7516\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7516\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7515","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7515\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7515\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7515\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7515","id":2995082418,"node_id":"I_kwDODunzps6yhVSy","number":7515,"title":"`concatenate_datasets` does not preserve Pytorch format for IterableDataset","user":{"login":"francescorubbo","id":5140987,"node_id":"MDQ6VXNlcjUxNDA5ODc=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/5140987?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/francescorubbo","html_url":"https:\/\/github.com\/francescorubbo","followers_url":"https:\/\/api.github.com\/users\/francescorubbo\/followers","following_url":"https:\/\/api.github.com\/users\/francescorubbo\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/francescorubbo\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/francescorubbo\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/francescorubbo\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/francescorubbo\/orgs","repos_url":"https:\/\/api.github.com\/users\/francescorubbo\/repos","events_url":"https:\/\/api.github.com\/users\/francescorubbo\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/francescorubbo\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-04-15T04:36:34Z","updated_at":"2025-05-19T15:07:38Z","closed_at":"2025-05-19T15:07:38Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nWhen concatenating datasets with `concatenate_datasets`, I would expect the resulting combined dataset to be in the same format as the inputs (assuming it's consistent). This is indeed the behavior when combining `Dataset`, but not when combining `IterableDataset`. Specifically, when applying `concatenate_datasets` to a list of `IterableDataset` in Pytorch format (i.e. using `.with_format(Pytorch)`), the output `IterableDataset` is not in Pytorch format.\n\n### Steps to reproduce the bug\n\n```\nimport datasets\nds = datasets.Dataset.from_dict({\"a\": [1,2,3]})\niterable_ds = ds.to_iterable_dataset()\ndatasets.concatenate_datasets([ds.with_format(\"torch\")]) # <- this preserves Pytorch format\ndatasets.concatenate_datasets([iterable_ds.with_format(\"torch\")]) # <- this does NOT preserves Pytorch format\n```\n\n### Expected behavior\n\nPytorch format should be preserved when combining IterableDataset in Pytorch format.\n\n### Environment info\n\ndatasets==3.5.0, Python 3.11.11, torch==2.2.2","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7515\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7515\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7514","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7514\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7514\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7514\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7514","id":2994714923,"node_id":"PR_kwDODunzps6Sk7Et","number":7514,"title":"Do not hash `generator` in `BuilderConfig.create_config_id`","user":{"login":"simonreise","id":43753582,"node_id":"MDQ6VXNlcjQzNzUzNTgy","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/43753582?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/simonreise","html_url":"https:\/\/github.com\/simonreise","followers_url":"https:\/\/api.github.com\/users\/simonreise\/followers","following_url":"https:\/\/api.github.com\/users\/simonreise\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/simonreise\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/simonreise\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/simonreise\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/simonreise\/orgs","repos_url":"https:\/\/api.github.com\/users\/simonreise\/repos","events_url":"https:\/\/api.github.com\/users\/simonreise\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/simonreise\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-04-15T01:26:43Z","updated_at":"2025-04-23T11:55:55Z","closed_at":"2025-04-15T16:27:51Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7514","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7514","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7514.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7514.patch","merged_at":null},"body":"`Dataset.from_generator` function passes all of its arguments to `BuilderConfig.create_config_id`, including generator function itself. `BuilderConfig.create_config_id` function tries to hash all the args, and hashing a `generator` can take a large amount of time or even cause MemoryError if the dataset processed in a generator function is large enough.\r\n\r\nMaybe we should pop generator from `config_kwargs_to_add_to_suffix` before hashing to avoid it.\r\n\r\nThere is a more detailed description of the problem this PR solves in #7513 ","closed_by":{"login":"simonreise","id":43753582,"node_id":"MDQ6VXNlcjQzNzUzNTgy","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/43753582?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/simonreise","html_url":"https:\/\/github.com\/simonreise","followers_url":"https:\/\/api.github.com\/users\/simonreise\/followers","following_url":"https:\/\/api.github.com\/users\/simonreise\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/simonreise\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/simonreise\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/simonreise\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/simonreise\/orgs","repos_url":"https:\/\/api.github.com\/users\/simonreise\/repos","events_url":"https:\/\/api.github.com\/users\/simonreise\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/simonreise\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7514\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7514\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7513","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7513\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7513\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7513\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7513","id":2994678437,"node_id":"I_kwDODunzps6yfyql","number":7513,"title":"MemoryError while creating dataset from generator","user":{"login":"simonreise","id":43753582,"node_id":"MDQ6VXNlcjQzNzUzNTgy","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/43753582?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/simonreise","html_url":"https:\/\/github.com\/simonreise","followers_url":"https:\/\/api.github.com\/users\/simonreise\/followers","following_url":"https:\/\/api.github.com\/users\/simonreise\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/simonreise\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/simonreise\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/simonreise\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/simonreise\/orgs","repos_url":"https:\/\/api.github.com\/users\/simonreise\/repos","events_url":"https:\/\/api.github.com\/users\/simonreise\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/simonreise\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2025-04-15T01:02:02Z","updated_at":"2025-04-23T19:37:08Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\n# TL:DR\n\n`Dataset.from_generator` function passes all of its arguments to `BuilderConfig.create_config_id`, including `generator` function itself. `BuilderConfig.create_config_id` function tries to hash all the args, which can take a large amount of time or even cause MemoryError if the dataset processed in a generator function is large enough.\n\nMaybe we should pop `generator` from `config_kwargs_to_add_to_suffix` before hashing to avoid it.\n\n# Full description\n\nI have a pretty large spatial imagery dataset that is generated from two xbatcher.BatchGenerators via custom `dataset_generator` function that looks like this if simplified:\n```\ndef dataset_generator():\n for index in samples:\n data_dict = {\n \"key\": index,\n \"x\": x_batches[index].data,\n \"y\": y_batches[index].data,\n }\n yield data_dict\n```\nThen I use `datasets.Dataset.from_generator` to generate the dataset itself.\n```\n# Create dataset\nds = datasets.Dataset.from_generator(\n dataset_generator,\n features=feat,\n cache_dir=(output \/ \".cache\"),\n)\n```\n\nIt works nicely with pretty small data, but if the dataset is huge and barely fits in memory, it crashes with memory error:\n
\nFull stack trace<\/summary>\n\n```\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\remote_sensing_processor\\segmentation\\semantic\\tiles.py:248](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/remote_sensing_processor\/segmentation\/semantic\/tiles.py#line=247), in generate_tiles(x, y, output, tile_size, shuffle, split, x_dtype, y_dtype, x_nodata, y_nodata)\n 245 yield data_dict\n 247 # Create dataset\n--> 248 ds = datasets.Dataset.from_generator(\n 249 dataset_generator,\n 250 features=feat,\n 251 cache_dir=(output \/ \".cache\"),\n 252 )\n 254 # Save dataset\n 255 ds.save_to_disk(output \/ name)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\datasets\\arrow_dataset.py:1105](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/datasets\/arrow_dataset.py#line=1104), in Dataset.from_generator(generator, features, cache_dir, keep_in_memory, gen_kwargs, num_proc, split, **kwargs)\n 1052 \"\"\"Create a Dataset from a generator.\n 1053 \n 1054 Args:\n (...) 1101 ```\n 1102 \"\"\"\n 1103 from .io.generator import GeneratorDatasetInputStream\n-> 1105 return GeneratorDatasetInputStream(\n 1106 generator=generator,\n 1107 features=features,\n 1108 cache_dir=cache_dir,\n 1109 keep_in_memory=keep_in_memory,\n 1110 gen_kwargs=gen_kwargs,\n 1111 num_proc=num_proc,\n 1112 split=split,\n 1113 **kwargs,\n 1114 ).read()\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\datasets\\io\\generator.py:29](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/datasets\/io\/generator.py#line=28), in GeneratorDatasetInputStream.__init__(self, generator, features, cache_dir, keep_in_memory, streaming, gen_kwargs, num_proc, split, **kwargs)\n 9 def __init__(\n 10 self,\n 11 generator: Callable,\n (...) 19 **kwargs,\n 20 ):\n 21 super().__init__(\n 22 features=features,\n 23 cache_dir=cache_dir,\n (...) 27 **kwargs,\n 28 )\n---> 29 self.builder = Generator(\n 30 cache_dir=cache_dir,\n 31 features=features,\n 32 generator=generator,\n 33 gen_kwargs=gen_kwargs,\n 34 split=split,\n 35 **kwargs,\n 36 )\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\datasets\\builder.py:343](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/datasets\/builder.py#line=342), in DatasetBuilder.__init__(self, cache_dir, dataset_name, config_name, hash, base_path, info, features, token, repo_id, data_files, data_dir, storage_options, writer_batch_size, **config_kwargs)\n 341 config_kwargs[\"data_dir\"] = data_dir\n 342 self.config_kwargs = config_kwargs\n--> 343 self.config, self.config_id = self._create_builder_config(\n 344 config_name=config_name,\n 345 custom_features=features,\n 346 **config_kwargs,\n 347 )\n 349 # prepare info: DatasetInfo are a standardized dataclass across all datasets\n 350 # Prefill datasetinfo\n 351 if info is None:\n 352 # TODO FOR PACKAGED MODULES IT IMPORTS DATA FROM src\/packaged_modules which doesn't make sense\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\datasets\\builder.py:604](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/datasets\/builder.py#line=603), in DatasetBuilder._create_builder_config(self, config_name, custom_features, **config_kwargs)\n 598 builder_config._resolve_data_files(\n 599 base_path=self.base_path,\n 600 download_config=DownloadConfig(token=self.token, storage_options=self.storage_options),\n 601 )\n 603 # compute the config id that is going to be used for caching\n--> 604 config_id = builder_config.create_config_id(\n 605 config_kwargs,\n 606 custom_features=custom_features,\n 607 )\n 608 is_custom = (config_id not in self.builder_configs) and config_id != \"default\"\n 609 if is_custom:\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\datasets\\builder.py:187](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/datasets\/builder.py#line=186), in BuilderConfig.create_config_id(self, config_kwargs, custom_features)\n 185 suffix = Hasher.hash(config_kwargs_to_add_to_suffix)\n 186 else:\n--> 187 suffix = Hasher.hash(config_kwargs_to_add_to_suffix)\n 189 if custom_features is not None:\n 190 m = Hasher()\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\datasets\\fingerprint.py:188](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/datasets\/fingerprint.py#line=187), in Hasher.hash(cls, value)\n 186 @classmethod\n 187 def hash(cls, value: Any) -> str:\n--> 188 return cls.hash_bytes(dumps(value))\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\datasets\\utils\\_dill.py:109](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/datasets\/utils\/_dill.py#line=108), in dumps(obj)\n 107 \"\"\"Pickle an object to a string.\"\"\"\n 108 file = BytesIO()\n--> 109 dump(obj, file)\n 110 return file.getvalue()\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\datasets\\utils\\_dill.py:103](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/datasets\/utils\/_dill.py#line=102), in dump(obj, file)\n 101 def dump(obj, file):\n 102 \"\"\"Pickle an object to a file.\"\"\"\n--> 103 Pickler(file, recurse=True).dump(obj)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\dill\\_dill.py:420](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/dill\/_dill.py#line=419), in Pickler.dump(self, obj)\n 418 def dump(self, obj): #NOTE: if settings change, need to update attributes\n 419 logger.trace_setup(self)\n--> 420 StockPickler.dump(self, obj)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\pickle.py:484](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/pickle.py#line=483), in _Pickler.dump(self, obj)\n 482 if self.proto >= 4:\n 483 self.framer.start_framing()\n--> 484 self.save(obj)\n 485 self.write(STOP)\n 486 self.framer.end_framing()\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\datasets\\utils\\_dill.py:70](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/datasets\/utils\/_dill.py#line=69), in Pickler.save(self, obj, save_persistent_id)\n 68 if obj_type is FunctionType:\n 69 obj = getattr(obj, \"_torchdynamo_orig_callable\", obj)\n---> 70 dill.Pickler.save(self, obj, save_persistent_id=save_persistent_id)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\dill\\_dill.py:414](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/dill\/_dill.py#line=413), in Pickler.save(self, obj, save_persistent_id)\n 412 msg = \"Can't pickle %s: attribute lookup builtins.generator failed\" % GeneratorType\n 413 raise PicklingError(msg)\n--> 414 StockPickler.save(self, obj, save_persistent_id)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\pickle.py:558](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/pickle.py#line=557), in _Pickler.save(self, obj, save_persistent_id)\n 556 f = self.dispatch.get(t)\n 557 if f is not None:\n--> 558 f(self, obj) # Call unbound method with explicit self\n 559 return\n 561 # Check private dispatch table if any, or else\n 562 # copyreg.dispatch_table\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\dill\\_dill.py:1217](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/dill\/_dill.py#line=1216), in save_module_dict(pickler, obj)\n 1214 if is_dill(pickler, child=False) and pickler._session:\n 1215 # we only care about session the first pass thru\n 1216 pickler._first_pass = False\n-> 1217 StockPickler.save_dict(pickler, obj)\n 1218 logger.trace(pickler, \"# D2\")\n 1219 return\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\pickle.py:990](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/pickle.py#line=989), in _Pickler.save_dict(self, obj)\n 987 self.write(MARK + DICT)\n 989 self.memoize(obj)\n--> 990 self._batch_setitems(obj.items())\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\datasets\\utils\\_dill.py:83](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/datasets\/utils\/_dill.py#line=82), in Pickler._batch_setitems(self, items)\n 80 from datasets.fingerprint import Hasher\n 82 items = sorted(items, key=lambda x: Hasher.hash(x[0]))\n---> 83 dill.Pickler._batch_setitems(self, items)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\pickle.py:1014](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/pickle.py#line=1013), in _Pickler._batch_setitems(self, items)\n 1012 for k, v in tmp:\n 1013 save(k)\n-> 1014 save(v)\n 1015 write(SETITEMS)\n 1016 elif n:\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\datasets\\utils\\_dill.py:70](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/datasets\/utils\/_dill.py#line=69), in Pickler.save(self, obj, save_persistent_id)\n 68 if obj_type is FunctionType:\n 69 obj = getattr(obj, \"_torchdynamo_orig_callable\", obj)\n---> 70 dill.Pickler.save(self, obj, save_persistent_id=save_persistent_id)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\dill\\_dill.py:414](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/dill\/_dill.py#line=413), in Pickler.save(self, obj, save_persistent_id)\n 412 msg = \"Can't pickle %s: attribute lookup builtins.generator failed\" % GeneratorType\n 413 raise PicklingError(msg)\n--> 414 StockPickler.save(self, obj, save_persistent_id)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\pickle.py:558](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/pickle.py#line=557), in _Pickler.save(self, obj, save_persistent_id)\n 556 f = self.dispatch.get(t)\n 557 if f is not None:\n--> 558 f(self, obj) # Call unbound method with explicit self\n 559 return\n 561 # Check private dispatch table if any, or else\n 562 # copyreg.dispatch_table\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\dill\\_dill.py:1985](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/dill\/_dill.py#line=1984), in save_function(pickler, obj)\n 1982 if state_dict:\n 1983 state = state, state_dict\n-> 1985 _save_with_postproc(pickler, (_create_function, (\n 1986 obj.__code__, globs, obj.__name__, obj.__defaults__,\n 1987 closure\n 1988 ), state), obj=obj, postproc_list=postproc_list)\n 1990 # Lift closure cell update to earliest function (#458)\n 1991 if _postproc:\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\dill\\_dill.py:1117](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/dill\/_dill.py#line=1116), in _save_with_postproc(pickler, reduction, is_pickler_dill, obj, postproc_list)\n 1115 continue\n 1116 else:\n-> 1117 pickler.save_reduce(*reduction)\n 1118 # pop None created by calling preprocessing step off stack\n 1119 pickler.write(POP)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\pickle.py:690](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/pickle.py#line=689), in _Pickler.save_reduce(self, func, args, state, listitems, dictitems, state_setter, obj)\n 688 else:\n 689 save(func)\n--> 690 save(args)\n 691 write(REDUCE)\n 693 if obj is not None:\n 694 # If the object is already in the memo, this means it is\n 695 # recursive. In this case, throw away everything we put on the\n 696 # stack, and fetch the object back from the memo.\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\datasets\\utils\\_dill.py:70](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/datasets\/utils\/_dill.py#line=69), in Pickler.save(self, obj, save_persistent_id)\n 68 if obj_type is FunctionType:\n 69 obj = getattr(obj, \"_torchdynamo_orig_callable\", obj)\n---> 70 dill.Pickler.save(self, obj, save_persistent_id=save_persistent_id)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\dill\\_dill.py:414](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/dill\/_dill.py#line=413), in Pickler.save(self, obj, save_persistent_id)\n 412 msg = \"Can't pickle %s: attribute lookup builtins.generator failed\" % GeneratorType\n 413 raise PicklingError(msg)\n--> 414 StockPickler.save(self, obj, save_persistent_id)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\pickle.py:558](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/pickle.py#line=557), in _Pickler.save(self, obj, save_persistent_id)\n 556 f = self.dispatch.get(t)\n 557 if f is not None:\n--> 558 f(self, obj) # Call unbound method with explicit self\n 559 return\n 561 # Check private dispatch table if any, or else\n 562 # copyreg.dispatch_table\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\pickle.py:905](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/pickle.py#line=904), in _Pickler.save_tuple(self, obj)\n 903 if n <= 3 and self.proto >= 2:\n 904 for element in obj:\n--> 905 save(element)\n 906 # Subtle. Same as in the big comment below.\n 907 if id(obj) in memo:\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\datasets\\utils\\_dill.py:70](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/datasets\/utils\/_dill.py#line=69), in Pickler.save(self, obj, save_persistent_id)\n 68 if obj_type is FunctionType:\n 69 obj = getattr(obj, \"_torchdynamo_orig_callable\", obj)\n---> 70 dill.Pickler.save(self, obj, save_persistent_id=save_persistent_id)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\dill\\_dill.py:414](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/dill\/_dill.py#line=413), in Pickler.save(self, obj, save_persistent_id)\n 412 msg = \"Can't pickle %s: attribute lookup builtins.generator failed\" % GeneratorType\n 413 raise PicklingError(msg)\n--> 414 StockPickler.save(self, obj, save_persistent_id)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\pickle.py:601](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/pickle.py#line=600), in _Pickler.save(self, obj, save_persistent_id)\n 597 raise PicklingError(\"Tuple returned by %s must have \"\n 598 \"two to six elements\" % reduce)\n 600 # Save the reduce() output and finally memoize the object\n--> 601 self.save_reduce(obj=obj, *rv)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\pickle.py:715](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/pickle.py#line=714), in _Pickler.save_reduce(self, func, args, state, listitems, dictitems, state_setter, obj)\n 713 if state is not None:\n 714 if state_setter is None:\n--> 715 save(state)\n 716 write(BUILD)\n 717 else:\n 718 # If a state_setter is specified, call it instead of load_build\n 719 # to update obj's with its previous state.\n 720 # First, push state_setter and its tuple of expected arguments\n 721 # (obj, state) onto the stack.\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\datasets\\utils\\_dill.py:70](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/datasets\/utils\/_dill.py#line=69), in Pickler.save(self, obj, save_persistent_id)\n 68 if obj_type is FunctionType:\n 69 obj = getattr(obj, \"_torchdynamo_orig_callable\", obj)\n---> 70 dill.Pickler.save(self, obj, save_persistent_id=save_persistent_id)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\dill\\_dill.py:414](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/dill\/_dill.py#line=413), in Pickler.save(self, obj, save_persistent_id)\n 412 msg = \"Can't pickle %s: attribute lookup builtins.generator failed\" % GeneratorType\n 413 raise PicklingError(msg)\n--> 414 StockPickler.save(self, obj, save_persistent_id)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\pickle.py:558](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/pickle.py#line=557), in _Pickler.save(self, obj, save_persistent_id)\n 556 f = self.dispatch.get(t)\n 557 if f is not None:\n--> 558 f(self, obj) # Call unbound method with explicit self\n 559 return\n 561 # Check private dispatch table if any, or else\n 562 # copyreg.dispatch_table\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\dill\\_dill.py:1217](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/dill\/_dill.py#line=1216), in save_module_dict(pickler, obj)\n 1214 if is_dill(pickler, child=False) and pickler._session:\n 1215 # we only care about session the first pass thru\n 1216 pickler._first_pass = False\n-> 1217 StockPickler.save_dict(pickler, obj)\n 1218 logger.trace(pickler, \"# D2\")\n 1219 return\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\pickle.py:990](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/pickle.py#line=989), in _Pickler.save_dict(self, obj)\n 987 self.write(MARK + DICT)\n 989 self.memoize(obj)\n--> 990 self._batch_setitems(obj.items())\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\datasets\\utils\\_dill.py:83](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/datasets\/utils\/_dill.py#line=82), in Pickler._batch_setitems(self, items)\n 80 from datasets.fingerprint import Hasher\n 82 items = sorted(items, key=lambda x: Hasher.hash(x[0]))\n---> 83 dill.Pickler._batch_setitems(self, items)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\pickle.py:1014](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/pickle.py#line=1013), in _Pickler._batch_setitems(self, items)\n 1012 for k, v in tmp:\n 1013 save(k)\n-> 1014 save(v)\n 1015 write(SETITEMS)\n 1016 elif n:\n\n [... skipping similar frames: Pickler.save at line 70 (1 times), Pickler.save at line 414 (1 times)]\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\pickle.py:601](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/pickle.py#line=600), in _Pickler.save(self, obj, save_persistent_id)\n 597 raise PicklingError(\"Tuple returned by %s must have \"\n 598 \"two to six elements\" % reduce)\n 600 # Save the reduce() output and finally memoize the object\n--> 601 self.save_reduce(obj=obj, *rv)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\pickle.py:715](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/pickle.py#line=714), in _Pickler.save_reduce(self, func, args, state, listitems, dictitems, state_setter, obj)\n 713 if state is not None:\n 714 if state_setter is None:\n--> 715 save(state)\n 716 write(BUILD)\n 717 else:\n 718 # If a state_setter is specified, call it instead of load_build\n 719 # to update obj's with its previous state.\n 720 # First, push state_setter and its tuple of expected arguments\n 721 # (obj, state) onto the stack.\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\datasets\\utils\\_dill.py:70](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/datasets\/utils\/_dill.py#line=69), in Pickler.save(self, obj, save_persistent_id)\n 68 if obj_type is FunctionType:\n 69 obj = getattr(obj, \"_torchdynamo_orig_callable\", obj)\n---> 70 dill.Pickler.save(self, obj, save_persistent_id=save_persistent_id)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\dill\\_dill.py:414](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/dill\/_dill.py#line=413), in Pickler.save(self, obj, save_persistent_id)\n 412 msg = \"Can't pickle %s: attribute lookup builtins.generator failed\" % GeneratorType\n 413 raise PicklingError(msg)\n--> 414 StockPickler.save(self, obj, save_persistent_id)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\pickle.py:558](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/pickle.py#line=557), in _Pickler.save(self, obj, save_persistent_id)\n 556 f = self.dispatch.get(t)\n 557 if f is not None:\n--> 558 f(self, obj) # Call unbound method with explicit self\n 559 return\n 561 # Check private dispatch table if any, or else\n 562 # copyreg.dispatch_table\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\pickle.py:905](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/pickle.py#line=904), in _Pickler.save_tuple(self, obj)\n 903 if n <= 3 and self.proto >= 2:\n 904 for element in obj:\n--> 905 save(element)\n 906 # Subtle. Same as in the big comment below.\n 907 if id(obj) in memo:\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\datasets\\utils\\_dill.py:70](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/datasets\/utils\/_dill.py#line=69), in Pickler.save(self, obj, save_persistent_id)\n 68 if obj_type is FunctionType:\n 69 obj = getattr(obj, \"_torchdynamo_orig_callable\", obj)\n---> 70 dill.Pickler.save(self, obj, save_persistent_id=save_persistent_id)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\dill\\_dill.py:414](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/dill\/_dill.py#line=413), in Pickler.save(self, obj, save_persistent_id)\n 412 msg = \"Can't pickle %s: attribute lookup builtins.generator failed\" % GeneratorType\n 413 raise PicklingError(msg)\n--> 414 StockPickler.save(self, obj, save_persistent_id)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\pickle.py:558](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/pickle.py#line=557), in _Pickler.save(self, obj, save_persistent_id)\n 556 f = self.dispatch.get(t)\n 557 if f is not None:\n--> 558 f(self, obj) # Call unbound method with explicit self\n 559 return\n 561 # Check private dispatch table if any, or else\n 562 # copyreg.dispatch_table\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\dill\\_dill.py:1217](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/dill\/_dill.py#line=1216), in save_module_dict(pickler, obj)\n 1214 if is_dill(pickler, child=False) and pickler._session:\n 1215 # we only care about session the first pass thru\n 1216 pickler._first_pass = False\n-> 1217 StockPickler.save_dict(pickler, obj)\n 1218 logger.trace(pickler, \"# D2\")\n 1219 return\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\pickle.py:990](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/pickle.py#line=989), in _Pickler.save_dict(self, obj)\n 987 self.write(MARK + DICT)\n 989 self.memoize(obj)\n--> 990 self._batch_setitems(obj.items())\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\datasets\\utils\\_dill.py:83](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/datasets\/utils\/_dill.py#line=82), in Pickler._batch_setitems(self, items)\n 80 from datasets.fingerprint import Hasher\n 82 items = sorted(items, key=lambda x: Hasher.hash(x[0]))\n---> 83 dill.Pickler._batch_setitems(self, items)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\pickle.py:1014](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/pickle.py#line=1013), in _Pickler._batch_setitems(self, items)\n 1012 for k, v in tmp:\n 1013 save(k)\n-> 1014 save(v)\n 1015 write(SETITEMS)\n 1016 elif n:\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\datasets\\utils\\_dill.py:70](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/datasets\/utils\/_dill.py#line=69), in Pickler.save(self, obj, save_persistent_id)\n 68 if obj_type is FunctionType:\n 69 obj = getattr(obj, \"_torchdynamo_orig_callable\", obj)\n---> 70 dill.Pickler.save(self, obj, save_persistent_id=save_persistent_id)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\dill\\_dill.py:414](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/dill\/_dill.py#line=413), in Pickler.save(self, obj, save_persistent_id)\n 412 msg = \"Can't pickle %s: attribute lookup builtins.generator failed\" % GeneratorType\n 413 raise PicklingError(msg)\n--> 414 StockPickler.save(self, obj, save_persistent_id)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\pickle.py:601](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/pickle.py#line=600), in _Pickler.save(self, obj, save_persistent_id)\n 597 raise PicklingError(\"Tuple returned by %s must have \"\n 598 \"two to six elements\" % reduce)\n 600 # Save the reduce() output and finally memoize the object\n--> 601 self.save_reduce(obj=obj, *rv)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\pickle.py:715](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/pickle.py#line=714), in _Pickler.save_reduce(self, func, args, state, listitems, dictitems, state_setter, obj)\n 713 if state is not None:\n 714 if state_setter is None:\n--> 715 save(state)\n 716 write(BUILD)\n 717 else:\n 718 # If a state_setter is specified, call it instead of load_build\n 719 # to update obj's with its previous state.\n 720 # First, push state_setter and its tuple of expected arguments\n 721 # (obj, state) onto the stack.\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\datasets\\utils\\_dill.py:70](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/datasets\/utils\/_dill.py#line=69), in Pickler.save(self, obj, save_persistent_id)\n 68 if obj_type is FunctionType:\n 69 obj = getattr(obj, \"_torchdynamo_orig_callable\", obj)\n---> 70 dill.Pickler.save(self, obj, save_persistent_id=save_persistent_id)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\dill\\_dill.py:414](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/dill\/_dill.py#line=413), in Pickler.save(self, obj, save_persistent_id)\n 412 msg = \"Can't pickle %s: attribute lookup builtins.generator failed\" % GeneratorType\n 413 raise PicklingError(msg)\n--> 414 StockPickler.save(self, obj, save_persistent_id)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\pickle.py:558](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/pickle.py#line=557), in _Pickler.save(self, obj, save_persistent_id)\n 556 f = self.dispatch.get(t)\n 557 if f is not None:\n--> 558 f(self, obj) # Call unbound method with explicit self\n 559 return\n 561 # Check private dispatch table if any, or else\n 562 # copyreg.dispatch_table\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\pickle.py:905](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/pickle.py#line=904), in _Pickler.save_tuple(self, obj)\n 903 if n <= 3 and self.proto >= 2:\n 904 for element in obj:\n--> 905 save(element)\n 906 # Subtle. Same as in the big comment below.\n 907 if id(obj) in memo:\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\datasets\\utils\\_dill.py:70](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/datasets\/utils\/_dill.py#line=69), in Pickler.save(self, obj, save_persistent_id)\n 68 if obj_type is FunctionType:\n 69 obj = getattr(obj, \"_torchdynamo_orig_callable\", obj)\n---> 70 dill.Pickler.save(self, obj, save_persistent_id=save_persistent_id)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\dill\\_dill.py:414](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/dill\/_dill.py#line=413), in Pickler.save(self, obj, save_persistent_id)\n 412 msg = \"Can't pickle %s: attribute lookup builtins.generator failed\" % GeneratorType\n 413 raise PicklingError(msg)\n--> 414 StockPickler.save(self, obj, save_persistent_id)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\pickle.py:558](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/pickle.py#line=557), in _Pickler.save(self, obj, save_persistent_id)\n 556 f = self.dispatch.get(t)\n 557 if f is not None:\n--> 558 f(self, obj) # Call unbound method with explicit self\n 559 return\n 561 # Check private dispatch table if any, or else\n 562 # copyreg.dispatch_table\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\dill\\_dill.py:1217](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/dill\/_dill.py#line=1216), in save_module_dict(pickler, obj)\n 1214 if is_dill(pickler, child=False) and pickler._session:\n 1215 # we only care about session the first pass thru\n 1216 pickler._first_pass = False\n-> 1217 StockPickler.save_dict(pickler, obj)\n 1218 logger.trace(pickler, \"# D2\")\n 1219 return\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\pickle.py:990](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/pickle.py#line=989), in _Pickler.save_dict(self, obj)\n 987 self.write(MARK + DICT)\n 989 self.memoize(obj)\n--> 990 self._batch_setitems(obj.items())\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\datasets\\utils\\_dill.py:83](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/datasets\/utils\/_dill.py#line=82), in Pickler._batch_setitems(self, items)\n 80 from datasets.fingerprint import Hasher\n 82 items = sorted(items, key=lambda x: Hasher.hash(x[0]))\n---> 83 dill.Pickler._batch_setitems(self, items)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\pickle.py:1014](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/pickle.py#line=1013), in _Pickler._batch_setitems(self, items)\n 1012 for k, v in tmp:\n 1013 save(k)\n-> 1014 save(v)\n 1015 write(SETITEMS)\n 1016 elif n:\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\datasets\\utils\\_dill.py:70](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/datasets\/utils\/_dill.py#line=69), in Pickler.save(self, obj, save_persistent_id)\n 68 if obj_type is FunctionType:\n 69 obj = getattr(obj, \"_torchdynamo_orig_callable\", obj)\n---> 70 dill.Pickler.save(self, obj, save_persistent_id=save_persistent_id)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\dill\\_dill.py:414](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/dill\/_dill.py#line=413), in Pickler.save(self, obj, save_persistent_id)\n 412 msg = \"Can't pickle %s: attribute lookup builtins.generator failed\" % GeneratorType\n 413 raise PicklingError(msg)\n--> 414 StockPickler.save(self, obj, save_persistent_id)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\pickle.py:601](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/pickle.py#line=600), in _Pickler.save(self, obj, save_persistent_id)\n 597 raise PicklingError(\"Tuple returned by %s must have \"\n 598 \"two to six elements\" % reduce)\n 600 # Save the reduce() output and finally memoize the object\n--> 601 self.save_reduce(obj=obj, *rv)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\pickle.py:690](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/pickle.py#line=689), in _Pickler.save_reduce(self, func, args, state, listitems, dictitems, state_setter, obj)\n 688 else:\n 689 save(func)\n--> 690 save(args)\n 691 write(REDUCE)\n 693 if obj is not None:\n 694 # If the object is already in the memo, this means it is\n 695 # recursive. In this case, throw away everything we put on the\n 696 # stack, and fetch the object back from the memo.\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\datasets\\utils\\_dill.py:70](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/datasets\/utils\/_dill.py#line=69), in Pickler.save(self, obj, save_persistent_id)\n 68 if obj_type is FunctionType:\n 69 obj = getattr(obj, \"_torchdynamo_orig_callable\", obj)\n---> 70 dill.Pickler.save(self, obj, save_persistent_id=save_persistent_id)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\dill\\_dill.py:414](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/dill\/_dill.py#line=413), in Pickler.save(self, obj, save_persistent_id)\n 412 msg = \"Can't pickle %s: attribute lookup builtins.generator failed\" % GeneratorType\n 413 raise PicklingError(msg)\n--> 414 StockPickler.save(self, obj, save_persistent_id)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\pickle.py:558](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/pickle.py#line=557), in _Pickler.save(self, obj, save_persistent_id)\n 556 f = self.dispatch.get(t)\n 557 if f is not None:\n--> 558 f(self, obj) # Call unbound method with explicit self\n 559 return\n 561 # Check private dispatch table if any, or else\n 562 # copyreg.dispatch_table\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\pickle.py:920](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/pickle.py#line=919), in _Pickler.save_tuple(self, obj)\n 918 write(MARK)\n 919 for element in obj:\n--> 920 save(element)\n 922 if id(obj) in memo:\n 923 # Subtle. d was not in memo when we entered save_tuple(), so\n 924 # the process of saving the tuple's elements must have saved\n (...) 928 # could have been done in the \"for element\" loop instead, but\n 929 # recursive tuples are a rare thing.\n 930 get = self.get(memo[id(obj)][0])\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\datasets\\utils\\_dill.py:70](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/datasets\/utils\/_dill.py#line=69), in Pickler.save(self, obj, save_persistent_id)\n 68 if obj_type is FunctionType:\n 69 obj = getattr(obj, \"_torchdynamo_orig_callable\", obj)\n---> 70 dill.Pickler.save(self, obj, save_persistent_id=save_persistent_id)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\dill\\_dill.py:414](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/dill\/_dill.py#line=413), in Pickler.save(self, obj, save_persistent_id)\n 412 msg = \"Can't pickle %s: attribute lookup builtins.generator failed\" % GeneratorType\n 413 raise PicklingError(msg)\n--> 414 StockPickler.save(self, obj, save_persistent_id)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\pickle.py:601](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/pickle.py#line=600), in _Pickler.save(self, obj, save_persistent_id)\n 597 raise PicklingError(\"Tuple returned by %s must have \"\n 598 \"two to six elements\" % reduce)\n 600 # Save the reduce() output and finally memoize the object\n--> 601 self.save_reduce(obj=obj, *rv)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\pickle.py:715](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/pickle.py#line=714), in _Pickler.save_reduce(self, func, args, state, listitems, dictitems, state_setter, obj)\n 713 if state is not None:\n 714 if state_setter is None:\n--> 715 save(state)\n 716 write(BUILD)\n 717 else:\n 718 # If a state_setter is specified, call it instead of load_build\n 719 # to update obj's with its previous state.\n 720 # First, push state_setter and its tuple of expected arguments\n 721 # (obj, state) onto the stack.\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\datasets\\utils\\_dill.py:70](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/datasets\/utils\/_dill.py#line=69), in Pickler.save(self, obj, save_persistent_id)\n 68 if obj_type is FunctionType:\n 69 obj = getattr(obj, \"_torchdynamo_orig_callable\", obj)\n---> 70 dill.Pickler.save(self, obj, save_persistent_id=save_persistent_id)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\dill\\_dill.py:414](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/dill\/_dill.py#line=413), in Pickler.save(self, obj, save_persistent_id)\n 412 msg = \"Can't pickle %s: attribute lookup builtins.generator failed\" % GeneratorType\n 413 raise PicklingError(msg)\n--> 414 StockPickler.save(self, obj, save_persistent_id)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\pickle.py:558](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/pickle.py#line=557), in _Pickler.save(self, obj, save_persistent_id)\n 556 f = self.dispatch.get(t)\n 557 if f is not None:\n--> 558 f(self, obj) # Call unbound method with explicit self\n 559 return\n 561 # Check private dispatch table if any, or else\n 562 # copyreg.dispatch_table\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\dill\\_dill.py:1217](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/dill\/_dill.py#line=1216), in save_module_dict(pickler, obj)\n 1214 if is_dill(pickler, child=False) and pickler._session:\n 1215 # we only care about session the first pass thru\n 1216 pickler._first_pass = False\n-> 1217 StockPickler.save_dict(pickler, obj)\n 1218 logger.trace(pickler, \"# D2\")\n 1219 return\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\pickle.py:990](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/pickle.py#line=989), in _Pickler.save_dict(self, obj)\n 987 self.write(MARK + DICT)\n 989 self.memoize(obj)\n--> 990 self._batch_setitems(obj.items())\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\datasets\\utils\\_dill.py:83](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/datasets\/utils\/_dill.py#line=82), in Pickler._batch_setitems(self, items)\n 80 from datasets.fingerprint import Hasher\n 82 items = sorted(items, key=lambda x: Hasher.hash(x[0]))\n---> 83 dill.Pickler._batch_setitems(self, items)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\pickle.py:1014](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/pickle.py#line=1013), in _Pickler._batch_setitems(self, items)\n 1012 for k, v in tmp:\n 1013 save(k)\n-> 1014 save(v)\n 1015 write(SETITEMS)\n 1016 elif n:\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\datasets\\utils\\_dill.py:70](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/datasets\/utils\/_dill.py#line=69), in Pickler.save(self, obj, save_persistent_id)\n 68 if obj_type is FunctionType:\n 69 obj = getattr(obj, \"_torchdynamo_orig_callable\", obj)\n---> 70 dill.Pickler.save(self, obj, save_persistent_id=save_persistent_id)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\dill\\_dill.py:414](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/dill\/_dill.py#line=413), in Pickler.save(self, obj, save_persistent_id)\n 412 msg = \"Can't pickle %s: attribute lookup builtins.generator failed\" % GeneratorType\n 413 raise PicklingError(msg)\n--> 414 StockPickler.save(self, obj, save_persistent_id)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\pickle.py:558](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/pickle.py#line=557), in _Pickler.save(self, obj, save_persistent_id)\n 556 f = self.dispatch.get(t)\n 557 if f is not None:\n--> 558 f(self, obj) # Call unbound method with explicit self\n 559 return\n 561 # Check private dispatch table if any, or else\n 562 # copyreg.dispatch_table\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\dill\\_dill.py:1217](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/dill\/_dill.py#line=1216), in save_module_dict(pickler, obj)\n 1214 if is_dill(pickler, child=False) and pickler._session:\n 1215 # we only care about session the first pass thru\n 1216 pickler._first_pass = False\n-> 1217 StockPickler.save_dict(pickler, obj)\n 1218 logger.trace(pickler, \"# D2\")\n 1219 return\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\pickle.py:990](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/pickle.py#line=989), in _Pickler.save_dict(self, obj)\n 987 self.write(MARK + DICT)\n 989 self.memoize(obj)\n--> 990 self._batch_setitems(obj.items())\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\datasets\\utils\\_dill.py:83](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/datasets\/utils\/_dill.py#line=82), in Pickler._batch_setitems(self, items)\n 80 from datasets.fingerprint import Hasher\n 82 items = sorted(items, key=lambda x: Hasher.hash(x[0]))\n---> 83 dill.Pickler._batch_setitems(self, items)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\pickle.py:1019](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/pickle.py#line=1018), in _Pickler._batch_setitems(self, items)\n 1017 k, v = tmp[0]\n 1018 save(k)\n-> 1019 save(v)\n 1020 write(SETITEM)\n 1021 # else tmp is empty, and we're done\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\datasets\\utils\\_dill.py:70](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/datasets\/utils\/_dill.py#line=69), in Pickler.save(self, obj, save_persistent_id)\n 68 if obj_type is FunctionType:\n 69 obj = getattr(obj, \"_torchdynamo_orig_callable\", obj)\n---> 70 dill.Pickler.save(self, obj, save_persistent_id=save_persistent_id)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\dill\\_dill.py:414](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/dill\/_dill.py#line=413), in Pickler.save(self, obj, save_persistent_id)\n 412 msg = \"Can't pickle %s: attribute lookup builtins.generator failed\" % GeneratorType\n 413 raise PicklingError(msg)\n--> 414 StockPickler.save(self, obj, save_persistent_id)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\pickle.py:601](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/pickle.py#line=600), in _Pickler.save(self, obj, save_persistent_id)\n 597 raise PicklingError(\"Tuple returned by %s must have \"\n 598 \"two to six elements\" % reduce)\n 600 # Save the reduce() output and finally memoize the object\n--> 601 self.save_reduce(obj=obj, *rv)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\pickle.py:715](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/pickle.py#line=714), in _Pickler.save_reduce(self, func, args, state, listitems, dictitems, state_setter, obj)\n 713 if state is not None:\n 714 if state_setter is None:\n--> 715 save(state)\n 716 write(BUILD)\n 717 else:\n 718 # If a state_setter is specified, call it instead of load_build\n 719 # to update obj's with its previous state.\n 720 # First, push state_setter and its tuple of expected arguments\n 721 # (obj, state) onto the stack.\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\datasets\\utils\\_dill.py:70](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/datasets\/utils\/_dill.py#line=69), in Pickler.save(self, obj, save_persistent_id)\n 68 if obj_type is FunctionType:\n 69 obj = getattr(obj, \"_torchdynamo_orig_callable\", obj)\n---> 70 dill.Pickler.save(self, obj, save_persistent_id=save_persistent_id)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\dill\\_dill.py:414](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/dill\/_dill.py#line=413), in Pickler.save(self, obj, save_persistent_id)\n 412 msg = \"Can't pickle %s: attribute lookup builtins.generator failed\" % GeneratorType\n 413 raise PicklingError(msg)\n--> 414 StockPickler.save(self, obj, save_persistent_id)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\pickle.py:558](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/pickle.py#line=557), in _Pickler.save(self, obj, save_persistent_id)\n 556 f = self.dispatch.get(t)\n 557 if f is not None:\n--> 558 f(self, obj) # Call unbound method with explicit self\n 559 return\n 561 # Check private dispatch table if any, or else\n 562 # copyreg.dispatch_table\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\dill\\_dill.py:1217](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/dill\/_dill.py#line=1216), in save_module_dict(pickler, obj)\n 1214 if is_dill(pickler, child=False) and pickler._session:\n 1215 # we only care about session the first pass thru\n 1216 pickler._first_pass = False\n-> 1217 StockPickler.save_dict(pickler, obj)\n 1218 logger.trace(pickler, \"# D2\")\n 1219 return\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\pickle.py:990](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/pickle.py#line=989), in _Pickler.save_dict(self, obj)\n 987 self.write(MARK + DICT)\n 989 self.memoize(obj)\n--> 990 self._batch_setitems(obj.items())\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\datasets\\utils\\_dill.py:83](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/datasets\/utils\/_dill.py#line=82), in Pickler._batch_setitems(self, items)\n 80 from datasets.fingerprint import Hasher\n 82 items = sorted(items, key=lambda x: Hasher.hash(x[0]))\n---> 83 dill.Pickler._batch_setitems(self, items)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\pickle.py:1014](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/pickle.py#line=1013), in _Pickler._batch_setitems(self, items)\n 1012 for k, v in tmp:\n 1013 save(k)\n-> 1014 save(v)\n 1015 write(SETITEMS)\n 1016 elif n:\n\n [... skipping similar frames: Pickler.save at line 70 (1 times), Pickler.save at line 414 (1 times)]\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\pickle.py:558](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/pickle.py#line=557), in _Pickler.save(self, obj, save_persistent_id)\n 556 f = self.dispatch.get(t)\n 557 if f is not None:\n--> 558 f(self, obj) # Call unbound method with explicit self\n 559 return\n 561 # Check private dispatch table if any, or else\n 562 # copyreg.dispatch_table\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\dill\\_dill.py:1217](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/dill\/_dill.py#line=1216), in save_module_dict(pickler, obj)\n 1214 if is_dill(pickler, child=False) and pickler._session:\n 1215 # we only care about session the first pass thru\n 1216 pickler._first_pass = False\n-> 1217 StockPickler.save_dict(pickler, obj)\n 1218 logger.trace(pickler, \"# D2\")\n 1219 return\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\pickle.py:990](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/pickle.py#line=989), in _Pickler.save_dict(self, obj)\n 987 self.write(MARK + DICT)\n 989 self.memoize(obj)\n--> 990 self._batch_setitems(obj.items())\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\datasets\\utils\\_dill.py:83](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/datasets\/utils\/_dill.py#line=82), in Pickler._batch_setitems(self, items)\n 80 from datasets.fingerprint import Hasher\n 82 items = sorted(items, key=lambda x: Hasher.hash(x[0]))\n---> 83 dill.Pickler._batch_setitems(self, items)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\pickle.py:1014](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/pickle.py#line=1013), in _Pickler._batch_setitems(self, items)\n 1012 for k, v in tmp:\n 1013 save(k)\n-> 1014 save(v)\n 1015 write(SETITEMS)\n 1016 elif n:\n\n [... skipping similar frames: Pickler.save at line 70 (1 times), Pickler.save at line 414 (1 times)]\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\pickle.py:601](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/pickle.py#line=600), in _Pickler.save(self, obj, save_persistent_id)\n 597 raise PicklingError(\"Tuple returned by %s must have \"\n 598 \"two to six elements\" % reduce)\n 600 # Save the reduce() output and finally memoize the object\n--> 601 self.save_reduce(obj=obj, *rv)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\pickle.py:715](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/pickle.py#line=714), in _Pickler.save_reduce(self, func, args, state, listitems, dictitems, state_setter, obj)\n 713 if state is not None:\n 714 if state_setter is None:\n--> 715 save(state)\n 716 write(BUILD)\n 717 else:\n 718 # If a state_setter is specified, call it instead of load_build\n 719 # to update obj's with its previous state.\n 720 # First, push state_setter and its tuple of expected arguments\n 721 # (obj, state) onto the stack.\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\datasets\\utils\\_dill.py:70](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/datasets\/utils\/_dill.py#line=69), in Pickler.save(self, obj, save_persistent_id)\n 68 if obj_type is FunctionType:\n 69 obj = getattr(obj, \"_torchdynamo_orig_callable\", obj)\n---> 70 dill.Pickler.save(self, obj, save_persistent_id=save_persistent_id)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\dill\\_dill.py:414](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/dill\/_dill.py#line=413), in Pickler.save(self, obj, save_persistent_id)\n 412 msg = \"Can't pickle %s: attribute lookup builtins.generator failed\" % GeneratorType\n 413 raise PicklingError(msg)\n--> 414 StockPickler.save(self, obj, save_persistent_id)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\pickle.py:558](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/pickle.py#line=557), in _Pickler.save(self, obj, save_persistent_id)\n 556 f = self.dispatch.get(t)\n 557 if f is not None:\n--> 558 f(self, obj) # Call unbound method with explicit self\n 559 return\n 561 # Check private dispatch table if any, or else\n 562 # copyreg.dispatch_table\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\pickle.py:920](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/pickle.py#line=919), in _Pickler.save_tuple(self, obj)\n 918 write(MARK)\n 919 for element in obj:\n--> 920 save(element)\n 922 if id(obj) in memo:\n 923 # Subtle. d was not in memo when we entered save_tuple(), so\n 924 # the process of saving the tuple's elements must have saved\n (...) 928 # could have been done in the \"for element\" loop instead, but\n 929 # recursive tuples are a rare thing.\n 930 get = self.get(memo[id(obj)][0])\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\datasets\\utils\\_dill.py:70](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/datasets\/utils\/_dill.py#line=69), in Pickler.save(self, obj, save_persistent_id)\n 68 if obj_type is FunctionType:\n 69 obj = getattr(obj, \"_torchdynamo_orig_callable\", obj)\n---> 70 dill.Pickler.save(self, obj, save_persistent_id=save_persistent_id)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\site-packages\\dill\\_dill.py:414](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/site-packages\/dill\/_dill.py#line=413), in Pickler.save(self, obj, save_persistent_id)\n 412 msg = \"Can't pickle %s: attribute lookup builtins.generator failed\" % GeneratorType\n 413 raise PicklingError(msg)\n--> 414 StockPickler.save(self, obj, save_persistent_id)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\pickle.py:558](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/pickle.py#line=557), in _Pickler.save(self, obj, save_persistent_id)\n 556 f = self.dispatch.get(t)\n 557 if f is not None:\n--> 558 f(self, obj) # Call unbound method with explicit self\n 559 return\n 561 # Check private dispatch table if any, or else\n 562 # copyreg.dispatch_table\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\pickle.py:809](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/pickle.py#line=808), in _Pickler.save_bytes(self, obj)\n 806 self.save_reduce(codecs.encode,\n 807 (str(obj, 'latin1'), 'latin1'), obj=obj)\n 808 return\n--> 809 self._save_bytes_no_memo(obj)\n 810 self.memoize(obj)\n\nFile [C:\\ProgramData\\miniforge3\\envs\\geo\\Lib\\pickle.py:797](file:\/\/\/C:\/ProgramData\/miniforge3\/envs\/geo\/Lib\/pickle.py#line=796), in _Pickler._save_bytes_no_memo(self, obj)\n 795 self._write_large_bytes(BINBYTES8 + pack(\"= self.framer._FRAME_SIZE_TARGET:\n--> 797 self._write_large_bytes(BINBYTES + pack(\" 254 write(payload)\n\nMemoryError:\n\n```\n\n<\/details>\n\nMemory error is an expected type of error in such case, but when I started digging down, I found out that it occurs in a kinda unexpected place - in `create_config_id` function. It tries to hash `config_kwargs_to_add_to_suffix`, including generator function itself. \n\nI modified the `BuilderConfig.create_config_id` code like this to check which values are hashed and how much time it takes to hash them and ran it on a toy dataset:\n```\nprint(config_kwargs_to_add_to_suffix)\nstart_time = time.time()\n\nif all(isinstance(v, (str, bool, int, float)) for v in config_kwargs_to_add_to_suffix.values()):\n suffix = \",\".join(\n str(k) + \"=\" + urllib.parse.quote_plus(str(v)) for k, v in config_kwargs_to_add_to_suffix.items()\n )\n if len(suffix) > 32: # hash if too long\n suffix = Hasher.hash(config_kwargs_to_add_to_suffix)\nelse:\n suffix = Hasher.hash(config_kwargs_to_add_to_suffix)\nend_time = time.time()\n\nprint(f\"Execution time: {end_time - start_time:.4f} seconds\")\nprint(suffix)\n```\n\nIn my case the content of `config_kwargs_to_add_to_suffix` was like this:\n```\n{'features': {'key': Value(dtype='int64', id=None), 'x': Array3D(shape=(44, 128, 128), dtype='float32', id=None), 'y_class': Array2D(shape=(128, 128), dtype='int32', id=None)}, 'gen_kwargs': None, 'generator': .dataset_generator at 0x00000139D10D7920>, 'split': NamedSplit('train')}\n```\n\nAlso I noticed that hashing took a significant amount of time - 43.1482 seconds, while the overall function execution (with data loading, batching and saving dataset) took 2min 45s. The output of `create_config_id` is just a dataset id, so, it is inappropirately large amount of time.\n\nBut when I added `config_kwargs_to_add_to_suffix.pop(\"generator\", None)`, the hashing took only 0.0060 seconds.\n\nMaybe we shouldn't hash the generator function, as it can be really computationally and memory expensive.\n\n\n\n### Steps to reproduce the bug\n\nThis is a simplified example of a workflow I used to generate dataset. But I think that you can use almost any workflow to reproduce that bug.\n\n```\nimport pystac\nimport pystac_client\nimport planetary_computer\n\nimport numpy as np\nimport xarray as xr\nimport rioxarray as rxr\nimport dask\nimport xbatcher\n\nimport datasets\n\n\n# Loading a dataset, in our case - single Landsat image\ncatalog = pystac_client.Client.open(\n \"https:\/\/planetarycomputer.microsoft.com\/api\/stac\/v1\",\n modifier=planetary_computer.sign_inplace,\n)\nbrazil = [-60.2, -3.31]\ntime_of_interest = \"2021-06-01\/2021-08-31\"\nsearch = catalog.search(collections=[\"landsat-c2-l2\"], intersects={\"type\": \"Point\", \"coordinates\": brazil}, datetime=time_of_interest)\nitems = search.item_collection()\nitem = min(items, key=lambda item: pystac.extensions.eo.EOExtension.ext(item).cloud_cover)\n\n# Getting x data\nbands = []\nfor band in [\"red\", \"green\", \"blue\", \"nir08\", \"coastal\", \"swir16\", \"swir22\", \"lwir11\"]:\n with rxr.open_rasterio(item.assets[band].href, chunks=True, lock=True) as raster:\n raster = raster.to_dataset('band')\n #print(raster)\n raster = raster.rename({1: band})\n bands.append(raster)\nx = xr.merge(bands).squeeze().to_array(\"band\").persist()\n\n# Getting y data\nwith rxr.open_rasterio(item.assets['qa_pixel'].href, chunks=True, lock=True) as raster:\n y = raster.squeeze().persist()\n\n# Setting up batches generators\nx_batches = xbatcher.BatchGenerator(ds=x, input_dims={\"x\": 256, \"y\": 256})\ny_batches = xbatcher.BatchGenerator(ds=y, input_dims={\"x\": 256, \"y\": 256})\n\n# Filtering samples that contain only nodata\nsamples = list(range(len(x_batches)))\nsamples_filtered = []\nfor i in samples:\n if not np.array_equal(np.unique(x_batches[i]), np.array([0.])) and not np.array_equal(np.unique(y_batches[i]), np.array([0])):\n samples_filtered.append(i)\nsamples = samples_filtered\nnp.random.shuffle(samples)\n\n# Setting up features\nfeat = {\n \"key\": datasets.Value(dtype=\"int64\"), \n \"x\": datasets.Array3D(dtype=\"float32\", shape=(4, 256, 256)),\n \"y\": datasets.Array2D(dtype=\"int32\", shape=(256, 256))\n}\nfeat = datasets.Features(feat)\n\n# Setting up a generator\ndef dataset_generator():\n for index in samples:\n data_dict = {\n \"key\": index,\n \"x\": x_batches[index].data,\n \"y\": y_batches[index].data,\n }\n yield data_dict\n\n# Create dataset\nds = datasets.Dataset.from_generator(\n dataset_generator,\n features=feat,\n cache_dir=\"temp\/cache\",\n)\n```\nPlease, try adding `config_kwargs_to_add_to_suffix.pop(\"generator\", None)` to `BuilderConfig.create_config_id` and then measuring how much time it takes to run \n``` \nif all(isinstance(v, (str, bool, int, float)) for v in config_kwargs_to_add_to_suffix.values()):\n suffix = \",\".join(\n str(k) + \"=\" + urllib.parse.quote_plus(str(v)) for k, v in config_kwargs_to_add_to_suffix.items()\n )\n if len(suffix) > 32: # hash if too long\n suffix = Hasher.hash(config_kwargs_to_add_to_suffix)\nelse:\n suffix = Hasher.hash(config_kwargs_to_add_to_suffix)\n```\ncode block with and without `config_kwargs_to_add_to_suffix.pop(\"generator\", None)`\n\nIn my case the difference was 3.3828 seconds without popping generator function and 0.0010 seconds with popping.\n\n### Expected behavior\n\nMuch faster hashing and no MemoryErrors\n\n### Environment info\n\n- `datasets` version: 3.5.0\n- Platform: Windows-11-10.0.26100-SP0\n- Python version: 3.12.9\n- `huggingface_hub` version: 0.30.1\n- PyArrow version: 17.0.0\n- Pandas version: 2.2.2\n- `fsspec` version: 2024.12.0","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7513\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7513\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7512","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7512\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7512\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7512\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7512","id":2994043544,"node_id":"I_kwDODunzps6ydXqY","number":7512,"title":".map() fails if function uses pyvista","user":{"login":"el-hult","id":11832922,"node_id":"MDQ6VXNlcjExODMyOTIy","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/11832922?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/el-hult","html_url":"https:\/\/github.com\/el-hult","followers_url":"https:\/\/api.github.com\/users\/el-hult\/followers","following_url":"https:\/\/api.github.com\/users\/el-hult\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/el-hult\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/el-hult\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/el-hult\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/el-hult\/orgs","repos_url":"https:\/\/api.github.com\/users\/el-hult\/repos","events_url":"https:\/\/api.github.com\/users\/el-hult\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/el-hult\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-04-14T19:43:02Z","updated_at":"2025-04-14T20:01:53Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nUsing PyVista inside a .map() produces a crash with `objc[78796]: +[NSResponder initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.`\n\n### Steps to reproduce the bug\n\nRun \n\n```python\nimport numpy as np\nimport pyvista as pv\nimport datasets\n\ndata = [{\"coords\": np.random.rand(5, 3)} for _ in range(3)]\n\n\ndef render_point(example):\n plotter = pv.Plotter(off_screen=True)\n cloud = pv.PolyData(example[\"coords\"])\n plotter.add_mesh(cloud)\n img = plotter.screenshot(return_img=True)\n return {\"image\": img}\n\n\n# breaks if num_proc>1\nds = datasets.Dataset.from_list(data).map(render_point, num_proc=2)\n\n```\n\n### Expected behavior\n\nIt should work. Just like when I use a process pool to make it work.\n\n```python\nimport numpy as np\nimport pyvista as pv\nimport multiprocessing\n\ndata = [{\"coords\": np.random.rand(5, 3)} for _ in range(3)]\n\n\ndef render_point(example):\n plotter = pv.Plotter(off_screen=True)\n cloud = pv.PolyData(example[\"coords\"])\n plotter.add_mesh(cloud)\n img = plotter.screenshot(return_img=True)\n return {\"image\": img}\n\n\nif __name__ == \"__main__\":\n with multiprocessing.Pool(processes=2) as pool:\n results = pool.map(render_point, data)\n print(results[0][\"image\"].shape)\n```\n\n### Environment info\n\n\n- `datasets` version: 3.3.2\n- Platform: macOS-15.3.2-arm64-arm-64bit\n- Python version: 3.11.10\n- `huggingface_hub` version: 0.28.1\n- PyArrow version: 18.1.0\n- Pandas version: 2.2.3\n- `fsspec` version: 2024.10.0\n\nAnd then I suppose pyvista info is good to have.\n\n```python\nimport pyvista as pv\nprint(pv.Report())\n```\ngives \n--------------------------------------------------------------------------------\n Date: Mon Apr 14 21:42:08 2025 CEST\n\n OS : Darwin (macOS 15.3.2)\n CPU(s) : 10\n Machine : arm64\n Architecture : 64bit\n RAM : 32.0 GiB\n Environment : IPython\n File system : apfs\n GPU Vendor : Apple\n GPU Renderer : Apple M1 Max\n GPU Version : 4.1 Metal - 89.3\n MathText Support : True\n\n Python 3.11.10 (main, Oct 7 2024, 23:25:27) [Clang 18.1.8 ]\n\n pyvista : 0.44.2\n vtk : 9.4.0\n numpy : 2.2.2\n matplotlib : 3.10.0\n scooby : 0.10.0\n pooch : 1.8.2\n pillow : 11.1.0\n imageio : 2.36.1\n PyQt5 : 5.15.11\n IPython : 8.30.0\n scipy : 1.14.1\n tqdm : 4.67.1\n jupyterlab : 4.3.5\n nest_asyncio : 1.6.0\n--------------------------------------------------------------------------------","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7512\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7512\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7510","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7510\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7510\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7510\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7510","id":2992131117,"node_id":"I_kwDODunzps6yWEwt","number":7510,"title":"Incompatibile dill version (0.3.9) in datasets 2.18.0 - 3.5.0","user":{"login":"JGrel","id":98061329,"node_id":"U_kgDOBdhMEQ","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/98061329?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/JGrel","html_url":"https:\/\/github.com\/JGrel","followers_url":"https:\/\/api.github.com\/users\/JGrel\/followers","following_url":"https:\/\/api.github.com\/users\/JGrel\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/JGrel\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/JGrel\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/JGrel\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/JGrel\/orgs","repos_url":"https:\/\/api.github.com\/users\/JGrel\/repos","events_url":"https:\/\/api.github.com\/users\/JGrel\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/JGrel\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2025-04-14T07:22:44Z","updated_at":"2025-05-19T14:54:04Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nDatasets 2.18.0 - 3.5.0 has a dependency on dill < 0.3.9. This causes errors with dill >= 0.3.9.\n\nCould you please take a look into it and make it compatible?\n\n### Steps to reproduce the bug\n\n1. Install setuptools >= 2.18.0\n2. Install dill >=0.3.9\n3. Run pip check\n4. Output:\nERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.\ndatasets 2.18.0 requires dill<0.3.9,>=0.3.0, but you have dill 0.3.9 which is incompatible.\n\n### Expected behavior\n\nPip install both libraries without any errors\n\n### Environment info\n\nDatasets version: 2.18 - 3.5\nPython: 3.11","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7510\/reactions","total_count":3,"+1":3,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7510\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7509","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7509\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7509\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7509\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7509","id":2991484542,"node_id":"I_kwDODunzps6yTm5-","number":7509,"title":"Dataset uses excessive memory when loading files","user":{"login":"avishaiElmakies","id":36810152,"node_id":"MDQ6VXNlcjM2ODEwMTUy","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/36810152?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/avishaiElmakies","html_url":"https:\/\/github.com\/avishaiElmakies","followers_url":"https:\/\/api.github.com\/users\/avishaiElmakies\/followers","following_url":"https:\/\/api.github.com\/users\/avishaiElmakies\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/avishaiElmakies\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/avishaiElmakies\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/avishaiElmakies\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/avishaiElmakies\/orgs","repos_url":"https:\/\/api.github.com\/users\/avishaiElmakies\/repos","events_url":"https:\/\/api.github.com\/users\/avishaiElmakies\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/avishaiElmakies\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2025-04-13T21:09:49Z","updated_at":"2025-04-28T15:18:55Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nHi\nI am having an issue when loading a dataset.\nI have about 200 json files each about 1GB (total about 215GB). each row has a few features which are a list of ints.\nI am trying to load the dataset using `load_dataset`.\nThe dataset is about 1.5M samples\nI use `num_proc=32` and a node with 378GB of memory. \nAbout a third of the way there I get an OOM.\nI also saw an old bug with a similar issue, which says to set `writer_batch_size`. I tried to lower it to 10, but it still crashed.\nI also tried to lower the `num_proc` to 16 and even 8, but still the same issue.\n\n### Steps to reproduce the bug\n\n`dataset = load_dataset(\"json\", data_dir=data_config.train_path, num_proc=data_config.num_proc, writer_batch_size=50)[\"train\"]`\n\n\n### Expected behavior\n\nLoading a dataset with more than 100GB to spare should not cause an OOM error.\nmaybe i am missing something but I would love some help.\n\n### Environment info\n\n- `datasets` version: 3.5.0\n- Platform: Linux-6.6.20-aufs-1-x86_64-with-glibc2.36\n- Python version: 3.11.2\n- `huggingface_hub` version: 0.29.1\n- PyArrow version: 19.0.1\n- Pandas version: 2.2.3\n- `fsspec` version: 2024.9.0","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7509\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7509\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7508","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7508\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7508\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7508\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7508","id":2986612934,"node_id":"I_kwDODunzps6yBBjG","number":7508,"title":"Iterating over Image feature columns is extremely slow","user":{"login":"sohamparikh","id":11831521,"node_id":"MDQ6VXNlcjExODMxNTIx","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/11831521?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/sohamparikh","html_url":"https:\/\/github.com\/sohamparikh","followers_url":"https:\/\/api.github.com\/users\/sohamparikh\/followers","following_url":"https:\/\/api.github.com\/users\/sohamparikh\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/sohamparikh\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/sohamparikh\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/sohamparikh\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/sohamparikh\/orgs","repos_url":"https:\/\/api.github.com\/users\/sohamparikh\/repos","events_url":"https:\/\/api.github.com\/users\/sohamparikh\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/sohamparikh\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-04-10T19:00:54Z","updated_at":"2025-04-15T17:57:08Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"We are trying to load datasets where the image column stores `PIL.PngImagePlugin.PngImageFile` images. However, iterating over these datasets is extremely slow. \nWhat I have found:\n1. It is the presence of the image column that causes the slowdown. Removing the column from the dataset results in blazingly fast (as expected) times\n2. It is ~2x faster to iterate when the column contains a single image as opposed to a list of images i.e., the feature is a Sequence of Image objects. We often need multiple images per sample, so we need to work with a list of images\n3. It is ~17x faster to store paths to PNG files and load them using `PIL.Image.open`, as opposed to iterating over a `Dataset` with an Image column, and ~30x faster compared to `Sequence` of `Image`s. See a simple script below with an openly available dataset.\n\n\nIt would be great to understand the standard practices for storing and loading multimodal datasets (image + text). \n\nhttps:\/\/huggingface.co\/docs\/datasets\/en\/image_load seems a bit underdeveloped? (e.g., `dataset.decode` only works with `IterableDataset`, but it's not clear from the doc)\n\nThanks!\n\n```python\nfrom datasets import load_dataset, load_from_disk\nfrom PIL import Image\nfrom pathlib import Path\n\nds = load_dataset(\"getomni-ai\/ocr-benchmark\")\n\nfor idx, sample in enumerate(ds[\"test\"]):\n image = sample[\"image\"]\n image.save(f\"\/tmp\/ds_files\/images\/image_{idx}.png\")\n\nds.save_to_disk(\"\/tmp\/ds_columns\")\n\n# Remove the 'image' column\nds[\"test\"] = ds[\"test\"].remove_columns([\"image\"])\n\n# Create image paths for each sample\nimage_paths = [f\"images\/image_{idx}.png\" for idx in range(len(ds[\"test\"]))]\n\n# Add the 'image_path' column to the dataset\nds[\"test\"] = ds[\"test\"].add_column(\"image_path\", image_paths)\n\n# Save the updated dataset\nds.save_to_disk(\"\/tmp\/ds_files\")\nfiles_path = Path(\"\/tmp\/ds_files\")\ncolumn_path = Path(\"\/tmp\/ds_columns\")\n\n# load and benchmark\nds_file = load_from_disk(files_path)\nds_column = load_from_disk(column_path)\nimport time\n\n\nimages_files = []\nstart = time.time()\nfor idx in range(len(ds_file[\"test\"])):\n image_path = files_path \/ ds_file[\"test\"][idx][\"image_path\"]\n image = Image.open(image_path)\n images_files.append(image)\nend = time.time()\nprint(f\"Time taken to load images from files: {end - start} seconds\")\n\n# Time taken to load images from files: 1.2364635467529297 seconds\n\n\nimages_column = []\nstart = time.time()\nfor idx in range(len(ds_column[\"test\"])):\n images_column.append(ds_column[\"test\"][idx][\"image\"])\nend = time.time()\nprint(f\"Time taken to load images from columns: {end - start} seconds\")\n\n# Time taken to load images from columns: 20.49347186088562 seconds\n```","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7508\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7508\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7507","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7507\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7507\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7507\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7507","id":2984309806,"node_id":"I_kwDODunzps6x4PQu","number":7507,"title":"Front-end statistical data quantity deviation","user":{"login":"rangehow","id":88258534,"node_id":"MDQ6VXNlcjg4MjU4NTM0","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/88258534?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/rangehow","html_url":"https:\/\/github.com\/rangehow","followers_url":"https:\/\/api.github.com\/users\/rangehow\/followers","following_url":"https:\/\/api.github.com\/users\/rangehow\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/rangehow\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/rangehow\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/rangehow\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/rangehow\/orgs","repos_url":"https:\/\/api.github.com\/users\/rangehow\/repos","events_url":"https:\/\/api.github.com\/users\/rangehow\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/rangehow\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-04-10T02:51:38Z","updated_at":"2025-04-15T12:54:51Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nWhile browsing the dataset at https:\/\/huggingface.co\/datasets\/NeuML\/wikipedia-20250123, I noticed that a dataset with nearly 7M entries was estimated to be only 4M in size\u2014almost half the actual amount. According to the post-download loading and the dataset_info (https:\/\/huggingface.co\/datasets\/NeuML\/wikipedia-20250123\/blob\/main\/train\/dataset_info.json), the true data volume is indeed close to 7M. This significant discrepancy could mislead users when sorting datasets by row count. Why not directly retrieve this information from dataset_info?\n\nNot sure if this is the right place to report this bug, but leaving it here for the team's awareness.","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7507\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7507\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7506","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7506\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7506\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7506\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7506","id":2981687450,"node_id":"I_kwDODunzps6xuPCa","number":7506,"title":"HfHubHTTPError: 429 Client Error: Too Many Requests for URL when trying to access Fineweb-10BT on 4A100 GPUs using SLURM","user":{"login":"calvintanama","id":66202555,"node_id":"MDQ6VXNlcjY2MjAyNTU1","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/66202555?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/calvintanama","html_url":"https:\/\/github.com\/calvintanama","followers_url":"https:\/\/api.github.com\/users\/calvintanama\/followers","following_url":"https:\/\/api.github.com\/users\/calvintanama\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/calvintanama\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/calvintanama\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/calvintanama\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/calvintanama\/orgs","repos_url":"https:\/\/api.github.com\/users\/calvintanama\/repos","events_url":"https:\/\/api.github.com\/users\/calvintanama\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/calvintanama\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-04-09T06:32:04Z","updated_at":"2025-06-29T06:04:59Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI am trying to run some finetunings on 4 A100 GPUs using SLURM using axolotl training framework which in turn uses Huggingface's Trainer and Accelerate on [Fineweb-10BT](https:\/\/huggingface.co\/datasets\/HuggingFaceFW\/fineweb), but I end up running into 429 Client Error: Too Many Requests for URL error when I call next(dataloader_iter). Funny is, that I can run some test fine tuning (for just 200 training steps) in 1 A100 GPU using SLURM. Is there any rate limiter set for querying dataset? I could run the fine tuning with the same settings (4 A100 GPUs in SLURM) last month.\n\n### Steps to reproduce the bug\n\nYou would need a server installed with SLURM\n\n1. Create conda environment\n1.1 conda create -n example_env -c conda-forge gxx=11 python=3.10\n1.2 conda activate example_env\n1.3 pip install torch==2.5.1 torchvision==0.20.1 torchaudio==2.5.1 --index-url https:\/\/download.pytorch.org\/whl\/cu124\n1.4 conda install nvidia\/label\/cuda-12.4.0::cuda-toolkit\n1.5 Download flash_attn-2.7.4.post1+cu12torch2.5cxx11abiFALSE-cp310-cp310-linux_x86_64.whl\n1.6 pip3 install packaging\n1.7 pip3 install ninja\n1.8 pip3 install mlflow\n1.9 Clone https:\/\/github.com\/calvintanama\/axolotl.git\n1.10 `cd` to `axolotl`\n1.11 pip3 install -e '.[deepspeed]'\n\n2. Run the training\n2.1. Create a folder called `config_run` in axolotl directory\n2.2. Copy `config\/phi3_pruned_extra_pretrain_22_29_bottleneck_residual_8_a100_4.yaml` to `config_run`\n2.3. Change yaml file in the `config_run` accordingly\n2.4. Change directory and conda environment name in `jobs\/train_phi3_22_29_bottleneck_residual_8_a100_4_temp.sh`\n2.5. `jobs\/train_phi3_22_29_bottleneck_residual_8_a100_4_temp.sh`\n\n### Expected behavior\n\nThis should not cause any error, but gotten\n\n```\nFile \"\/home\/hk-project-test-p0023745\/cd7437\/miniconda3\/envs\/llmpruning_train_temp\/lib\/python3.10\/site-packages\/accelerate\/data_loader.py\", line 552, in __iter__\n[rank3]: current_batch = next(dataloader_iter)\n[rank3]: File \"\/home\/hk-project-test-p0023745\/cd7437\/miniconda3\/envs\/llmpruning_train_temp\/lib\/python3.10\/site-packages\/torch\/utils\/data\/dataloader.py\", line 701, in __next__\n[rank3]: data = self._next_data()\n[rank3]: File \"\/home\/hk-project-test-p0023745\/cd7437\/miniconda3\/envs\/llmpruning_train_temp\/lib\/python3.10\/site-packages\/torch\/utils\/data\/dataloader.py\", line 757, in _next_data\n[rank3]: data = self._dataset_fetcher.fetch(index) # may raise StopIteration\n[rank3]: File \"\/home\/hk-project-test-p0023745\/cd7437\/miniconda3\/envs\/llmpruning_train_temp\/lib\/python3.10\/site-packages\/torch\/utils\/data\/_utils\/fetch.py\", line 33, in fetch\n[rank3]: data.append(next(self.dataset_iter))\n[rank3]: File \"\/home\/hk-project-test-p0023745\/cd7437\/miniconda3\/envs\/llmpruning_train_temp\/lib\/python3.10\/site-packages\/accelerate\/data_loader.py\", line 338, in __iter__\n[rank3]: for element in self.dataset:\n[rank3]: File \"\/home\/hk-project-test-p0023745\/cd7437\/miniconda3\/envs\/llmpruning_train_temp\/lib\/python3.10\/site-packages\/datasets\/iterable_dataset.py\", line 2266, in __iter__\n[rank3]: for key, example in ex_iterable:\n[rank3]: File \"\/home\/hk-project-test-p0023745\/cd7437\/miniconda3\/envs\/llmpruning_train_temp\/lib\/python3.10\/site-packages\/datasets\/iterable_dataset.py\", line 1866, in __iter__\n[rank3]: for key, example in self.ex_iterable:\n[rank3]: File \"\/home\/hk-project-test-p0023745\/cd7437\/miniconda3\/envs\/llmpruning_train_temp\/lib\/python3.10\/site-packages\/datasets\/iterable_dataset.py\", line 1084, in __iter__\n[rank3]: yield from self._iter()\n[rank3]: File \"\/home\/hk-project-test-p0023745\/cd7437\/miniconda3\/envs\/llmpruning_train_temp\/lib\/python3.10\/site-packages\/datasets\/iterable_dataset.py\", line 1263, in _iter\n[rank3]: for key, transformed_example in outputs:\n[rank3]: File \"\/home\/hk-project-test-p0023745\/cd7437\/miniconda3\/envs\/llmpruning_train_temp\/lib\/python3.10\/site-packages\/datasets\/iterable_dataset.py\", line 1258, in \n[rank3]: outputs = (\n[rank3]: File \"\/home\/hk-project-test-p0023745\/cd7437\/miniconda3\/envs\/llmpruning_train_temp\/lib\/python3.10\/site-packages\/datasets\/iterable_dataset.py\", line 1244, in iter_outputs\n[rank3]: for i, key_example in inputs_iterator:\n[rank3]: File \"\/home\/hk-project-test-p0023745\/cd7437\/miniconda3\/envs\/llmpruning_train_temp\/lib\/python3.10\/site-packages\/datasets\/iterable_dataset.py\", line 1106, in iter_batched_inputs\n[rank3]: for key, example in iterator:\n[rank3]: File \"\/home\/hk-project-test-p0023745\/cd7437\/miniconda3\/envs\/llmpruning_train_temp\/lib\/python3.10\/site-packages\/datasets\/iterable_dataset.py\", line 1866, in __iter__\n[rank3]: for key, example in self.ex_iterable:\n[rank3]: File \"\/home\/hk-project-test-p0023745\/cd7437\/miniconda3\/envs\/llmpruning_train_temp\/lib\/python3.10\/site-packages\/datasets\/iterable_dataset.py\", line 1535, in __iter__\n[rank3]: for x in self.ex_iterable:\n[rank3]: File \"\/home\/hk-project-test-p0023745\/cd7437\/miniconda3\/envs\/llmpruning_train_temp\/lib\/python3.10\/site-packages\/datasets\/iterable_dataset.py\", line 374, in __iter__\n[rank3]: for key, pa_table in self.generate_tables_fn(**gen_kwags):\n[rank3]: File \"\/home\/hk-project-test-p0023745\/cd7437\/miniconda3\/envs\/llmpruning_train_temp\/lib\/python3.10\/site-packages\/datasets\/packaged_modules\/parquet\/parquet.py\", line 90, in _generate_tables\n[rank3]: if parquet_fragment.row_groups:\n[rank3]: File \"pyarrow\/_dataset_parquet.pyx\", line 386, in pyarrow._dataset_parquet.ParquetFileFragment.row_groups.__get__\n[rank3]: File \"pyarrow\/_dataset_parquet.pyx\", line 393, in pyarrow._dataset_parquet.ParquetFileFragment.metadata.__get__\n[rank3]: File \"pyarrow\/_dataset_parquet.pyx\", line 382, in pyarrow._dataset_parquet.ParquetFileFragment.ensure_complete_metadata\n[rank3]: File \"pyarrow\/error.pxi\", line 89, in pyarrow.lib.check_status\n[rank3]: File \"\/home\/hk-project-test-p0023745\/cd7437\/miniconda3\/envs\/llmpruning_train_temp\/lib\/python3.10\/site-packages\/datasets\/utils\/file_utils.py\", line 827, in read_with_retries\n[rank3]: out = read(*args, **kwargs)\n[rank3]: File \"\/home\/hk-project-test-p0023745\/cd7437\/miniconda3\/envs\/llmpruning_train_temp\/lib\/python3.10\/site-packages\/huggingface_hub\/hf_file_system.py\", line 1013, in read\n[rank3]: return super().read(length)\n[rank3]: File \"\/home\/hk-project-test-p0023745\/cd7437\/miniconda3\/envs\/llmpruning_train_temp\/lib\/python3.10\/site-packages\/fsspec\/spec.py\", line 1941, in read\n[rank3]: out = self.cache._fetch(self.loc, self.loc + length)\n[rank3]: File \"\/home\/hk-project-test-p0023745\/cd7437\/miniconda3\/envs\/llmpruning_train_temp\/lib\/python3.10\/site-packages\/fsspec\/caching.py\", line 234, in _fetch\n[rank3]: self.cache = self.fetcher(start, end) # new block replaces old\n[rank3]: File \"\/home\/hk-project-test-p0023745\/cd7437\/miniconda3\/envs\/llmpruning_train_temp\/lib\/python3.10\/site-packages\/huggingface_hub\/hf_file_system.py\", line 976, in _fetch_range\n[rank3]: hf_raise_for_status(r)\n[rank3]: File \"\/home\/hk-project-test-p0023745\/cd7437\/miniconda3\/envs\/llmpruning_train_temp\/lib\/python3.10\/site-packages\/huggingface_hub\/utils\/_http.py\", line 482, in hf_raise_for_status\n[rank3]: raise _format(HfHubHTTPError, str(e), response) from e\n[rank3]: huggingface_hub.errors.HfHubHTTPError: 429 Client Error: Too Many Requests for url: https:\/\/huggingface.co\/datasets\/HuggingFaceFW\/fineweb\/resolve\/0f039043b23fe1d4eed300b504aa4b4a68f1c7ba\/sample\/10BT\/006_00000.parquet\n```\n\n### Environment info\n\n- datasets 3.5.0\n- torch 2.5.1\n- transformers 4.46.2","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7506\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7506\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7505","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7505\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7505\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7505\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7505","id":2979926156,"node_id":"I_kwDODunzps6xnhCM","number":7505,"title":"HfHubHTTPError: 403 Forbidden: None. Cannot access content at: https:\/\/hf.co\/api\/s3proxy","user":{"login":"hissain","id":1412262,"node_id":"MDQ6VXNlcjE0MTIyNjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/1412262?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/hissain","html_url":"https:\/\/github.com\/hissain","followers_url":"https:\/\/api.github.com\/users\/hissain\/followers","following_url":"https:\/\/api.github.com\/users\/hissain\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/hissain\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/hissain\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/hissain\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/hissain\/orgs","repos_url":"https:\/\/api.github.com\/users\/hissain\/repos","events_url":"https:\/\/api.github.com\/users\/hissain\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/hissain\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-04-08T14:08:40Z","updated_at":"2025-04-08T14:08:40Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"I have already logged in Huggingface using CLI with my valid token. Now trying to download the datasets using following code:\n\n\n from transformers import WhisperProcessor, WhisperForConditionalGeneration, WhisperTokenizer, Trainer, TrainingArguments, DataCollatorForSeq2Seq\n from datasets import load_dataset, DatasetDict, Audio\n \n def load_and_preprocess_dataset():\n dataset = load_dataset(\"mozilla-foundation\/common_voice_17_0\", \"bn\")\n dataset = dataset.remove_columns([\"accent\", \"age\", \"client_id\", \"down_votes\", \"gender\", \"locale\", \"segment\", \"up_votes\"])\n dataset = dataset.cast_column(\"audio\", Audio(sampling_rate=16000))\n dataset = dataset[\"train\"].train_test_split(test_size=0.1)\n dataset = DatasetDict({\n \"train\": dataset[\"train\"],\n \"test\": dataset[\"test\"]\n })\n return dataset\n \n load_and_preprocess_dataset()\n\n\nI am getting following error:\n\n Downloading\u2007data:\u2007100%\n \u200725\/25\u2007[00:01<00:00,\u200725.31files\/s]\n ---------------------------------------------------------------------------\n HTTPError Traceback (most recent call last)\n File ~\/github\/bangla-asr\/.venv\/lib\/python3.11\/site-packages\/huggingface_hub\/utils\/_http.py:409, in hf_raise_for_status(response, endpoint_name)\n 408 try:\n --> 409 response.raise_for_status()\n 410 except HTTPError as e:\n \n File ~\/github\/bangla-asr\/.venv\/lib\/python3.11\/site-packages\/requests\/models.py:1024, in Response.raise_for_status(self)\n 1023 if http_error_msg:\n -> 1024 raise HTTPError(http_error_msg, response=self)\n \n HTTPError: 403 Client Error: BlockSIEL for url: https:\/\/hf.co\/api\/s3proxy?GET=https%3A%2F%2Fhf-hub-lfs-us-east-1.s3.us-east-1.amazonaws.com%2Frepos%2Fa3%2F86%2Fa386bf65687d8a6928c1ea57c383aa3faade32f5171150e25af3fc1cfc273db8%2F67f1ac9cabd539bfbff3acbc549b60647833a250dc638866f22bf1b64e68806d%3FX-Amz-Algorithm%3DAWS4-HMAC-SHA256%26X-Amz-Content-Sha256%3DUNSIGNED-PAYLOAD%26X-Amz-Credential%3DAKIA2JU7TKAQLC2QXPN7%252F20250408%252Fus-east-1%252Fs3%252Faws4_request%26X-Amz-Date%3D20250408T134345Z%26X-Amz-Expires%3D3600%26X-Amz-Signature%3D621e731d4fd6d08afbf568379797746ab8e2b853b6728ff5e1122fef6e56880b%26X-Amz-SignedHeaders%3Dhost%26response-content-disposition%3Dinline%253B%2520filename%252A%253DUTF-8%2527%2527bn_validated_1.tar%253B%2520filename%253D%2522bn_validated_1.tar%2522%253B%26response-content-type%3Dapplication%252Fx-tar%26x-id%3DGetObject&HEAD=https%3A%2F%2Fhf-hub-lfs-us-east-1.s3.us-east-1.amazonaws.com%2Frepos%2Fa3%2F86%2Fa386bf65687d8a6928c1ea57c383aa3faade32f5171150e25af3fc1cfc273db8%2F67f1ac9cabd539bfbff3acbc549b60647833a250dc638866f22bf1b64e68806d%3FX-Amz-Algorithm%3DAWS4-HMAC-SHA256%26X-Amz-Content-Sha256%3DUNSIGNED-PAYLOAD%26X-Amz-Credential%3DAKIA2JU7TKAQLC2QXPN7%252F20250408%252Fus-east-1%252Fs3%252Faws4_request%26X-Amz-Date%3D20250408T134345Z%26X-Amz-Expires%3D3600%26X-Amz-Signature%3D15254fb79d30b0dc36b94a28138e675e0e00bb475b8a3ae774418500b095a661%26X-Amz-SignedHeaders%3Dhost&sign=eyJhbGciOiJIUzI1NiJ9.eyJyZWRpcmVjdF9kb21haW4iOiJoZi1odWItbGZzLXVzLWVhc3QtMS5zMy51cy1lYXN0LTEuYW1hem9uYXdzLmNvbSIsImlhdCI6MTc0NDExOTgyNSwiZXhwIjoxNzQ0MjA2MjI1LCJpc3MiOiJodHRwczovL2h1Z2dpbmdmYWNlLmNvIn0.5sJzudFDU3SmOdOLlwmQCOfQFf2r7y9590HoX8WBkRk\n \n The above exception was the direct cause of the following exception:\n \n HfHubHTTPError Traceback (most recent call last)\n Cell In[16], line 15\n 9 dataset = DatasetDict({\n 10 \"train\": dataset[\"train\"],\n 11 \"test\": dataset[\"test\"]\n 12 })\n 13 return dataset\n ---> 15 load_and_preprocess_dataset()\n 17 # def setup_model():\n 18 # processor = WhisperProcessor.from_pretrained(\"openai\/whisper-base\")\n ...\n 475 range_header = response.request.headers.get(\"Range\")\n \n HfHubHTTPError: 403 Forbidden: None.\n Cannot access content at: https:\/\/hf.co\/api\/s3proxy?GET=https%3A%2F%2Fhf-hub-lfs-us-east-1.s3.us-east-1.amazonaws.com%2Frepos%2Fa3%2F86%2Fa386bf6568724a6928c1ea57c383aa3faade32f5171150e25af3fc1cfc273db8%2F67f1ac9cabd539bfbff3acbc549b60647833a250dc638786f22bf1b64e68806d%3FX-Amz-Algorithm%3DAWS4-HMAC-SHA256%26X-Amz-Content-Sha256%3DUNSIGNED-PAYLOAD%26X-Amz-Credential%3DAKIA2JU7TKAQLC2QXPN7%252F20250408%252Fus-east-1%252Fs3%252Faws4_request%26X-Amz-Date%3D20250408T134345Z%26X-Amz-Expires%3D3600%26X-Amz-Signature%3D621e731d4fd6d08afbf568379797746ab394b853b6728ff5e1122fef6e56880b%26X-Amz-SignedHeaders%3Dhost%26response-content-disposition%3Dinline%253B%2520filename%252A%253DUTF-8%2527%2527bn_validated_1.tar%253B%2520filename%253D%2522bn_validated_1.tar%2522%253B%26response-content-type%3Dapplication%252Fx-tar%26x-id%3DGetObject&HEAD=https%3A%2F%2Fhf-hub-lfs-us-east-1.s3.us-east-1.amazonaws.com%2Frepos%2Fa3%2F86%2Fa386bf65687ab76928c1ea57c383aa3faade32f5171150e25af3fc1cfc273db8%2F67f1ac9cabd539bfbff3acbc549b60647833a250d2338866f222f1b64e68806d%3FX-Amz-Algorithm%3DAWS4-HMAC-SHA256%26X-Amz-Content-Sha256%3DUNSIGNED-PAYLOAD%26X-Amz-Credential%3DAKIA2JU7TKAQLC2QXPN7%252F20250408%252Fus-east-1%252Fs3%252Faws4_request%26X-Amz-Date%3D20250408T134345Z%26X-Amz-Expires%3D3600%26X-Amz-Signature%3D15254fb79d30b0dc36b94a28138e675e0e00bb475b8a3ae774418500b095a661%26X-Amz-SignedHeaders%3Dhost&sign=eyJhbGciOiJIUzI1NiJ9.eyJyZWRpcmVjds9kb21haW4iOiJoZi1odWItbGZzLXVzLWVhc3QtMS5zMy51cy1lYXN0LTEuYW1hem9uYXdzLmNvbSIsImlhdCI6MTc0NDExOT2yNSwiZXhwIjoxNzQ0MjA2MjI1LCJpc3MiOiJodHRwczovL2h1Z2dpbmdmYWNlLmNvIn0.5sJzudFDU3SmOdOLlwmQdOfQFf2r7y9590HoX8WBkRk.\n Make sure your token has the correct permissions.\n\n\n**What's wrong with the code?** Please note that the error is happening only when I am running from my office network due to probably proxy. Which URL, I need to take a proxy exception?","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7505\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7505\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7504","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7504\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7504\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7504\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7504","id":2979410641,"node_id":"I_kwDODunzps6xljLR","number":7504,"title":"BuilderConfig ParquetConfig(...) doesn't have a 'use_auth_token' key.","user":{"login":"tteguayco","id":20015750,"node_id":"MDQ6VXNlcjIwMDE1NzUw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/20015750?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/tteguayco","html_url":"https:\/\/github.com\/tteguayco","followers_url":"https:\/\/api.github.com\/users\/tteguayco\/followers","following_url":"https:\/\/api.github.com\/users\/tteguayco\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/tteguayco\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/tteguayco\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/tteguayco\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/tteguayco\/orgs","repos_url":"https:\/\/api.github.com\/users\/tteguayco\/repos","events_url":"https:\/\/api.github.com\/users\/tteguayco\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/tteguayco\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2025-04-08T10:55:03Z","updated_at":"2025-06-28T09:18:09Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nTrying to run the following fine-tuning script (based on this page [here](https:\/\/github.com\/huggingface\/instruction-tuned-sd)):\n\n```\n! accelerate launch \/content\/instruction-tuned-sd\/finetune_instruct_pix2pix.py \\\n --pretrained_model_name_or_path=${MODEL_ID} \\\n --dataset_name=${DATASET_NAME} \\\n --use_ema \\\n --enable_xformers_memory_efficient_attention \\\n --resolution=512 --random_flip \\\n --train_batch_size=2 --gradient_accumulation_steps=4 --gradient_checkpointing \\\n --max_train_steps=500 \\\n --checkpointing_steps=25 --checkpoints_total_limit=1 \\\n --learning_rate=5e-05 --max_grad_norm=1 --lr_warmup_steps=20 \\\n --conditioning_dropout_prob=0.1 \\\n --mixed_precision=fp16 \\\n --seed=42 \\\n --output_dir=${OUTPUT_DIR} \\\n --original_image_column=before \\\n --edit_prompt=prompt \\\n --edited_image=after\n```\n\nbut I keep getting the following error:\n\n```\nTraceback (most recent call last):\n File \"\/content\/instruction-tuned-sd\/finetune_instruct_pix2pix.py\", line 1137, in \n main()\n File \"\/content\/instruction-tuned-sd\/finetune_instruct_pix2pix.py\", line 652, in main\n dataset = load_dataset(\n ^^^^^^^^^^^^^\n File \"\/usr\/local\/lib\/python3.11\/dist-packages\/datasets\/load.py\", line 2129, in load_dataset\n builder_instance = load_dataset_builder(\n ^^^^^^^^^^^^^^^^^^^^^\n File \"\/usr\/local\/lib\/python3.11\/dist-packages\/datasets\/load.py\", line 1886, in load_dataset_builder\n builder_instance: DatasetBuilder = builder_cls(\n ^^^^^^^^^^^^\n File \"\/usr\/local\/lib\/python3.11\/dist-packages\/datasets\/builder.py\", line 342, in __init__\n self.config, self.config_id = self._create_builder_config(\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"\/usr\/local\/lib\/python3.11\/dist-packages\/datasets\/builder.py\", line 590, in _create_builder_config\n raise ValueError(f\"BuilderConfig {builder_config} doesn't have a '{key}' key.\")\nValueError: BuilderConfig ParquetConfig(name='default', version=0.0.0, data_dir=None, data_files={'train': ['data\/train-*']}, description=None, batch_size=None, columns=None, features=None, filters=None) doesn't have a 'use_auth_token' key.\nTraceback (most recent call last):\n File \"\/usr\/local\/bin\/accelerate\", line 10, in \n sys.exit(main())\n ^^^^^^\n```\n\nAny ideas? `datasets` version should be `3.2.0`.\n\n### Steps to reproduce the bug\n\nJust running the script above.\n\n### Expected behavior\n\nNo errors\n\n### Environment info\n\nPython 3.11.11\n\ndatasets==3.2.0","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7504\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7504\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7503","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7503\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7503\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7503\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7503","id":2978512625,"node_id":"I_kwDODunzps6xiH7x","number":7503,"title":"Inconsistency between load_dataset and load_from_disk functionality","user":{"login":"zzzzzec","id":60975422,"node_id":"MDQ6VXNlcjYwOTc1NDIy","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/60975422?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/zzzzzec","html_url":"https:\/\/github.com\/zzzzzec","followers_url":"https:\/\/api.github.com\/users\/zzzzzec\/followers","following_url":"https:\/\/api.github.com\/users\/zzzzzec\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/zzzzzec\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/zzzzzec\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/zzzzzec\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/zzzzzec\/orgs","repos_url":"https:\/\/api.github.com\/users\/zzzzzec\/repos","events_url":"https:\/\/api.github.com\/users\/zzzzzec\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/zzzzzec\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-04-08T03:46:22Z","updated_at":"2025-06-28T08:51:16Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"## Issue Description\n\nI've encountered confusion when using `load_dataset` and `load_from_disk` in the datasets library. Specifically, when working offline with the gsm8k dataset, I can load it using a local path:\n\n```python\nimport datasets\nds = datasets.load_dataset('\/root\/xxx\/datasets\/gsm8k', 'main')\n```\noutput:\n```text\nDatasetDict({\n train: Dataset({\n features: ['question', 'answer'],\n num_rows: 7473\n })\n test: Dataset({\n features: ['question', 'answer'],\n num_rows: 1319\n })\n})\n```\n\nThis works as expected. However, after processing the dataset (converting answer format from #### to \\boxed{})\n```python\nimport datasets\nds = datasets.load_dataset('\/root\/xxx\/datasets\/gsm8k', 'main')\nds_train = ds['train']\nds_test = ds['test']\nimport re\ndef convert(sample):\n solution = sample['answer']\n solution = re.sub(r'####\\s*(\\S+)', r'\\\\boxed{\\1}', solution)\n sample = {\n 'problem': sample['question'],\n 'solution': solution\n }\n return sample\n\nds_train = ds_train.map(convert, remove_columns=['question', 'answer'])\nds_test = ds_test.map(convert,remove_columns=['question', 'answer'])\n```\n\n I saved it using save_to_disk:\n```python\nfrom datasets.dataset_dict import DatasetDict\ndata_dict = DatasetDict({\n 'train': ds_train,\n 'test': ds_test\n})\ndata_dict.save_to_disk('\/root\/xxx\/datasets\/gsm8k-new')\n```\nBut now I can only load it using load_from_disk:\n\n```python\nnew_ds = load_from_disk('\/root\/xxx\/datasets\/gsm8k-new')\n```\noutput:\n```text\nDatasetDict({\n train: Dataset({\n features: ['problem', 'solution'],\n num_rows: 7473\n })\n test: Dataset({\n features: ['problem', 'solution'],\n num_rows: 1319\n })\n})\n```\n\nAttempting to use load_dataset produces unexpected results:\n```python\nnew_ds = load_dataset('\/root\/xxx\/datasets\/gsm8k-new')\n```\noutput:\n```text\nDatasetDict({\n train: Dataset({\n features: ['_data_files', '_fingerprint', '_format_columns', '_format_kwargs', '_format_type', '_output_all_columns', '_split'],\n num_rows: 1\n })\n test: Dataset({\n features: ['_data_files', '_fingerprint', '_format_columns', '_format_kwargs', '_format_type', '_output_all_columns', '_split'],\n num_rows: 1\n })\n})\n```\nQuestions\n1. Why is it designed such that after using `save_to_disk`, the dataset cannot be loaded with `load_dataset`? For small projects with limited code, it might be relatively easy to change all instances of `load_dataset` to `load_from_disk`. However, for complex frameworks like TRL or lighteval, diving into the framework code to change `load_dataset` to `load_from_disk` is extremely tedious and error-prone.\nAdditionally, `load_from_disk` cannot load datasets directly downloaded from the hub, which means that if you need to modify a dataset, you have to choose between using `load_from_disk` or `load_dataset`. This creates an unnecessary dichotomy in the API and complicates workflow when working with modified datasets.\n2. What's the recommended approach for this use case? Should I manually process my gsm8k-new dataset to make it compatible with load_dataset? Is there a standard way to convert between these formats?\n\nthanks~","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7503\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7503\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7502","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7502\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7502\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7502\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7502","id":2977453814,"node_id":"I_kwDODunzps6xeFb2","number":7502,"title":"`load_dataset` of size 40GB creates a cache of >720GB","user":{"login":"pietrolesci","id":61748653,"node_id":"MDQ6VXNlcjYxNzQ4NjUz","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/61748653?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/pietrolesci","html_url":"https:\/\/github.com\/pietrolesci","followers_url":"https:\/\/api.github.com\/users\/pietrolesci\/followers","following_url":"https:\/\/api.github.com\/users\/pietrolesci\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/pietrolesci\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/pietrolesci\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/pietrolesci\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/pietrolesci\/orgs","repos_url":"https:\/\/api.github.com\/users\/pietrolesci\/repos","events_url":"https:\/\/api.github.com\/users\/pietrolesci\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/pietrolesci\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-04-07T16:52:34Z","updated_at":"2025-04-15T15:22:12Z","closed_at":"2025-04-15T15:22:11Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"Hi there,\n\nI am trying to load a dataset from the Hugging Face Hub and split it into train and validation splits. Somehow, when I try to do it with `load_dataset`, it exhausts my disk quota. So, I tried manually downloading the parquet files from the hub and loading them as follows:\n\n```python\n ds = DatasetDict(\n {\n \"train\": load_dataset(\n \"parquet\", \n data_dir=f\"{local_dir}\/{tok}\", \n cache_dir=cache_dir, \n num_proc=min(12, os.cpu_count()), # type: ignore\n split=ReadInstruction(\"train\", from_=0, to=NUM_TRAIN, unit=\"abs\"), # type: ignore\n ),\n \"validation\": load_dataset(\n \"parquet\", \n data_dir=f\"{local_dir}\/{tok}\", \n cache_dir=cache_dir, \n num_proc=min(12, os.cpu_count()), # type: ignore\n split=ReadInstruction(\"train\", from_=NUM_TRAIN, unit=\"abs\"), # type: ignore\n )\n }\n )\n\n```\n\nwhich still strangely creates 720GB of cache. In addition, if I remove the raw parquet file folder (`f\"{local_dir}\/{tok}\"` in this example), I am not able to load anything. So, I am left wondering what this cache is doing. Am I missing something? Is there a solution to this problem?\n\nThanks a lot in advance for your help!\n\nA related issue: https:\/\/github.com\/huggingface\/transformers\/issues\/10204#issue-809007443.\n\n---\n\nPython: 3.11.11\ndatasets: 3.5.0\n","closed_by":{"login":"pietrolesci","id":61748653,"node_id":"MDQ6VXNlcjYxNzQ4NjUz","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/61748653?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/pietrolesci","html_url":"https:\/\/github.com\/pietrolesci","followers_url":"https:\/\/api.github.com\/users\/pietrolesci\/followers","following_url":"https:\/\/api.github.com\/users\/pietrolesci\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/pietrolesci\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/pietrolesci\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/pietrolesci\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/pietrolesci\/orgs","repos_url":"https:\/\/api.github.com\/users\/pietrolesci\/repos","events_url":"https:\/\/api.github.com\/users\/pietrolesci\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/pietrolesci\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7502\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7502\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7501","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7501\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7501\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7501\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7501","id":2976721014,"node_id":"I_kwDODunzps6xbSh2","number":7501,"title":"Nested Feature raises ArrowNotImplementedError: Unsupported cast using function cast_struct","user":{"login":"yaner-here","id":26623948,"node_id":"MDQ6VXNlcjI2NjIzOTQ4","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/26623948?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/yaner-here","html_url":"https:\/\/github.com\/yaner-here","followers_url":"https:\/\/api.github.com\/users\/yaner-here\/followers","following_url":"https:\/\/api.github.com\/users\/yaner-here\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/yaner-here\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/yaner-here\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/yaner-here\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/yaner-here\/orgs","repos_url":"https:\/\/api.github.com\/users\/yaner-here\/repos","events_url":"https:\/\/api.github.com\/users\/yaner-here\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/yaner-here\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-04-07T12:35:39Z","updated_at":"2025-04-07T12:43:04Z","closed_at":"2025-04-07T12:43:03Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\n`datasets.Features` seems to be unable to handle json file that contains fields of `list[dict]`.\n\n### Steps to reproduce the bug\n\n```json\n\/\/ test.json\n{\"a\": 1, \"b\": [{\"c\": 2, \"d\": 3}, {\"c\": 4, \"d\": 5}]}\n{\"a\": 5, \"b\": [{\"c\": 7, \"d\": 8}, {\"c\": 9, \"d\": 10}]}\n```\n\n```python\nimport json\nfrom datasets import Dataset, Features, Value, Sequence, load_dataset\n\nannotation_feature = Features({\n \"a\": Value(\"int32\"),\n \"b\": Sequence({\n \"c\": Value(\"int32\"),\n \"d\": Value(\"int32\"),\n }),\n})\nannotation_dataset = load_dataset(\n \"json\", \n data_files=\"test.json\",\n features=annotation_feature\n)\n```\n\n```\nArrowNotImplementedError: Unsupported cast from list> to struct using function cast_struct\n\nThe above exception was the direct cause of the following exception:\n\nDatasetGenerationError Traceback (most recent call last)\nCell In[46], line 11\n 2 from datasets import Dataset, Features, Value, Sequence, load_dataset\n 4 annotation_feature = Features({\n 5 \"a\": Value(\"int32\"),\n 6 \"b\": Sequence({\n (...) 9 }),\n 10 })\n---> 11 annotation_dataset = load_dataset(\n 12 \"json\", \n 13 data_files=\"test.json\",\n 14 features=annotation_feature\n 15 )\n```\n\n### Expected behavior\n\nA `datasets.Datasets` instance should be initialized.\n\n### Environment info\n\n- `datasets` version: 3.5.0\n- Platform: Linux-6.11.0-21-generic-x86_64-with-glibc2.39\n- Python version: 3.11.11\n- `huggingface_hub` version: 0.30.1\n- PyArrow version: 19.0.1\n- Pandas version: 2.2.3\n- `fsspec` version: 2024.12.0","closed_by":{"login":"yaner-here","id":26623948,"node_id":"MDQ6VXNlcjI2NjIzOTQ4","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/26623948?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/yaner-here","html_url":"https:\/\/github.com\/yaner-here","followers_url":"https:\/\/api.github.com\/users\/yaner-here\/followers","following_url":"https:\/\/api.github.com\/users\/yaner-here\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/yaner-here\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/yaner-here\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/yaner-here\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/yaner-here\/orgs","repos_url":"https:\/\/api.github.com\/users\/yaner-here\/repos","events_url":"https:\/\/api.github.com\/users\/yaner-here\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/yaner-here\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7501\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7501\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7500","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7500\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7500\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7500\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7500","id":2974841921,"node_id":"I_kwDODunzps6xUHxB","number":7500,"title":"Make `with_format` correctly indicate that a `Dataset` is compatible with PyTorch's `Dataset` class","user":{"login":"benglewis","id":3817460,"node_id":"MDQ6VXNlcjM4MTc0NjA=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/3817460?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/benglewis","html_url":"https:\/\/github.com\/benglewis","followers_url":"https:\/\/api.github.com\/users\/benglewis\/followers","following_url":"https:\/\/api.github.com\/users\/benglewis\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/benglewis\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/benglewis\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/benglewis\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/benglewis\/orgs","repos_url":"https:\/\/api.github.com\/users\/benglewis\/repos","events_url":"https:\/\/api.github.com\/users\/benglewis\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/benglewis\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-04-06T09:56:09Z","updated_at":"2025-04-15T12:57:39Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nCurrently `datasets` does not correctly indicate to the Python type-checker (e.g. `pyright` \/ `Pylance`) that the output of `with_format` is compatible with PyTorch's `Dataloader` since it does not indicate that the HuggingFace `Dataset` is compatible with the PyTorch `Dataset` class. It would be great if we could get the typing to work nicely.\n\n### Motivation\n\nTo avoid casting types in our Python code.\n\n### Your contribution\n\nI would be happy to contribute a PR if this is something that may be accepted and could work with the current approach.\nThis doesn't have to be for just PyTorch, but I imagine that the same thing would be useful for `tensorflow` and such, but we only have a need for PyTorch at this stage.","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7500\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7500\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7499","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7499\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7499\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7499\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7499","id":2973489126,"node_id":"PR_kwDODunzps6Rd4Zp","number":7499,"title":"Added cache dirs to load and file_utils","user":{"login":"gmongaras","id":43501738,"node_id":"MDQ6VXNlcjQzNTAxNzM4","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/43501738?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/gmongaras","html_url":"https:\/\/github.com\/gmongaras","followers_url":"https:\/\/api.github.com\/users\/gmongaras\/followers","following_url":"https:\/\/api.github.com\/users\/gmongaras\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/gmongaras\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/gmongaras\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/gmongaras\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/gmongaras\/orgs","repos_url":"https:\/\/api.github.com\/users\/gmongaras\/repos","events_url":"https:\/\/api.github.com\/users\/gmongaras\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/gmongaras\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2025-04-04T22:36:04Z","updated_at":"2025-05-07T14:07:34Z","closed_at":"2025-05-07T14:07:34Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7499","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7499","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7499.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7499.patch","merged_at":null},"body":"When adding \"cache_dir\" to datasets.load_dataset, the cache_dir gets lost in the function calls, changing the cache dir to the default path. This fixes a few of these instances.","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7499\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7499\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7498","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7498\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7498\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7498\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7498","id":2969218273,"node_id":"I_kwDODunzps6w-qzh","number":7498,"title":"Extreme memory bandwidth.","user":{"login":"J0SZ","id":185079645,"node_id":"U_kgDOCwgXXQ","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/185079645?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/J0SZ","html_url":"https:\/\/github.com\/J0SZ","followers_url":"https:\/\/api.github.com\/users\/J0SZ\/followers","following_url":"https:\/\/api.github.com\/users\/J0SZ\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/J0SZ\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/J0SZ\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/J0SZ\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/J0SZ\/orgs","repos_url":"https:\/\/api.github.com\/users\/J0SZ\/repos","events_url":"https:\/\/api.github.com\/users\/J0SZ\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/J0SZ\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-04-03T11:09:08Z","updated_at":"2025-04-03T11:11:22Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nWhen I use hf datasets on 4 GPU with 40 workers I get some extreme memory bandwidth of constant ~3GB\/s. \n\nHowever, if I wrap the dataset in `IterableDataset`, this issue is gone and the data also loads way faster (4x faster training on 1 worker).\n\nIt seems like the workers don't share memory and basically duplicate the data 4x40.\n\n\n\n### Steps to reproduce the bug\n\nTrainer arguments:\n```\n dataloader_pin_memory=True,\n dataloader_num_workers=40,\n dataloader_prefetch_factor=2,\n dataloader_persistent_workers=True,\n```\nCall trainer:\n```\ntrainer = Trainer(\n model=model,\n args=train_args,\n train_dataset=load_from_disk('..').with_fromat('torch'),\n)\n```\nThe dataset has 600GB and consists of 1225 files.\n\n### Expected behavior\n\nThe optimal bandwidth should be 100MB\/s to keep up with GPU.\n\n### Environment info\n\nLinux\nPython 3.11\ndatasets==3.2.0\n\n","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7498\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7498\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7497","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7497\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7497\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7497\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7497","id":2968553693,"node_id":"I_kwDODunzps6w8Ijd","number":7497,"title":"How to convert videos to images?","user":{"login":"Loki-Lu","id":171649931,"node_id":"U_kgDOCjsriw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/171649931?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Loki-Lu","html_url":"https:\/\/github.com\/Loki-Lu","followers_url":"https:\/\/api.github.com\/users\/Loki-Lu\/followers","following_url":"https:\/\/api.github.com\/users\/Loki-Lu\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Loki-Lu\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Loki-Lu\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Loki-Lu\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Loki-Lu\/orgs","repos_url":"https:\/\/api.github.com\/users\/Loki-Lu\/repos","events_url":"https:\/\/api.github.com\/users\/Loki-Lu\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Loki-Lu\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-04-03T07:08:39Z","updated_at":"2025-04-15T12:35:15Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nDoes someone know how to return the images from videos?\n\n### Motivation\n\nI am trying to use openpi(https:\/\/github.com\/Physical-Intelligence\/openpi) to finetune my Lerobot dataset(V2.0 and V2.1). I find that although the codedaset is v2.0, they are different. It seems like Lerobot V2.0 has two version, one is data include images infos and another one is separate to data and videos.\n\nDoes someone know how to return the images from videos?\n\n\n\n","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7497\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7497\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7496","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7496\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7496\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7496\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7496","id":2967345522,"node_id":"I_kwDODunzps6w3hly","number":7496,"title":"Json builder: Allow features to override problematic Arrow types","user":{"login":"edmcman","id":1017189,"node_id":"MDQ6VXNlcjEwMTcxODk=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/1017189?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/edmcman","html_url":"https:\/\/github.com\/edmcman","followers_url":"https:\/\/api.github.com\/users\/edmcman\/followers","following_url":"https:\/\/api.github.com\/users\/edmcman\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/edmcman\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/edmcman\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/edmcman\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/edmcman\/orgs","repos_url":"https:\/\/api.github.com\/users\/edmcman\/repos","events_url":"https:\/\/api.github.com\/users\/edmcman\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/edmcman\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-04-02T19:27:16Z","updated_at":"2025-04-15T13:06:09Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nIn the JSON builder, use explicitly requested feature types before or while converting to Arrow.\n\n### Motivation\n\nWorking with JSON datasets is really hard because of Arrow. At the very least, it seems like it should be possible to work-around these problems by explicitly setting problematic columns's types. But it seems like this is not possible because the features are only used *after* converting to arrow.\n\nHere's a simple example where the Arrow error could potentially be avoided by converting the column to a string: https:\/\/colab.research.google.com\/drive\/16QHRdbUwKSrpwVfGwu8V8AHr8v2dv0dt?usp=sharing\n\n### Your contribution\n\nMaybe with some guidance. I'm not very familiar with arrow or pandas.","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7496\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7496\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7495","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7495\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7495\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7495\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7495","id":2967034060,"node_id":"I_kwDODunzps6w2VjM","number":7495,"title":"Columns in the dataset obtained though load_dataset do not correspond to the one in the dataset viewer since 3.4.0","user":{"login":"bruno-hays","id":48770768,"node_id":"MDQ6VXNlcjQ4NzcwNzY4","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/48770768?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/bruno-hays","html_url":"https:\/\/github.com\/bruno-hays","followers_url":"https:\/\/api.github.com\/users\/bruno-hays\/followers","following_url":"https:\/\/api.github.com\/users\/bruno-hays\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/bruno-hays\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/bruno-hays\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/bruno-hays\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/bruno-hays\/orgs","repos_url":"https:\/\/api.github.com\/users\/bruno-hays\/repos","events_url":"https:\/\/api.github.com\/users\/bruno-hays\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/bruno-hays\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2025-04-02T17:01:11Z","updated_at":"2025-07-02T23:24:57Z","closed_at":"2025-07-02T23:24:57Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI have noticed that on my dataset named [BrunoHays\/Accueil_UBS](https:\/\/huggingface.co\/datasets\/BrunoHays\/Accueil_UBS), since the version 3.4.0, every column except audio is missing when I load the dataset.\n\nInterestingly, the dataset viewer still shows the correct columns\n\n### Steps to reproduce the bug\n\n```python\nfrom datasets import load_dataset\nds = load_dataset(\"BrunoHays\/Accueil_UBS\", streaming=True)\nprint(next(iter(ds[\"test\"])).keys())\n```\nWith datasets >= 3.4.0: \n-> dict_keys(['audio'])\nWith datasets == 3.3.2:\n-> dict_keys(['audio', 'id', 'speaker', 'sentence', 'raw_sentence', 'start_timestamp', 'end_timestamp', 'overlap'])\n\n\n### Expected behavior\n\nAll the columns should be present\n\n### Environment info\n\n- `datasets` version: 3.3.2\n- Platform: macOS-14.6.1-x86_64-i386-64bit\n- Python version: 3.10.15\n- `huggingface_hub` version: 0.30.1\n- PyArrow version: 16.1.0\n- Pandas version: 1.5.3\n- `fsspec` version: 2023.10.0\n","closed_by":{"login":"bruno-hays","id":48770768,"node_id":"MDQ6VXNlcjQ4NzcwNzY4","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/48770768?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/bruno-hays","html_url":"https:\/\/github.com\/bruno-hays","followers_url":"https:\/\/api.github.com\/users\/bruno-hays\/followers","following_url":"https:\/\/api.github.com\/users\/bruno-hays\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/bruno-hays\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/bruno-hays\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/bruno-hays\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/bruno-hays\/orgs","repos_url":"https:\/\/api.github.com\/users\/bruno-hays\/repos","events_url":"https:\/\/api.github.com\/users\/bruno-hays\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/bruno-hays\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7495\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7495\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7494","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7494\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7494\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7494\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7494","id":2965347685,"node_id":"I_kwDODunzps6wv51l","number":7494,"title":"Broken links in pdf loading documentation","user":{"login":"VyoJ","id":75789232,"node_id":"MDQ6VXNlcjc1Nzg5MjMy","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/75789232?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/VyoJ","html_url":"https:\/\/github.com\/VyoJ","followers_url":"https:\/\/api.github.com\/users\/VyoJ\/followers","following_url":"https:\/\/api.github.com\/users\/VyoJ\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/VyoJ\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/VyoJ\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/VyoJ\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/VyoJ\/orgs","repos_url":"https:\/\/api.github.com\/users\/VyoJ\/repos","events_url":"https:\/\/api.github.com\/users\/VyoJ\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/VyoJ\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-04-02T06:45:22Z","updated_at":"2025-04-15T13:36:25Z","closed_at":"2025-04-15T13:36:04Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nHi, just a couple of small issues I ran into while reading the docs for [loading pdf data](https:\/\/huggingface.co\/docs\/datasets\/main\/en\/document_load):\n\n1. The link for the [`Create a pdf dataset`](https:\/\/huggingface.co\/docs\/datasets\/main\/en\/document_load#pdffolder) points to https:\/\/huggingface.co\/docs\/datasets\/main\/en\/pdf_dataset instead of https:\/\/huggingface.co\/docs\/datasets\/main\/en\/document_dataset and hence gives a 404 error.\n\n2. At the top of the page, it's mentioned that to work with pdf datasets we need to have the `pdfplumber` package installed but the link to its installation guide points to `pytorch\/vision` [installation instructions](https:\/\/github.com\/pytorch\/vision#installation) instead of `pdfplumber`'s [guide](https:\/\/github.com\/jsvine\/pdfplumber#installation)\n\nI love the work on enabling pdf dataset support and these small tweaks would help everyone navigate the docs better. Thanks!\n\n### Steps to reproduce the bug\n\nThe issue is on the [Load Document Data](https:\/\/huggingface.co\/docs\/datasets\/main\/en\/document_load) page of the datasets docs.\n\n### Expected behavior\n\n1. For solving the first issue, I went through the [source .mdx code](https:\/\/github.com\/huggingface\/datasets\/blob\/main\/docs\/source\/document_load.mdx?plain=1#L188) of the datasets docs and found that the link is pointing to `.\/pdf_dataset` instead of `.\/document_dataset`\n\n2. For the second issue, I went through the [source .mdx code](https:\/\/github.com\/huggingface\/datasets\/blob\/main\/docs\/source\/document_load.mdx?plain=1#L13) of the datasets docs and found that the link is `pytorch\/vision` [installation instructions](https:\/\/github.com\/pytorch\/vision#installation) instead of `pdfplumber`'s [guide](https:\/\/github.com\/jsvine\/pdfplumber#installation)\n\nJust replacing these two links should fix the bugs\n\n### Environment info\n\ndatasets v3.5.0 (main at the time of writing)","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7494\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7494\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7493","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7493\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7493\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7493\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7493","id":2964025179,"node_id":"I_kwDODunzps6wq29b","number":7493,"title":"push_to_hub does not upload videos","user":{"login":"DominikVincent","id":9339403,"node_id":"MDQ6VXNlcjkzMzk0MDM=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/9339403?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/DominikVincent","html_url":"https:\/\/github.com\/DominikVincent","followers_url":"https:\/\/api.github.com\/users\/DominikVincent\/followers","following_url":"https:\/\/api.github.com\/users\/DominikVincent\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/DominikVincent\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/DominikVincent\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/DominikVincent\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/DominikVincent\/orgs","repos_url":"https:\/\/api.github.com\/users\/DominikVincent\/repos","events_url":"https:\/\/api.github.com\/users\/DominikVincent\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/DominikVincent\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-04-01T17:00:20Z","updated_at":"2025-08-01T18:24:24Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nHello,\n\nI would like to upload a video dataset (some .mp4 files and some segments within them), i.e. rows correspond to subsequences from videos. Videos might be referenced by several rows.\n\nI created a dataset locally and it references the videos and the video readers can read them correctly. I use push_to_hub() to upload the dataset to the hub.\n\nExpectation: A user uses `load_dataset` and can load the videos.\n\nHowever, the videos seem to be just referenced via paths on the computer and not uploaded to the hub. Therefore a target user cannot load the videos in the dataset.\n\n### Steps to reproduce the bug\n\n1. create a video dataset with paths e.g. { [\"videos\"]: [path1, path2, ...]}\n2. dataset.push_to_hub\n3. on a different computer (or same pc if relative paths are used in a different folder):\n```\ndataset = load_dataset(\"siplab\/egosim\", split=\"train\")\nvideo = dataset[0][\"video_head\"]\n```\n\n3. will fail\n\n### Expected behavior\n\nExpectation: A user uses `load_dataset` and can load the videos.\n\n### Environment info\n\ndatasets 3.1.0\nPython 3.8.18","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7493\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7493\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7492","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7492\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7492\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7492\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7492","id":2959088568,"node_id":"PR_kwDODunzps6QtCQM","number":7492,"title":"Closes #7457","user":{"login":"Harry-Yang0518","id":129883215,"node_id":"U_kgDOB73cTw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/129883215?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Harry-Yang0518","html_url":"https:\/\/github.com\/Harry-Yang0518","followers_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/followers","following_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/orgs","repos_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/repos","events_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-03-30T20:41:20Z","updated_at":"2025-04-13T22:05:07Z","closed_at":"2025-04-13T22:05:07Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7492","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7492","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7492.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7492.patch","merged_at":null},"body":"This PR updates the documentation to include the HF_DATASETS_CACHE environment variable, which allows users to customize the cache location for datasets\u2014similar to HF_HUB_CACHE for models.","closed_by":{"login":"Harry-Yang0518","id":129883215,"node_id":"U_kgDOB73cTw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/129883215?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Harry-Yang0518","html_url":"https:\/\/github.com\/Harry-Yang0518","followers_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/followers","following_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/orgs","repos_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/repos","events_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7492\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7492\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7491","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7491\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7491\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7491\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7491","id":2959085647,"node_id":"PR_kwDODunzps6QtBsD","number":7491,"title":"docs: update cache.mdx to include HF_DATASETS_CACHE documentation","user":{"login":"Harry-Yang0518","id":129883215,"node_id":"U_kgDOB73cTw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/129883215?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Harry-Yang0518","html_url":"https:\/\/github.com\/Harry-Yang0518","followers_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/followers","following_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/orgs","repos_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/repos","events_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-03-30T20:35:03Z","updated_at":"2025-03-30T20:36:40Z","closed_at":"2025-03-30T20:36:40Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7491","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7491","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7491.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7491.patch","merged_at":null},"body":null,"closed_by":{"login":"Harry-Yang0518","id":129883215,"node_id":"U_kgDOB73cTw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/129883215?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Harry-Yang0518","html_url":"https:\/\/github.com\/Harry-Yang0518","followers_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/followers","following_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/orgs","repos_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/repos","events_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7491\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7491\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7490","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7490\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7490\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7490\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7490","id":2958826222,"node_id":"PR_kwDODunzps6QsPUI","number":7490,"title":"(refactor) remove redundant logic in _check_valid_index_key","user":{"login":"suzyahyah","id":2980993,"node_id":"MDQ6VXNlcjI5ODA5OTM=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/2980993?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/suzyahyah","html_url":"https:\/\/github.com\/suzyahyah","followers_url":"https:\/\/api.github.com\/users\/suzyahyah\/followers","following_url":"https:\/\/api.github.com\/users\/suzyahyah\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/suzyahyah\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/suzyahyah\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/suzyahyah\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/suzyahyah\/orgs","repos_url":"https:\/\/api.github.com\/users\/suzyahyah\/repos","events_url":"https:\/\/api.github.com\/users\/suzyahyah\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/suzyahyah\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-03-30T11:45:42Z","updated_at":"2025-03-30T11:50:22Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7490","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7490","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7490.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7490.patch","merged_at":null},"body":"This PR contributes a minor refactor, in a small function in `src\/datasets\/formatting\/formatting.py`. No change in logic. \r\n\r\nIn the original code, there are separate if-conditionals for `isinstance(key, range)` and `isinstance(key, Iterable)`, with essentially the same logic. \r\n\r\nThis PR combines these two using a single if statement.\r\n\r\n**Considerations**\r\n\r\n1. Although range in python is guaranteed to have integers, internally calling `int()` on an object that is already an int is negligible. (In python it returns the original object. It doesn't create a new integer object or perform any actual conversion)\r\n\r\n2. Technically a range is already an Iterable, and we could just do `isinstance(key, Iterable)` but I explicitly did `isinstance(key, (range, Iterable))` just to be super obvious and consistent that both cases are handled because I see `slice, range, Iterable` everywhere in this `formatting.py`\r\n\r\n3. This PR removes the `if len(key)>0` conditional. I think it is cleaner to have it this way for three reasons.\r\n- There was originally no else statement and the code would have failed silently anyway. \r\n- The if len(key)>0 should be caught much earlier, rather than in `formatting.py`. \r\n- There are actually multiple cases where this would fail, if len(key)>0, if key is non numeric or float, or if key is a list of lists. It's clunky to state all this and the error be thrown during max or indexing. \r\n\r\n\r\n**Previous PR and Issues Checks**\r\n\r\n1. No known PR or Issues (both closed or open) in hf datasets repository \r\n\r\n**Tests**\r\n\r\n1. Tested using Dataset (load_dataset(\"wikitext\", \"wikitext-103-raw-v1\")), Pytorch DataLoader, with a Pytorch BatchSampler (list of indexes returned instead of single index). \r\n","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7490\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7490\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7489","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7489\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7489\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7489\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7489","id":2958204763,"node_id":"PR_kwDODunzps6QqSRD","number":7489,"title":"fix: loading of datasets from Disk(#7373)","user":{"login":"sam-hey","id":40773225,"node_id":"MDQ6VXNlcjQwNzczMjI1","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/40773225?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/sam-hey","html_url":"https:\/\/github.com\/sam-hey","followers_url":"https:\/\/api.github.com\/users\/sam-hey\/followers","following_url":"https:\/\/api.github.com\/users\/sam-hey\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/sam-hey\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/sam-hey\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/sam-hey\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/sam-hey\/orgs","repos_url":"https:\/\/api.github.com\/users\/sam-hey\/repos","events_url":"https:\/\/api.github.com\/users\/sam-hey\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/sam-hey\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2025-03-29T16:22:58Z","updated_at":"2025-04-24T16:36:36Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7489","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7489","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7489.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7489.patch","merged_at":null},"body":"Fixes dataset loading from disk by ensuring that memory maps and streams are properly closed. \r\n\r\n\r\nFor more details, see https:\/\/github.com\/huggingface\/datasets\/issues\/7373.","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7489\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7489\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7488","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7488\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7488\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7488\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7488","id":2956559358,"node_id":"PR_kwDODunzps6QlLmn","number":7488,"title":"Support underscore int read instruction","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-03-28T16:01:15Z","updated_at":"2025-03-28T16:20:44Z","closed_at":"2025-03-28T16:20:43Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7488","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7488","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7488.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7488.patch","merged_at":"2025-03-28T16:20:43Z"},"body":"close https:\/\/github.com\/huggingface\/datasets\/issues\/7481","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7488\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7488\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7487","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7487\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7487\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7487\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7487","id":2956533448,"node_id":"PR_kwDODunzps6QlF8N","number":7487,"title":"Write pdf in map","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-03-28T15:49:25Z","updated_at":"2025-03-28T17:09:53Z","closed_at":"2025-03-28T17:09:51Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7487","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7487","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7487.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7487.patch","merged_at":"2025-03-28T17:09:51Z"},"body":"Fix this error when mapping a PDF dataset\r\n\r\n```\r\npyarrow.lib.ArrowInvalid: Could not convert with type PDF: did not recognize Python value type when inferring an Arrow data type\r\n```\r\n\r\nand also let map() outputs be lists of images or pdfs","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7487\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7487\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7486","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7486\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7486\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7486\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7486","id":2954042179,"node_id":"I_kwDODunzps6wExtD","number":7486,"title":"`shared_datadir` fixture is missing","user":{"login":"lahwaacz","id":1289205,"node_id":"MDQ6VXNlcjEyODkyMDU=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/1289205?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lahwaacz","html_url":"https:\/\/github.com\/lahwaacz","followers_url":"https:\/\/api.github.com\/users\/lahwaacz\/followers","following_url":"https:\/\/api.github.com\/users\/lahwaacz\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lahwaacz\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lahwaacz\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lahwaacz\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lahwaacz\/orgs","repos_url":"https:\/\/api.github.com\/users\/lahwaacz\/repos","events_url":"https:\/\/api.github.com\/users\/lahwaacz\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lahwaacz\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-03-27T18:17:12Z","updated_at":"2025-03-27T19:49:11Z","closed_at":"2025-03-27T19:49:10Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nRunning the tests for the latest release fails due to missing `shared_datadir` fixture.\n\n### Steps to reproduce the bug\n\nRunning `pytest` while building a package for Arch Linux leads to these errors:\n\n```\n==================================== ERRORS ====================================\n_________ ERROR at setup of test_pdf_feature_encode_example[1] _________\n[gw44] linux -- Python 3.13.2 \/build\/python-datasets\/src\/datasets-3.5.0\/test-env\/bin\/python\nfile \/build\/python-datasets\/src\/datasets-3.5.0\/tests\/features\/test_pdf.py, line 8\n @require_pdfplumber\n @pytest.mark.parametrize(\n \"build_example\",\n [\n lambda pdf_path: pdf_path,\n lambda pdf_path: open(pdf_path, \"rb\").read(),\n lambda pdf_path: {\"path\": pdf_path},\n lambda pdf_path: {\"path\": pdf_path, \"bytes\": None},\n lambda pdf_path: {\"path\": pdf_path, \"bytes\": open(pdf_path, \"rb\").read()},\n lambda pdf_path: {\"path\": None, \"bytes\": open(pdf_path, \"rb\").read()},\n lambda pdf_path: {\"bytes\": open(pdf_path, \"rb\").read()},\n ],\n )\n def test_pdf_feature_encode_example(shared_datadir, build_example):\nE fixture 'shared_datadir' not found\n> available fixtures: _hf_gated_dataset_repo_txt_data, arrow_file, arrow_path, audio_file, bz2_csv_path, bz2_file, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, ci_hfh_hf_hub_url, ci_hub_config, cleanup_repo, csv2_path, csv_path, data_dir_with_hidden_files, dataset, dataset_dict, disable_implicit_token, disable_tqdm_output, doctest_namespace, geoparquet_path, gz_file, hf_api, hf_gated_dataset_repo_txt_data, hf_private_dataset_repo_txt_data, hf_private_dataset_repo_txt_data_, hf_private_dataset_repo_zipped_img_data, hf_private_dataset_repo_zipped_img_data_, hf_private_dataset_repo_zipped_txt_data, hf_private_dataset_repo_zipped_txt_data_, hf_token, image_file, json_dict_of_lists_path, json_list_of_dicts_path, jsonl2_path, jsonl_312_path, jsonl_gz_path, jsonl_path, jsonl_str_path, lz4_file, mock_fsspec, mockfs, monkeypatch, parquet_path, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, set_ci_hub_access_token, set_sqlalchemy_silence_uber_warning, set_test_cache_config, set_update_download_counts_to_false, seven_zip_file, sqlite_path, tar_file, tar_jsonl_path, tar_nested_jsonl_path, temporary_repo, tensor_file, testrun_uid, text2_path, text_dir, text_dir_with_unsupported_extension, text_file, text_file_content, text_gz_path, text_path, text_path_with_unicode_new_lines, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, tmpfs, worker_id, xml_file, xz_file, zero_time_out_for_remote_code, zip_csv_path, zip_csv_with_dir_path, zip_file, zip_image_path, zip_jsonl_path, zip_jsonl_with_dir_path, zip_nested_jsonl_path, zip_text_path, zip_text_with_dir_path, zip_unsupported_ext_path, zip_uppercase_csv_path, zstd_file\n> use 'pytest --fixtures [testpath]' for help on them.\n\n\/build\/python-datasets\/src\/datasets-3.5.0\/tests\/features\/test_pdf.py:8\n_________ ERROR at setup of test_pdf_feature_encode_example[2] _________\n[gw44] linux -- Python 3.13.2 \/build\/python-datasets\/src\/datasets-3.5.0\/test-env\/bin\/python\nfile \/build\/python-datasets\/src\/datasets-3.5.0\/tests\/features\/test_pdf.py, line 8\n @require_pdfplumber\n @pytest.mark.parametrize(\n \"build_example\",\n [\n lambda pdf_path: pdf_path,\n lambda pdf_path: open(pdf_path, \"rb\").read(),\n lambda pdf_path: {\"path\": pdf_path},\n lambda pdf_path: {\"path\": pdf_path, \"bytes\": None},\n lambda pdf_path: {\"path\": pdf_path, \"bytes\": open(pdf_path, \"rb\").read()},\n lambda pdf_path: {\"path\": None, \"bytes\": open(pdf_path, \"rb\").read()},\n lambda pdf_path: {\"bytes\": open(pdf_path, \"rb\").read()},\n ],\n )\n def test_pdf_feature_encode_example(shared_datadir, build_example):\nE fixture 'shared_datadir' not found\n> available fixtures: _hf_gated_dataset_repo_txt_data, arrow_file, arrow_path, audio_file, bz2_csv_path, bz2_file, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, ci_hfh_hf_hub_url, ci_hub_config, cleanup_repo, csv2_path, csv_path, data_dir_with_hidden_files, dataset, dataset_dict, disable_implicit_token, disable_tqdm_output, doctest_namespace, geoparquet_path, gz_file, hf_api, hf_gated_dataset_repo_txt_data, hf_private_dataset_repo_txt_data, hf_private_dataset_repo_txt_data_, hf_private_dataset_repo_zipped_img_data, hf_private_dataset_repo_zipped_img_data_, hf_private_dataset_repo_zipped_txt_data, hf_private_dataset_repo_zipped_txt_data_, hf_token, image_file, json_dict_of_lists_path, json_list_of_dicts_path, jsonl2_path, jsonl_312_path, jsonl_gz_path, jsonl_path, jsonl_str_path, lz4_file, mock_fsspec, mockfs, monkeypatch, parquet_path, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, set_ci_hub_access_token, set_sqlalchemy_silence_uber_warning, set_test_cache_config, set_update_download_counts_to_false, seven_zip_file, sqlite_path, tar_file, tar_jsonl_path, tar_nested_jsonl_path, temporary_repo, tensor_file, testrun_uid, text2_path, text_dir, text_dir_with_unsupported_extension, text_file, text_file_content, text_gz_path, text_path, text_path_with_unicode_new_lines, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, tmpfs, worker_id, xml_file, xz_file, zero_time_out_for_remote_code, zip_csv_path, zip_csv_with_dir_path, zip_file, zip_image_path, zip_jsonl_path, zip_jsonl_with_dir_path, zip_nested_jsonl_path, zip_text_path, zip_text_with_dir_path, zip_unsupported_ext_path, zip_uppercase_csv_path, zstd_file\n> use 'pytest --fixtures [testpath]' for help on them.\n\n\/build\/python-datasets\/src\/datasets-3.5.0\/tests\/features\/test_pdf.py:8\n_________ ERROR at setup of test_pdf_feature_encode_example[3] _________\n[gw44] linux -- Python 3.13.2 \/build\/python-datasets\/src\/datasets-3.5.0\/test-env\/bin\/python\nfile \/build\/python-datasets\/src\/datasets-3.5.0\/tests\/features\/test_pdf.py, line 8\n @require_pdfplumber\n @pytest.mark.parametrize(\n \"build_example\",\n [\n lambda pdf_path: pdf_path,\n lambda pdf_path: open(pdf_path, \"rb\").read(),\n lambda pdf_path: {\"path\": pdf_path},\n lambda pdf_path: {\"path\": pdf_path, \"bytes\": None},\n lambda pdf_path: {\"path\": pdf_path, \"bytes\": open(pdf_path, \"rb\").read()},\n lambda pdf_path: {\"path\": None, \"bytes\": open(pdf_path, \"rb\").read()},\n lambda pdf_path: {\"bytes\": open(pdf_path, \"rb\").read()},\n ],\n )\n def test_pdf_feature_encode_example(shared_datadir, build_example):\nE fixture 'shared_datadir' not found\n> available fixtures: _hf_gated_dataset_repo_txt_data, arrow_file, arrow_path, audio_file, bz2_csv_path, bz2_file, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, ci_hfh_hf_hub_url, ci_hub_config, cleanup_repo, csv2_path, csv_path, data_dir_with_hidden_files, dataset, dataset_dict, disable_implicit_token, disable_tqdm_output, doctest_namespace, geoparquet_path, gz_file, hf_api, hf_gated_dataset_repo_txt_data, hf_private_dataset_repo_txt_data, hf_private_dataset_repo_txt_data_, hf_private_dataset_repo_zipped_img_data, hf_private_dataset_repo_zipped_img_data_, hf_private_dataset_repo_zipped_txt_data, hf_private_dataset_repo_zipped_txt_data_, hf_token, image_file, json_dict_of_lists_path, json_list_of_dicts_path, jsonl2_path, jsonl_312_path, jsonl_gz_path, jsonl_path, jsonl_str_path, lz4_file, mock_fsspec, mockfs, monkeypatch, parquet_path, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, set_ci_hub_access_token, set_sqlalchemy_silence_uber_warning, set_test_cache_config, set_update_download_counts_to_false, seven_zip_file, sqlite_path, tar_file, tar_jsonl_path, tar_nested_jsonl_path, temporary_repo, tensor_file, testrun_uid, text2_path, text_dir, text_dir_with_unsupported_extension, text_file, text_file_content, text_gz_path, text_path, text_path_with_unicode_new_lines, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, tmpfs, worker_id, xml_file, xz_file, zero_time_out_for_remote_code, zip_csv_path, zip_csv_with_dir_path, zip_file, zip_image_path, zip_jsonl_path, zip_jsonl_with_dir_path, zip_nested_jsonl_path, zip_text_path, zip_text_with_dir_path, zip_unsupported_ext_path, zip_uppercase_csv_path, zstd_file\n> use 'pytest --fixtures [testpath]' for help on them.\n\n\/build\/python-datasets\/src\/datasets-3.5.0\/tests\/features\/test_pdf.py:8\n_________ ERROR at setup of test_pdf_feature_encode_example[4] _________\n[gw44] linux -- Python 3.13.2 \/build\/python-datasets\/src\/datasets-3.5.0\/test-env\/bin\/python\nfile \/build\/python-datasets\/src\/datasets-3.5.0\/tests\/features\/test_pdf.py, line 8\n @require_pdfplumber\n @pytest.mark.parametrize(\n \"build_example\",\n [\n lambda pdf_path: pdf_path,\n lambda pdf_path: open(pdf_path, \"rb\").read(),\n lambda pdf_path: {\"path\": pdf_path},\n lambda pdf_path: {\"path\": pdf_path, \"bytes\": None},\n lambda pdf_path: {\"path\": pdf_path, \"bytes\": open(pdf_path, \"rb\").read()},\n lambda pdf_path: {\"path\": None, \"bytes\": open(pdf_path, \"rb\").read()},\n lambda pdf_path: {\"bytes\": open(pdf_path, \"rb\").read()},\n ],\n )\n def test_pdf_feature_encode_example(shared_datadir, build_example):\nE fixture 'shared_datadir' not found\n> available fixtures: _hf_gated_dataset_repo_txt_data, arrow_file, arrow_path, audio_file, bz2_csv_path, bz2_file, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, ci_hfh_hf_hub_url, ci_hub_config, cleanup_repo, csv2_path, csv_path, data_dir_with_hidden_files, dataset, dataset_dict, disable_implicit_token, disable_tqdm_output, doctest_namespace, geoparquet_path, gz_file, hf_api, hf_gated_dataset_repo_txt_data, hf_private_dataset_repo_txt_data, hf_private_dataset_repo_txt_data_, hf_private_dataset_repo_zipped_img_data, hf_private_dataset_repo_zipped_img_data_, hf_private_dataset_repo_zipped_txt_data, hf_private_dataset_repo_zipped_txt_data_, hf_token, image_file, json_dict_of_lists_path, json_list_of_dicts_path, jsonl2_path, jsonl_312_path, jsonl_gz_path, jsonl_path, jsonl_str_path, lz4_file, mock_fsspec, mockfs, monkeypatch, parquet_path, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, set_ci_hub_access_token, set_sqlalchemy_silence_uber_warning, set_test_cache_config, set_update_download_counts_to_false, seven_zip_file, sqlite_path, tar_file, tar_jsonl_path, tar_nested_jsonl_path, temporary_repo, tensor_file, testrun_uid, text2_path, text_dir, text_dir_with_unsupported_extension, text_file, text_file_content, text_gz_path, text_path, text_path_with_unicode_new_lines, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, tmpfs, worker_id, xml_file, xz_file, zero_time_out_for_remote_code, zip_csv_path, zip_csv_with_dir_path, zip_file, zip_image_path, zip_jsonl_path, zip_jsonl_with_dir_path, zip_nested_jsonl_path, zip_text_path, zip_text_with_dir_path, zip_unsupported_ext_path, zip_uppercase_csv_path, zstd_file\n> use 'pytest --fixtures [testpath]' for help on them.\n\n\/build\/python-datasets\/src\/datasets-3.5.0\/tests\/features\/test_pdf.py:8\n_________ ERROR at setup of test_pdf_feature_encode_example[5] _________\n[gw44] linux -- Python 3.13.2 \/build\/python-datasets\/src\/datasets-3.5.0\/test-env\/bin\/python\nfile \/build\/python-datasets\/src\/datasets-3.5.0\/tests\/features\/test_pdf.py, line 8\n @require_pdfplumber\n @pytest.mark.parametrize(\n \"build_example\",\n [\n lambda pdf_path: pdf_path,\n lambda pdf_path: open(pdf_path, \"rb\").read(),\n lambda pdf_path: {\"path\": pdf_path},\n lambda pdf_path: {\"path\": pdf_path, \"bytes\": None},\n lambda pdf_path: {\"path\": pdf_path, \"bytes\": open(pdf_path, \"rb\").read()},\n lambda pdf_path: {\"path\": None, \"bytes\": open(pdf_path, \"rb\").read()},\n lambda pdf_path: {\"bytes\": open(pdf_path, \"rb\").read()},\n ],\n )\n def test_pdf_feature_encode_example(shared_datadir, build_example):\nE fixture 'shared_datadir' not found\n> available fixtures: _hf_gated_dataset_repo_txt_data, arrow_file, arrow_path, audio_file, bz2_csv_path, bz2_file, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, ci_hfh_hf_hub_url, ci_hub_config, cleanup_repo, csv2_path, csv_path, data_dir_with_hidden_files, dataset, dataset_dict, disable_implicit_token, disable_tqdm_output, doctest_namespace, geoparquet_path, gz_file, hf_api, hf_gated_dataset_repo_txt_data, hf_private_dataset_repo_txt_data, hf_private_dataset_repo_txt_data_, hf_private_dataset_repo_zipped_img_data, hf_private_dataset_repo_zipped_img_data_, hf_private_dataset_repo_zipped_txt_data, hf_private_dataset_repo_zipped_txt_data_, hf_token, image_file, json_dict_of_lists_path, json_list_of_dicts_path, jsonl2_path, jsonl_312_path, jsonl_gz_path, jsonl_path, jsonl_str_path, lz4_file, mock_fsspec, mockfs, monkeypatch, parquet_path, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, set_ci_hub_access_token, set_sqlalchemy_silence_uber_warning, set_test_cache_config, set_update_download_counts_to_false, seven_zip_file, sqlite_path, tar_file, tar_jsonl_path, tar_nested_jsonl_path, temporary_repo, tensor_file, testrun_uid, text2_path, text_dir, text_dir_with_unsupported_extension, text_file, text_file_content, text_gz_path, text_path, text_path_with_unicode_new_lines, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, tmpfs, worker_id, xml_file, xz_file, zero_time_out_for_remote_code, zip_csv_path, zip_csv_with_dir_path, zip_file, zip_image_path, zip_jsonl_path, zip_jsonl_with_dir_path, zip_nested_jsonl_path, zip_text_path, zip_text_with_dir_path, zip_unsupported_ext_path, zip_uppercase_csv_path, zstd_file\n> use 'pytest --fixtures [testpath]' for help on them.\n\n\/build\/python-datasets\/src\/datasets-3.5.0\/tests\/features\/test_pdf.py:8\n_________ ERROR at setup of test_pdf_feature_encode_example[6] _________\n[gw44] linux -- Python 3.13.2 \/build\/python-datasets\/src\/datasets-3.5.0\/test-env\/bin\/python\nfile \/build\/python-datasets\/src\/datasets-3.5.0\/tests\/features\/test_pdf.py, line 8\n @require_pdfplumber\n @pytest.mark.parametrize(\n \"build_example\",\n [\n lambda pdf_path: pdf_path,\n lambda pdf_path: open(pdf_path, \"rb\").read(),\n lambda pdf_path: {\"path\": pdf_path},\n lambda pdf_path: {\"path\": pdf_path, \"bytes\": None},\n lambda pdf_path: {\"path\": pdf_path, \"bytes\": open(pdf_path, \"rb\").read()},\n lambda pdf_path: {\"path\": None, \"bytes\": open(pdf_path, \"rb\").read()},\n lambda pdf_path: {\"bytes\": open(pdf_path, \"rb\").read()},\n ],\n )\n def test_pdf_feature_encode_example(shared_datadir, build_example):\nE fixture 'shared_datadir' not found\n> available fixtures: _hf_gated_dataset_repo_txt_data, arrow_file, arrow_path, audio_file, bz2_csv_path, bz2_file, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, ci_hfh_hf_hub_url, ci_hub_config, cleanup_repo, csv2_path, csv_path, data_dir_with_hidden_files, dataset, dataset_dict, disable_implicit_token, disable_tqdm_output, doctest_namespace, geoparquet_path, gz_file, hf_api, hf_gated_dataset_repo_txt_data, hf_private_dataset_repo_txt_data, hf_private_dataset_repo_txt_data_, hf_private_dataset_repo_zipped_img_data, hf_private_dataset_repo_zipped_img_data_, hf_private_dataset_repo_zipped_txt_data, hf_private_dataset_repo_zipped_txt_data_, hf_token, image_file, json_dict_of_lists_path, json_list_of_dicts_path, jsonl2_path, jsonl_312_path, jsonl_gz_path, jsonl_path, jsonl_str_path, lz4_file, mock_fsspec, mockfs, monkeypatch, parquet_path, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, set_ci_hub_access_token, set_sqlalchemy_silence_uber_warning, set_test_cache_config, set_update_download_counts_to_false, seven_zip_file, sqlite_path, tar_file, tar_jsonl_path, tar_nested_jsonl_path, temporary_repo, tensor_file, testrun_uid, text2_path, text_dir, text_dir_with_unsupported_extension, text_file, text_file_content, text_gz_path, text_path, text_path_with_unicode_new_lines, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, tmpfs, worker_id, xml_file, xz_file, zero_time_out_for_remote_code, zip_csv_path, zip_csv_with_dir_path, zip_file, zip_image_path, zip_jsonl_path, zip_jsonl_with_dir_path, zip_nested_jsonl_path, zip_text_path, zip_text_with_dir_path, zip_unsupported_ext_path, zip_uppercase_csv_path, zstd_file\n> use 'pytest --fixtures [testpath]' for help on them.\n\n\/build\/python-datasets\/src\/datasets-3.5.0\/tests\/features\/test_pdf.py:8\n_______________ ERROR at setup of test_dataset_with_pdf_feature ________________\n[gw44] linux -- Python 3.13.2 \/build\/python-datasets\/src\/datasets-3.5.0\/test-env\/bin\/python\nfile \/build\/python-datasets\/src\/datasets-3.5.0\/tests\/features\/test_pdf.py, line 34\n @require_pdfplumber\n def test_dataset_with_pdf_feature(shared_datadir):\nE fixture 'shared_datadir' not found\n> available fixtures: _hf_gated_dataset_repo_txt_data, arrow_file, arrow_path, audio_file, bz2_csv_path, bz2_file, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, ci_hfh_hf_hub_url, ci_hub_config, cleanup_repo, csv2_path, csv_path, data_dir_with_hidden_files, dataset, dataset_dict, disable_implicit_token, disable_tqdm_output, doctest_namespace, geoparquet_path, gz_file, hf_api, hf_gated_dataset_repo_txt_data, hf_private_dataset_repo_txt_data, hf_private_dataset_repo_txt_data_, hf_private_dataset_repo_zipped_img_data, hf_private_dataset_repo_zipped_img_data_, hf_private_dataset_repo_zipped_txt_data, hf_private_dataset_repo_zipped_txt_data_, hf_token, image_file, json_dict_of_lists_path, json_list_of_dicts_path, jsonl2_path, jsonl_312_path, jsonl_gz_path, jsonl_path, jsonl_str_path, lz4_file, mock_fsspec, mockfs, monkeypatch, parquet_path, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, set_ci_hub_access_token, set_sqlalchemy_silence_uber_warning, set_test_cache_config, set_update_download_counts_to_false, seven_zip_file, sqlite_path, tar_file, tar_jsonl_path, tar_nested_jsonl_path, temporary_repo, tensor_file, testrun_uid, text2_path, text_dir, text_dir_with_unsupported_extension, text_file, text_file_content, text_gz_path, text_path, text_path_with_unicode_new_lines, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, tmpfs, worker_id, xml_file, xz_file, zero_time_out_for_remote_code, zip_csv_path, zip_csv_with_dir_path, zip_file, zip_image_path, zip_jsonl_path, zip_jsonl_with_dir_path, zip_nested_jsonl_path, zip_text_path, zip_text_with_dir_path, zip_unsupported_ext_path, zip_uppercase_csv_path, zstd_file\n> use 'pytest --fixtures [testpath]' for help on them.\n\n\/build\/python-datasets\/src\/datasets-3.5.0\/tests\/features\/test_pdf.py:34\n_________ ERROR at setup of test_pdf_feature_encode_example[0] _________\n[gw46] linux -- Python 3.13.2 \/build\/python-datasets\/src\/datasets-3.5.0\/test-env\/bin\/python\nfile \/build\/python-datasets\/src\/datasets-3.5.0\/tests\/features\/test_pdf.py, line 8\n @require_pdfplumber\n @pytest.mark.parametrize(\n \"build_example\",\n [\n lambda pdf_path: pdf_path,\n lambda pdf_path: open(pdf_path, \"rb\").read(),\n lambda pdf_path: {\"path\": pdf_path},\n lambda pdf_path: {\"path\": pdf_path, \"bytes\": None},\n lambda pdf_path: {\"path\": pdf_path, \"bytes\": open(pdf_path, \"rb\").read()},\n lambda pdf_path: {\"path\": None, \"bytes\": open(pdf_path, \"rb\").read()},\n lambda pdf_path: {\"bytes\": open(pdf_path, \"rb\").read()},\n ],\n )\n def test_pdf_feature_encode_example(shared_datadir, build_example):\nE fixture 'shared_datadir' not found\n> available fixtures: _hf_gated_dataset_repo_txt_data, arrow_file, arrow_path, audio_file, bz2_csv_path, bz2_file, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, ci_hfh_hf_hub_url, ci_hub_config, cleanup_repo, csv2_path, csv_path, data_dir_with_hidden_files, dataset, dataset_dict, disable_implicit_token, disable_tqdm_output, doctest_namespace, geoparquet_path, gz_file, hf_api, hf_gated_dataset_repo_txt_data, hf_private_dataset_repo_txt_data, hf_private_dataset_repo_txt_data_, hf_private_dataset_repo_zipped_img_data, hf_private_dataset_repo_zipped_img_data_, hf_private_dataset_repo_zipped_txt_data, hf_private_dataset_repo_zipped_txt_data_, hf_token, image_file, json_dict_of_lists_path, json_list_of_dicts_path, jsonl2_path, jsonl_312_path, jsonl_gz_path, jsonl_path, jsonl_str_path, lz4_file, mock_fsspec, mockfs, monkeypatch, parquet_path, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, set_ci_hub_access_token, set_sqlalchemy_silence_uber_warning, set_test_cache_config, set_update_download_counts_to_false, seven_zip_file, sqlite_path, tar_file, tar_jsonl_path, tar_nested_jsonl_path, temporary_repo, tensor_file, testrun_uid, text2_path, text_dir, text_dir_with_unsupported_extension, text_file, text_file_content, text_gz_path, text_path, text_path_with_unicode_new_lines, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, tmpfs, worker_id, xml_file, xz_file, zero_time_out_for_remote_code, zip_csv_path, zip_csv_with_dir_path, zip_file, zip_image_path, zip_jsonl_path, zip_jsonl_with_dir_path, zip_nested_jsonl_path, zip_text_path, zip_text_with_dir_path, zip_unsupported_ext_path, zip_uppercase_csv_path, zstd_file\n> use 'pytest --fixtures [testpath]' for help on them.\n\n\/build\/python-datasets\/src\/datasets-3.5.0\/tests\/features\/test_pdf.py:8\n```\n\n### Expected behavior\n\nAll fixtures used in tests should be available.\n\n### Environment info\n\nArch Linux build system, building the [python-datasets](https:\/\/gitlab.archlinux.org\/archlinux\/packaging\/packages\/python-datasets) package.\n\nThere are actually [many deselected tests](https:\/\/gitlab.archlinux.org\/archlinux\/packaging\/packages\/python-datasets\/-\/blob\/6f97957f0c326cc7b3da6b7f12326305bcaef374\/PKGBUILD#L66-148) which were failing on previous releases, but these errors popped up in 3.5.0.","closed_by":{"login":"lahwaacz","id":1289205,"node_id":"MDQ6VXNlcjEyODkyMDU=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/1289205?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lahwaacz","html_url":"https:\/\/github.com\/lahwaacz","followers_url":"https:\/\/api.github.com\/users\/lahwaacz\/followers","following_url":"https:\/\/api.github.com\/users\/lahwaacz\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lahwaacz\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lahwaacz\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lahwaacz\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lahwaacz\/orgs","repos_url":"https:\/\/api.github.com\/users\/lahwaacz\/repos","events_url":"https:\/\/api.github.com\/users\/lahwaacz\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lahwaacz\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7486\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7486\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7485","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7485\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7485\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7485\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7485","id":2953696519,"node_id":"PR_kwDODunzps6QbjFJ","number":7485,"title":"set dev version","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-03-27T16:39:34Z","updated_at":"2025-03-27T16:41:59Z","closed_at":"2025-03-27T16:39:42Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7485","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7485","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7485.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7485.patch","merged_at":"2025-03-27T16:39:42Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7485\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7485\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7484","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7484\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7484\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7484\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7484","id":2953677168,"node_id":"PR_kwDODunzps6Qbevn","number":7484,"title":"release: 3.5.0","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-03-27T16:33:27Z","updated_at":"2025-03-27T16:35:44Z","closed_at":"2025-03-27T16:34:22Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7484","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7484","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7484.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7484.patch","merged_at":"2025-03-27T16:34:22Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7484\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7484\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7483","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7483\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7483\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7483\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7483","id":2951856468,"node_id":"PR_kwDODunzps6QVInB","number":7483,"title":"Support skip_trying_type ","user":{"login":"yoshitomo-matsubara","id":11156001,"node_id":"MDQ6VXNlcjExMTU2MDAx","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/11156001?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/yoshitomo-matsubara","html_url":"https:\/\/github.com\/yoshitomo-matsubara","followers_url":"https:\/\/api.github.com\/users\/yoshitomo-matsubara\/followers","following_url":"https:\/\/api.github.com\/users\/yoshitomo-matsubara\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/yoshitomo-matsubara\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/yoshitomo-matsubara\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/yoshitomo-matsubara\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/yoshitomo-matsubara\/orgs","repos_url":"https:\/\/api.github.com\/users\/yoshitomo-matsubara\/repos","events_url":"https:\/\/api.github.com\/users\/yoshitomo-matsubara\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/yoshitomo-matsubara\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2025-03-27T07:07:20Z","updated_at":"2025-04-29T04:14:57Z","closed_at":"2025-04-09T09:53:10Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7483","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7483","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7483.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7483.patch","merged_at":"2025-04-09T09:53:10Z"},"body":"This PR addresses Issue #7472\r\n\r\ncc: @lhoestq ","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7483\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7483\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7482","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7482\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7482\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7482\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7482","id":2950890368,"node_id":"PR_kwDODunzps6QRyY6","number":7482,"title":"Implement capability to restore non-nullability in Features","user":{"login":"BramVanroy","id":2779410,"node_id":"MDQ6VXNlcjI3Nzk0MTA=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/2779410?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/BramVanroy","html_url":"https:\/\/github.com\/BramVanroy","followers_url":"https:\/\/api.github.com\/users\/BramVanroy\/followers","following_url":"https:\/\/api.github.com\/users\/BramVanroy\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/BramVanroy\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/BramVanroy\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/BramVanroy\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/BramVanroy\/orgs","repos_url":"https:\/\/api.github.com\/users\/BramVanroy\/repos","events_url":"https:\/\/api.github.com\/users\/BramVanroy\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/BramVanroy\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2025-03-26T22:16:09Z","updated_at":"2025-05-15T15:00:59Z","closed_at":"2025-05-15T15:00:59Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7482","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7482","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7482.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7482.patch","merged_at":null},"body":"This PR attempts to keep track of non_nullable pyarrow fields when converting a `pa.Schema` to `Features`. At the same time, when outputting the `arrow_schema`, the original non-nullable fields are restored. This allows for more consistent behavior and avoids breaking behavior as illustrated in #7479.\r\n\r\nI am by no means a pyarrow expert so some logic in `find_non_nullable_fields` may not perfect. Not sure if more logic (type checks) are needed for deep-checking a given schema. Maybe there are other pyarrow structures that need to be covered?\r\n\r\nTests are added, but again, these may not have sufficient coverage in terms of pyarrow structure types.\r\n\r\ncloses #7479 ","closed_by":{"login":"BramVanroy","id":2779410,"node_id":"MDQ6VXNlcjI3Nzk0MTA=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/2779410?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/BramVanroy","html_url":"https:\/\/github.com\/BramVanroy","followers_url":"https:\/\/api.github.com\/users\/BramVanroy\/followers","following_url":"https:\/\/api.github.com\/users\/BramVanroy\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/BramVanroy\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/BramVanroy\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/BramVanroy\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/BramVanroy\/orgs","repos_url":"https:\/\/api.github.com\/users\/BramVanroy\/repos","events_url":"https:\/\/api.github.com\/users\/BramVanroy\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/BramVanroy\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7482\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7482\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7481","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7481\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7481\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7481\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7481","id":2950692971,"node_id":"I_kwDODunzps6v4ABr","number":7481,"title":"deal with python `10_000` legal number in slice syntax","user":{"login":"sfc-gh-sbekman","id":196988264,"node_id":"U_kgDOC73NaA","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/196988264?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/sfc-gh-sbekman","html_url":"https:\/\/github.com\/sfc-gh-sbekman","followers_url":"https:\/\/api.github.com\/users\/sfc-gh-sbekman\/followers","following_url":"https:\/\/api.github.com\/users\/sfc-gh-sbekman\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/sfc-gh-sbekman\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/sfc-gh-sbekman\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/sfc-gh-sbekman\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/sfc-gh-sbekman\/orgs","repos_url":"https:\/\/api.github.com\/users\/sfc-gh-sbekman\/repos","events_url":"https:\/\/api.github.com\/users\/sfc-gh-sbekman\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/sfc-gh-sbekman\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-03-26T20:10:54Z","updated_at":"2025-03-28T16:20:44Z","closed_at":"2025-03-28T16:20:44Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\n```\nIn [6]: ds = datasets.load_dataset(\"HuggingFaceH4\/ultrachat_200k\", split=\"train_sft[:1000]\")\n\nIn [7]: ds = datasets.load_dataset(\"HuggingFaceH4\/ultrachat_200k\", split=\"train_sft[:1_000]\")\n[dozens of frames skipped]\nFile \/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/arrow_reader.py:444, in _str_to_read_instruction(spec)\n 442 res = _SUB_SPEC_RE.match(spec)\n 443 if not res:\n--> 444 raise ValueError(f\"Unrecognized instruction format: {spec}\")\nValueError: Unrecognized instruction format: train_sft[:1_000]\n```\n\nIt took me a while to understand what the problem was. But apparently `pyarrow` doesn't allow python numbers that may include `_` as in `1_000`. The `_` aids readability since `10_000_000` vs `10000000` is obviously easier to grasp of what the actual number is.\n\nFeature request:\n\nideally `datasets` being a python module will do the right thing and convert python numbers into whatever pyarrow supports - in this case stripping `_`s.\n\nSecond best it'd err and tell the user that using numbers with `_` in split slices is not acceptible, so that the user won't have to deal with a huge pyarrow assert they know nothing about.\n\nThank you!","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7481\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7481\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7480","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7480\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7480\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7480\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7480","id":2950315214,"node_id":"I_kwDODunzps6v2jzO","number":7480,"title":"HF_DATASETS_CACHE ignored?","user":{"login":"stephenroller","id":31896,"node_id":"MDQ6VXNlcjMxODk2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/31896?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/stephenroller","html_url":"https:\/\/github.com\/stephenroller","followers_url":"https:\/\/api.github.com\/users\/stephenroller\/followers","following_url":"https:\/\/api.github.com\/users\/stephenroller\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/stephenroller\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/stephenroller\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/stephenroller\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/stephenroller\/orgs","repos_url":"https:\/\/api.github.com\/users\/stephenroller\/repos","events_url":"https:\/\/api.github.com\/users\/stephenroller\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/stephenroller\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2025-03-26T17:19:34Z","updated_at":"2025-04-28T10:16:16Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI'm struggling to get things to respect HF_DATASETS_CACHE.\n\nRationale: I'm on a system that uses NFS for homedir, so downloading to NFS is expensive, slow, and wastes valuable quota compared to local disk. Instead, it seems to rely mostly on HF_HUB_CACHE.\n\nCurrent version: 3.2.1dev. In the process of testing 3.4.0\n\n### Steps to reproduce the bug\n\n[Currently writing using datasets 3.2.1dev. Will follow up with 3.4.0 results]\n\ndump.py:\n```python\nfrom datasets import load_dataset\ndataset = load_dataset(\"HuggingFaceFW\/fineweb\", name=\"sample-100BT\", split=\"train\")\n```\n\nRepro steps\n```bash\n# ensure no cache\n$ mv ~\/.cache\/huggingface ~\/.cache\/huggingface.bak\n\n$ export HF_DATASETS_CACHE=\/tmp\/roller\/datasets\n$ rm -rf ${HF_DATASETS_CACHE}\n$ env | grep HF | grep -v TOKEN\nHF_DATASETS_CACHE=\/tmp\/roller\/datasets\n\n$ python dump.py\n# (omitted for brevity)\n\n# (while downloading) \n$ du -hcs ~\/.cache\/huggingface\/hub\n18G hub\n18G total\n\n# (after downloading)\n$ du -hcs ~\/.cache\/huggingface\/hub\n```\n\nIt's a shame because datasets supports s3 (which I could really use right now) but hub does not.\n\n### Expected behavior\n\n* ~\/.cache\/huggingface\/hub stays empty\n* \/tmp\/roller\/datasets becomes full of stuff\n\n### Environment info\n\n[Currently writing using datasets 3.2.1dev. Will follow up with 3.4.0 results]","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7480\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7480\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7479","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7479\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7479\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7479\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7479","id":2950235396,"node_id":"I_kwDODunzps6v2QUE","number":7479,"title":"Features.from_arrow_schema is destructive","user":{"login":"BramVanroy","id":2779410,"node_id":"MDQ6VXNlcjI3Nzk0MTA=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/2779410?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/BramVanroy","html_url":"https:\/\/github.com\/BramVanroy","followers_url":"https:\/\/api.github.com\/users\/BramVanroy\/followers","following_url":"https:\/\/api.github.com\/users\/BramVanroy\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/BramVanroy\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/BramVanroy\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/BramVanroy\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/BramVanroy\/orgs","repos_url":"https:\/\/api.github.com\/users\/BramVanroy\/repos","events_url":"https:\/\/api.github.com\/users\/BramVanroy\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/BramVanroy\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-03-26T16:46:43Z","updated_at":"2025-03-26T16:46:58Z","closed_at":null,"author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI came across this, perhaps niche, bug where `Features` does not\/cannot account for pyarrow's `nullable=False` option in Fields. Interestingly, I found that in regular \"flat\" fields this does not necessarily lead to conflicts, but when a non-nullable field is in a struct, an incompatibility arises.\n\nIt's not easy to explain in words, so the minimal example below should help I hope.\n\nNote that I suggest a solution in the comments in the code, simply allowing `Dataset.to_parquet` to allow for a `schema` argument which, when provided, will override the default ds.features.arrow_schema.\n\n### Steps to reproduce the bug\n\n```python\nimport os\nfrom datasets import Dataset, Features\n\nimport pyarrow as pa\nimport pyarrow.parquet as pq\n\n# HF datasets is destructive when you call Features.from_arrow_schema(schema) on a schema \n# because it will not account for nullable and non-nullable fields in structs (it will always allow nullable)\n# Reloading the same dataset with the original schema will raise an error because the schema is not the same anymore\nnon_nullable_schema = pa.schema(\n [\n pa.field(\"text\", pa.string(), nullable=False),\n pa.field(\"meta\",\n pa.struct(\n [\n pa.field(\"date\", pa.list_(pa.string()), nullable=False),\n ],\n ),\n ),\n\n ]\n)\nprint(\"ORIGINAL SCHEMA\")\nprint(non_nullable_schema)\nprint()\n\nfeats = Features.from_arrow_schema(non_nullable_schema)\n\nprint(\"FEATUR-IZED SCHEMA (nullable-restrictions are gone)\")\nprint(feats.arrow_schema)\nprint()\n\nds = Dataset.from_dict(\n {\n \"text\": [\"a\", \"b\", \"c\"],\n \"meta\": [{\"date\": [\"2021-01-01\"]}, {\"date\": [\"2021-01-02\"]}, {\"date\": [\"2021-01-03\"]}],\n },\n features=feats,\n)\n\nfname = \"tmp.parquet\"\n\n# This is not possible: TypeError: pyarrow.parquet.core.ParquetWriter() got multiple values for keyword argument 'schema'\n# Though I believe this would be the easiest fix: allow schema to be passed to to_parquet and overwrite the schema in the dataset\n# ds.to_parquet(fname, schema=non_nullable_schema)\n\nds.to_parquet(fname)\n\ntry:\n _ = pq.read_table(fname, schema=non_nullable_schema)\nfinally:\n os.unlink(fname)\n```\n\n\n### Expected behavior\n\n- Non-destructive behavior when converting an arrow schema to Features; or\n- the ability to override the default arrow schema with a custom one\n\n### Environment info\n\n- `datasets` version: 3.2.0\n- Platform: Linux-5.14.0-427.20.1.el9_4.x86_64-x86_64-with-glibc2.34\n- Python version: 3.11.10\n- `huggingface_hub` version: 0.27.1\n- PyArrow version: 18.1.0\n- Pandas version: 2.2.3\n- `fsspec` version: 2024.9.0","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7479\/reactions","total_count":1,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7479\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7478","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7478\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7478\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7478\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7478","id":2948993461,"node_id":"PR_kwDODunzps6QLPe3","number":7478,"title":"update fsspec 2025.3.0","user":{"login":"peteski22","id":487783,"node_id":"MDQ6VXNlcjQ4Nzc4Mw==","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/487783?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/peteski22","html_url":"https:\/\/github.com\/peteski22","followers_url":"https:\/\/api.github.com\/users\/peteski22\/followers","following_url":"https:\/\/api.github.com\/users\/peteski22\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/peteski22\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/peteski22\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/peteski22\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/peteski22\/orgs","repos_url":"https:\/\/api.github.com\/users\/peteski22\/repos","events_url":"https:\/\/api.github.com\/users\/peteski22\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/peteski22\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-03-26T09:53:05Z","updated_at":"2025-03-28T19:15:54Z","closed_at":"2025-03-28T15:51:55Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7478","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7478","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7478.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7478.patch","merged_at":"2025-03-28T15:51:54Z"},"body":"It appears there have been two releases of fsspec since this dependency was last updated, it would be great if Datasets could be updated so that it didn't hold back the usage of newer fsspec versions in consuming projects.\r\n\r\nPR based on https:\/\/github.com\/huggingface\/datasets\/pull\/7352","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7478\/reactions","total_count":1,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7478\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7477","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7477\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7477\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7477\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7477","id":2947169460,"node_id":"I_kwDODunzps6vqjy0","number":7477,"title":"What is the canonical way to compress a Dataset?","user":{"login":"eric-czech","id":6130352,"node_id":"MDQ6VXNlcjYxMzAzNTI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/6130352?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/eric-czech","html_url":"https:\/\/github.com\/eric-czech","followers_url":"https:\/\/api.github.com\/users\/eric-czech\/followers","following_url":"https:\/\/api.github.com\/users\/eric-czech\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/eric-czech\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/eric-czech\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/eric-czech\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/eric-czech\/orgs","repos_url":"https:\/\/api.github.com\/users\/eric-czech\/repos","events_url":"https:\/\/api.github.com\/users\/eric-czech\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/eric-czech\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2025-03-25T16:47:51Z","updated_at":"2025-04-03T09:13:11Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"Given that Arrow is the preferred backend for a Dataset, what is a user supposed to do if they want concurrent reads, concurrent writes AND on-disk compression for a larger dataset?\n\nParquet would be the obvious answer except that there is no native support for writing sharded, parquet datasets concurrently [[1](https:\/\/github.com\/huggingface\/datasets\/issues\/7047)].\n\nAm I missing something? \n\nAnd if so, why is this not the standard\/default way that `Dataset`'s work as they do in Xarray, Ray Data, Composer, etc.?","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7477\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7477\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7476","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7476\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7476\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7476\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7476","id":2946997924,"node_id":"PR_kwDODunzps6QEbmO","number":7476,"title":"Priotitize json","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-03-25T15:44:31Z","updated_at":"2025-03-25T15:47:00Z","closed_at":"2025-03-25T15:45:00Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7476","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7476","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7476.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7476.patch","merged_at":"2025-03-25T15:45:00Z"},"body":"`datasets` should load the JSON data in https:\/\/huggingface.co\/datasets\/facebook\/natural_reasoning, not the PDF","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7476\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7476\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7475","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7475\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7475\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7475\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7475","id":2946640570,"node_id":"I_kwDODunzps6voiq6","number":7475,"title":"IterableDataset's state_dict shard_example_idx is always equal to the number of samples in a shard","user":{"login":"bruno-hays","id":48770768,"node_id":"MDQ6VXNlcjQ4NzcwNzY4","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/48770768?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/bruno-hays","html_url":"https:\/\/github.com\/bruno-hays","followers_url":"https:\/\/api.github.com\/users\/bruno-hays\/followers","following_url":"https:\/\/api.github.com\/users\/bruno-hays\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/bruno-hays\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/bruno-hays\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/bruno-hays\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/bruno-hays\/orgs","repos_url":"https:\/\/api.github.com\/users\/bruno-hays\/repos","events_url":"https:\/\/api.github.com\/users\/bruno-hays\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/bruno-hays\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"Harry-Yang0518","id":129883215,"node_id":"U_kgDOB73cTw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/129883215?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Harry-Yang0518","html_url":"https:\/\/github.com\/Harry-Yang0518","followers_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/followers","following_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/orgs","repos_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/repos","events_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"Harry-Yang0518","id":129883215,"node_id":"U_kgDOB73cTw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/129883215?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Harry-Yang0518","html_url":"https:\/\/github.com\/Harry-Yang0518","followers_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/followers","following_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/orgs","repos_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/repos","events_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":8,"created_at":"2025-03-25T13:58:07Z","updated_at":"2025-05-06T14:22:19Z","closed_at":"2025-05-06T14:05:07Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI've noticed a strange behaviour with Iterable state_dict: the value of shard_example_idx is always equal to the amount of samples in a shard.\n\n\n### Steps to reproduce the bug\n\nI am reusing the example from the doc\n```python\nfrom datasets import Dataset\n\nds = Dataset.from_dict({\"a\": range(6)}).to_iterable_dataset(num_shards=1)\nstate_dict = None\n# Iterate through the dataset and print examples\nfor idx, example in enumerate(ds):\n print(example)\n if idx == 2:\n state_dict = ds.state_dict()\n print(\"checkpoint\")\n break\nprint(state_dict)\n```\nReturns:\n```\n{'a': 0}\n{'a': 1}\ncheckpoint\n{'examples_iterable': {'shard_idx': 0, 'shard_example_idx': 6, 'type': 'ArrowExamplesIterable'}, 'epoch': 0}\n```\n\n\n### Expected behavior\n\nshard_example_idx should be 2 instead of 6\nIf we run with num_shards=2, then shard_example_idx is 3 instead of 2 and so on.\n\n### Environment info\n\n- `datasets` version: 3.4.1\n- Platform: macOS-14.6.1-arm64-arm-64bit\n- Python version: 3.12.9\n- `huggingface_hub` version: 0.29.3\n- PyArrow version: 19.0.1\n- Pandas version: 2.2.3\n- `fsspec` version: 2024.12.0","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7475\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7475\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7474","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7474\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7474\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7474\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7474","id":2945066258,"node_id":"PR_kwDODunzps6P91lM","number":7474,"title":"Remove conditions for Python < 3.9","user":{"login":"cyyever","id":17618148,"node_id":"MDQ6VXNlcjE3NjE4MTQ4","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/17618148?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/cyyever","html_url":"https:\/\/github.com\/cyyever","followers_url":"https:\/\/api.github.com\/users\/cyyever\/followers","following_url":"https:\/\/api.github.com\/users\/cyyever\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/cyyever\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/cyyever\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/cyyever\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/cyyever\/orgs","repos_url":"https:\/\/api.github.com\/users\/cyyever\/repos","events_url":"https:\/\/api.github.com\/users\/cyyever\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/cyyever\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2025-03-25T03:08:04Z","updated_at":"2025-04-16T00:11:06Z","closed_at":"2025-04-15T16:07:55Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7474","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7474","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7474.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7474.patch","merged_at":"2025-04-15T16:07:54Z"},"body":"This PR remove conditions for Python < 3.9.","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7474\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7474\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7473","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7473\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7473\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7473\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7473","id":2939034643,"node_id":"I_kwDODunzps6vLhwT","number":7473,"title":"Webdataset data format problem","user":{"login":"edmcman","id":1017189,"node_id":"MDQ6VXNlcjEwMTcxODk=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/1017189?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/edmcman","html_url":"https:\/\/github.com\/edmcman","followers_url":"https:\/\/api.github.com\/users\/edmcman\/followers","following_url":"https:\/\/api.github.com\/users\/edmcman\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/edmcman\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/edmcman\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/edmcman\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/edmcman\/orgs","repos_url":"https:\/\/api.github.com\/users\/edmcman\/repos","events_url":"https:\/\/api.github.com\/users\/edmcman\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/edmcman\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-03-21T17:23:52Z","updated_at":"2025-03-21T19:19:58Z","closed_at":"2025-03-21T19:19:58Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nPlease see https:\/\/huggingface.co\/datasets\/ejschwartz\/idioms\/discussions\/1\n\nError code: FileFormatMismatchBetweenSplitsError\n\nAll three splits, train, test, and validation, use webdataset. But only the train split has more than one file. How can I force the other two splits to also be interpreted as being the webdataset format? (I don't think there is currently a way, but happy to be told that I am wrong.)\n\n### Steps to reproduce the bug\n\n```\nimport datasets\ndatasets.load_dataset(\"ejschwartz\/idioms\")\n\n### Expected behavior\n\nThe dataset loads. Alternatively, there is a YAML syntax for manually specifying the format.\n\n### Environment info\n\n- `datasets` version: 3.2.0\n- Platform: Linux-6.8.0-52-generic-x86_64-with-glibc2.35\n- Python version: 3.10.12\n- `huggingface_hub` version: 0.28.1\n- PyArrow version: 19.0.0\n- Pandas version: 2.2.3\n- `fsspec` version: 2024.9.0","closed_by":{"login":"edmcman","id":1017189,"node_id":"MDQ6VXNlcjEwMTcxODk=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/1017189?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/edmcman","html_url":"https:\/\/github.com\/edmcman","followers_url":"https:\/\/api.github.com\/users\/edmcman\/followers","following_url":"https:\/\/api.github.com\/users\/edmcman\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/edmcman\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/edmcman\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/edmcman\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/edmcman\/orgs","repos_url":"https:\/\/api.github.com\/users\/edmcman\/repos","events_url":"https:\/\/api.github.com\/users\/edmcman\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/edmcman\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7473\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7473\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7472","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7472\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7472\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7472\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7472","id":2937607272,"node_id":"I_kwDODunzps6vGFRo","number":7472,"title":"Label casting during `map` process is canceled after the `map` process","user":{"login":"yoshitomo-matsubara","id":11156001,"node_id":"MDQ6VXNlcjExMTU2MDAx","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/11156001?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/yoshitomo-matsubara","html_url":"https:\/\/github.com\/yoshitomo-matsubara","followers_url":"https:\/\/api.github.com\/users\/yoshitomo-matsubara\/followers","following_url":"https:\/\/api.github.com\/users\/yoshitomo-matsubara\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/yoshitomo-matsubara\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/yoshitomo-matsubara\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/yoshitomo-matsubara\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/yoshitomo-matsubara\/orgs","repos_url":"https:\/\/api.github.com\/users\/yoshitomo-matsubara\/repos","events_url":"https:\/\/api.github.com\/users\/yoshitomo-matsubara\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/yoshitomo-matsubara\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2025-03-21T07:56:22Z","updated_at":"2025-04-10T05:11:15Z","closed_at":"2025-04-10T05:11:14Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nWhen preprocessing a multi-label dataset, I introduced a step to convert int labels to float labels as [BCEWithLogitsLoss](https:\/\/pytorch.org\/docs\/stable\/generated\/torch.nn.BCEWithLogitsLoss.html) expects float labels and forward function of models in transformers package internally use `BCEWithLogitsLoss`\n\nHowever, the casting was canceled after `.map` process and the label values still use int values, which leads to an error\n```\n File \"\/home\/yoshitomo\/anaconda3\/envs\/torchdistill\/lib\/python3.10\/site-packages\/transformers\/models\/bert\/modeling_bert.py\", line 1711, in forward\n loss = loss_fct(logits, labels)\n File \"\/home\/yoshitomo\/anaconda3\/envs\/torchdistill\/lib\/python3.10\/site-packages\/torch\/nn\/modules\/module.py\", line 1736, in _wrapped_call_impl\n return self._call_impl(*args, **kwargs)\n File \"\/home\/yoshitomo\/anaconda3\/envs\/torchdistill\/lib\/python3.10\/site-packages\/torch\/nn\/modules\/module.py\", line 1747, in _call_impl\n return forward_call(*args, **kwargs)\n File \"\/home\/yoshitomo\/anaconda3\/envs\/torchdistill\/lib\/python3.10\/site-packages\/torch\/nn\/modules\/loss.py\", line 819, in forward\n return F.binary_cross_entropy_with_logits(\n File \"\/home\/yoshitomo\/anaconda3\/envs\/torchdistill\/lib\/python3.10\/site-packages\/torch\/nn\/functional.py\", line 3628, in binary_cross_entropy_with_logits\n return torch.binary_cross_entropy_with_logits(\nRuntimeError: result type Float can't be cast to the desired output type Long\n```\n\nThis seems like happening only when the original labels are int values (see examples below)\n\n### Steps to reproduce the bug\n\nIf the original dataset uses a list of int labels, it will cancel the int->float casting\n\n```python\nfrom datasets import Dataset\n\ndata = {\n 'text': ['text1', 'text2', 'text3', 'text4'],\n 'labels': [[0, 1, 2], [3], [3, 4], [3]]\n}\n\ndataset = Dataset.from_dict(data)\n\nlabel_set = set([label for labels in data['labels'] for label in labels])\nlabel2idx = {label: idx for idx, label in enumerate(sorted(label_set))}\n\n\ndef multi_labels_to_ids(labels):\n ids = [0.0] * len(label2idx)\n for label in labels:\n ids[label2idx[label]] = 1.0\n return ids\n\ndef preprocess(examples):\n result = {'sentence': [[0, 3, 4] for _ in range(len(examples['labels']))]}\n print('\"labels\" are int', examples['labels'])\n result['labels'] = [multi_labels_to_ids(l) for l in examples['labels']]\n print('\"labels\" were converted to multi-label format with float values', result['labels'])\n return result\n\n\npreprocessed_dataset = dataset.map(preprocess, batched=True, remove_columns=['labels', 'text'])\nprint(preprocessed_dataset[0]['labels'])\n# Output: \"[1, 1, 1, 0, 0]\"\n# Expected: \"[1.0, 1.0, 1.0, 0.0, 0.0]\"\n```\n\nIf the original dataset uses non-int labels, it works as expected.\n\n```python\nfrom datasets import Dataset\n\ndata = {\n 'text': ['text1', 'text2', 'text3', 'text4'],\n 'labels': [['label1', 'label2', 'label3'], ['label4'], ['label4', 'label5'], ['label4']]\n}\n\ndataset = Dataset.from_dict(data)\n\nlabel_set = set([label for labels in data['labels'] for label in labels])\nlabel2idx = {label: idx for idx, label in enumerate(sorted(label_set))}\n\n\ndef multi_labels_to_ids(labels):\n ids = [0.0] * len(label2idx)\n for label in labels:\n ids[label2idx[label]] = 1.0\n return ids\n\ndef preprocess(examples):\n result = {'sentence': [[0, 3, 4] for _ in range(len(examples['labels']))]}\n print('\"labels\" are int', examples['labels'])\n result['labels'] = [multi_labels_to_ids(l) for l in examples['labels']]\n print('\"labels\" were converted to multi-label format with float values', result['labels'])\n return result\n\n\npreprocessed_dataset = dataset.map(preprocess, batched=True, remove_columns=['labels', 'text'])\nprint(preprocessed_dataset[0]['labels'])\n# Output: \"[1.0, 1.0, 1.0, 0.0, 0.0]\"\n# Expected: \"[1.0, 1.0, 1.0, 0.0, 0.0]\"\n```\n\nNote that the only difference between these two examples is\n> 'labels': [[0, 1, 2], [3], [3, 4], [3]]\n\nv.s\n\n> 'labels': [['label1', 'label2', 'label3'], ['label4'], ['label4', 'label5'], ['label4']]\n\n\n\n### Expected behavior\n\nEven if the original dataset uses a list of int labels, the int->float casting during `.map` process should not be canceled as shown in the above example\n\n### Environment info\n\nOS Ubuntu 22.04 LTS\nPython 3.10.11\ndatasets v3.4.1","closed_by":{"login":"yoshitomo-matsubara","id":11156001,"node_id":"MDQ6VXNlcjExMTU2MDAx","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/11156001?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/yoshitomo-matsubara","html_url":"https:\/\/github.com\/yoshitomo-matsubara","followers_url":"https:\/\/api.github.com\/users\/yoshitomo-matsubara\/followers","following_url":"https:\/\/api.github.com\/users\/yoshitomo-matsubara\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/yoshitomo-matsubara\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/yoshitomo-matsubara\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/yoshitomo-matsubara\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/yoshitomo-matsubara\/orgs","repos_url":"https:\/\/api.github.com\/users\/yoshitomo-matsubara\/repos","events_url":"https:\/\/api.github.com\/users\/yoshitomo-matsubara\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/yoshitomo-matsubara\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7472\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7472\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7471","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7471\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7471\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7471\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7471","id":2937530069,"node_id":"I_kwDODunzps6vFybV","number":7471,"title":"Adding argument to `_get_data_files_patterns`","user":{"login":"SangbumChoi","id":34004152,"node_id":"MDQ6VXNlcjM0MDA0MTUy","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/34004152?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/SangbumChoi","html_url":"https:\/\/github.com\/SangbumChoi","followers_url":"https:\/\/api.github.com\/users\/SangbumChoi\/followers","following_url":"https:\/\/api.github.com\/users\/SangbumChoi\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/SangbumChoi\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/SangbumChoi\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/SangbumChoi\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/SangbumChoi\/orgs","repos_url":"https:\/\/api.github.com\/users\/SangbumChoi\/repos","events_url":"https:\/\/api.github.com\/users\/SangbumChoi\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/SangbumChoi\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2025-03-21T07:17:53Z","updated_at":"2025-03-27T12:30:52Z","closed_at":"2025-03-26T07:26:27Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nHow about adding if the user already know about the pattern?\n\nhttps:\/\/github.com\/huggingface\/datasets\/blob\/a256b85cbc67aa3f0e75d32d6586afc507cf535b\/src\/datasets\/data_files.py#L252\n\n### Motivation\n\nWhile using this load_dataset people might use 10M of images for the local files.\nHowever, due to searching all the appropriate file pattern in fsspec, purely searching this pattern takes more than 10 hours (real use-case).\n\n### Your contribution\n\nYeah I can make this happen if this seems valid. @lhoestq WDYT?\nsuch like\n```\ndef _get_data_files_patterns(pattern_resolver: Callable[[str], list[str]], patterns: PATTERNS) -> dict[str, list[str]]:\n```","closed_by":{"login":"SangbumChoi","id":34004152,"node_id":"MDQ6VXNlcjM0MDA0MTUy","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/34004152?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/SangbumChoi","html_url":"https:\/\/github.com\/SangbumChoi","followers_url":"https:\/\/api.github.com\/users\/SangbumChoi\/followers","following_url":"https:\/\/api.github.com\/users\/SangbumChoi\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/SangbumChoi\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/SangbumChoi\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/SangbumChoi\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/SangbumChoi\/orgs","repos_url":"https:\/\/api.github.com\/users\/SangbumChoi\/repos","events_url":"https:\/\/api.github.com\/users\/SangbumChoi\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/SangbumChoi\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7471\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7471\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7470","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7470\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7470\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7470\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7470","id":2937236323,"node_id":"I_kwDODunzps6vEqtj","number":7470,"title":"Is it possible to shard a single-sharded IterableDataset?","user":{"login":"jonathanasdf","id":511073,"node_id":"MDQ6VXNlcjUxMTA3Mw==","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/511073?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/jonathanasdf","html_url":"https:\/\/github.com\/jonathanasdf","followers_url":"https:\/\/api.github.com\/users\/jonathanasdf\/followers","following_url":"https:\/\/api.github.com\/users\/jonathanasdf\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/jonathanasdf\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/jonathanasdf\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/jonathanasdf\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/jonathanasdf\/orgs","repos_url":"https:\/\/api.github.com\/users\/jonathanasdf\/repos","events_url":"https:\/\/api.github.com\/users\/jonathanasdf\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/jonathanasdf\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2025-03-21T04:33:37Z","updated_at":"2025-05-09T22:51:46Z","closed_at":"2025-03-26T06:49:28Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"I thought https:\/\/github.com\/huggingface\/datasets\/pull\/7252 might be applicable but looking at it maybe not.\n\nSay we have a process, eg. a database query, that can return data in slightly different order each time. So, the initial query needs to be run by a single thread (not to mention running multiple times incurs more cost too). But the results are also big enough that we don't want to materialize it entirely and instead stream it with an IterableDataset.\n\nBut after we have the results we want to split it up across workers to parallelize processing.\n\nIs something like this possible to do?\n\nHere's a failed attempt. The end result should be that each of the shards has unique data, but unfortunately with this attempt the generator gets run once in each shard and the results end up with duplicates...\n\n```\nimport random\nimport datasets\n\n\ndef gen():\n print('RUNNING GENERATOR!')\n items = list(range(10))\n random.shuffle(items)\n yield from items\n\n\nds = datasets.IterableDataset.from_generator(gen)\n\nprint('dataset contents:')\nfor item in ds:\n print(item)\nprint()\n\nprint('dataset contents (2):')\nfor item in ds:\n print(item)\nprint()\n\n\nnum_shards = 3\n\n\ndef sharded(shard_id):\n for i, example in enumerate(ds):\n if i % num_shards in shard_id:\n yield example\n\n\nds1 = datasets.IterableDataset.from_generator(\n sharded, gen_kwargs={'shard_id': list(range(num_shards))}\n)\n\nfor shard in range(num_shards):\n print('shard', shard)\n for item in ds1.shard(num_shards, shard):\n print(item)\n```","closed_by":{"login":"jonathanasdf","id":511073,"node_id":"MDQ6VXNlcjUxMTA3Mw==","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/511073?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/jonathanasdf","html_url":"https:\/\/github.com\/jonathanasdf","followers_url":"https:\/\/api.github.com\/users\/jonathanasdf\/followers","following_url":"https:\/\/api.github.com\/users\/jonathanasdf\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/jonathanasdf\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/jonathanasdf\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/jonathanasdf\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/jonathanasdf\/orgs","repos_url":"https:\/\/api.github.com\/users\/jonathanasdf\/repos","events_url":"https:\/\/api.github.com\/users\/jonathanasdf\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/jonathanasdf\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7470\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7470\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7469","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7469\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7469\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7469\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7469","id":2936606080,"node_id":"I_kwDODunzps6vCQ2A","number":7469,"title":"Custom split name with the web interface","user":{"login":"vince62s","id":15141326,"node_id":"MDQ6VXNlcjE1MTQxMzI2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/15141326?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/vince62s","html_url":"https:\/\/github.com\/vince62s","followers_url":"https:\/\/api.github.com\/users\/vince62s\/followers","following_url":"https:\/\/api.github.com\/users\/vince62s\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/vince62s\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/vince62s\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/vince62s\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/vince62s\/orgs","repos_url":"https:\/\/api.github.com\/users\/vince62s\/repos","events_url":"https:\/\/api.github.com\/users\/vince62s\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/vince62s\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-03-20T20:45:59Z","updated_at":"2025-03-21T07:20:37Z","closed_at":"2025-03-21T07:20:37Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nAccording the doc here: https:\/\/huggingface.co\/docs\/hub\/datasets-file-names-and-splits#custom-split-name\nit should infer the split name from the subdir of data or the beg of the name of the files in data.\nWhen doing this manually through web upload it does not work. it uses \"train\" as a unique split.\nexample: https:\/\/huggingface.co\/datasets\/eole-nlp\/estimator_chatml\n\n### Steps to reproduce the bug\n\nfollow the link above\n\n### Expected behavior\n\nthere should be two splits \"mlqe\" and \"1720_da\"\n\n### Environment info\n\nwebsite","closed_by":{"login":"vince62s","id":15141326,"node_id":"MDQ6VXNlcjE1MTQxMzI2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/15141326?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/vince62s","html_url":"https:\/\/github.com\/vince62s","followers_url":"https:\/\/api.github.com\/users\/vince62s\/followers","following_url":"https:\/\/api.github.com\/users\/vince62s\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/vince62s\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/vince62s\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/vince62s\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/vince62s\/orgs","repos_url":"https:\/\/api.github.com\/users\/vince62s\/repos","events_url":"https:\/\/api.github.com\/users\/vince62s\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/vince62s\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7469\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7469\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7468","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7468\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7468\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7468\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7468","id":2934094103,"node_id":"I_kwDODunzps6u4rkX","number":7468,"title":"function `load_dataset` can't solve folder path with regex characters like \"[]\"","user":{"login":"Hpeox","id":89294013,"node_id":"MDQ6VXNlcjg5Mjk0MDEz","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/89294013?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Hpeox","html_url":"https:\/\/github.com\/Hpeox","followers_url":"https:\/\/api.github.com\/users\/Hpeox\/followers","following_url":"https:\/\/api.github.com\/users\/Hpeox\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Hpeox\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Hpeox\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Hpeox\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Hpeox\/orgs","repos_url":"https:\/\/api.github.com\/users\/Hpeox\/repos","events_url":"https:\/\/api.github.com\/users\/Hpeox\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Hpeox\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-03-20T05:21:59Z","updated_at":"2025-03-25T10:18:12Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nWhen using the `load_dataset` function with a folder path containing regex special characters (such as \"[]\"), the issue occurs due to how the path is handled in the `resolve_pattern` function. This function passes the unprocessed path directly to `AbstractFileSystem.glob`, which supports regular expressions. As a result, the globbing mechanism interprets these characters as regex patterns, leading to a traversal of the entire disk partition instead of confining the search to the intended directory.\n\n### Steps to reproduce the bug\n\njust create a folder like `E:\\[D_DATA]\\koch_test`, then `load_dataset(\"parquet\", data_dir=\"E:\\[D_DATA]\\\\test\", split=\"train\")`\nit will keep searching the whole disk.\n\nI add two `print` in `glob` and `resolve_pattern` to see the path\n\n### Expected behavior\n\nit should load the dataset as in normal folders\n\n### Environment info\n\n- `datasets` version: 3.3.2\n- Platform: Windows-10-10.0.22631-SP0\n- Python version: 3.10.16\n- `huggingface_hub` version: 0.29.1\n- PyArrow version: 19.0.1\n- Pandas version: 2.2.3\n- `fsspec` version: 2024.12.0","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7468\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7468\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7467","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7467\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7467\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7467\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7467","id":2930067107,"node_id":"I_kwDODunzps6upUaj","number":7467,"title":"load_dataset with streaming hangs on parquet datasets","user":{"login":"The0nix","id":10550252,"node_id":"MDQ6VXNlcjEwNTUwMjUy","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/10550252?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/The0nix","html_url":"https:\/\/github.com\/The0nix","followers_url":"https:\/\/api.github.com\/users\/The0nix\/followers","following_url":"https:\/\/api.github.com\/users\/The0nix\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/The0nix\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/The0nix\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/The0nix\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/The0nix\/orgs","repos_url":"https:\/\/api.github.com\/users\/The0nix\/repos","events_url":"https:\/\/api.github.com\/users\/The0nix\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/The0nix\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-03-18T23:33:54Z","updated_at":"2025-03-25T10:28:04Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nWhen I try to load a dataset with parquet files (e.g. \"bigcode\/the-stack\") the dataset loads, but python interpreter can't exit and hangs\n\n### Steps to reproduce the bug\n\n```python3\nimport datasets\n\nprint('Start')\ndataset = datasets.load_dataset(\"bigcode\/the-stack\", data_dir=\"data\/yaml\", streaming=True, split=\"train\")\nit = iter(dataset)\nnext(it)\nprint('Finish')\n```\n\nThe program prints finish but doesn't exit and hangs indefinitely.\nI tried this on two different machines and several datasets.\n\n### Expected behavior\n\nThe program exits successfully\n\n### Environment info\n\ndatasets==3.4.1\nPython 3.12.9.\nMacOS and Ubuntu Linux","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7467\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7467\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7466","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7466\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7466\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7466\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7466","id":2928661327,"node_id":"PR_kwDODunzps6PHQyp","number":7466,"title":"Fix local pdf loading","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-03-18T14:09:06Z","updated_at":"2025-03-18T14:11:52Z","closed_at":"2025-03-18T14:09:21Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7466","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7466","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7466.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7466.patch","merged_at":"2025-03-18T14:09:21Z"},"body":"fir this error when accessing a local pdf\r\n\r\n```\r\nFile ~\/.pyenv\/versions\/3.12.2\/envs\/hf-datasets\/lib\/python3.12\/site-packages\/pdfminer\/psparser.py:220, in PSBaseParser.seek(self, pos)\r\n 218 \"\"\"Seeks the parser to the given position.\"\"\"\r\n 219 log.debug(\"seek: %r\", pos)\r\n--> 220 self.fp.seek(pos)\r\n 221 # reset the status for nextline()\r\n 222 self.bufpos = pos\r\n\r\nValueError: seek of closed file\r\n```","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7466\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7466\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7464","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7464\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7464\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7464\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7464","id":2926478838,"node_id":"PR_kwDODunzps6PABJa","number":7464,"title":"Minor fix for metadata files in extension counter","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-03-17T21:57:11Z","updated_at":"2025-03-18T15:21:43Z","closed_at":"2025-03-18T15:21:41Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7464","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7464","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7464.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7464.patch","merged_at":"2025-03-18T15:21:41Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7464\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7464\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7463","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7463\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7463\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7463\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7463","id":2925924452,"node_id":"PR_kwDODunzps6O-I6K","number":7463,"title":"Adds EXR format to store depth images in float32","user":{"login":"ducha-aiki","id":4803565,"node_id":"MDQ6VXNlcjQ4MDM1NjU=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/4803565?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ducha-aiki","html_url":"https:\/\/github.com\/ducha-aiki","followers_url":"https:\/\/api.github.com\/users\/ducha-aiki\/followers","following_url":"https:\/\/api.github.com\/users\/ducha-aiki\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ducha-aiki\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ducha-aiki\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ducha-aiki\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ducha-aiki\/orgs","repos_url":"https:\/\/api.github.com\/users\/ducha-aiki\/repos","events_url":"https:\/\/api.github.com\/users\/ducha-aiki\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ducha-aiki\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2025-03-17T17:42:40Z","updated_at":"2025-04-02T12:33:39Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7463","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7463","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7463.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7463.patch","merged_at":null},"body":"This PR adds the EXR feature to store depth images (or can be normals, etc) in float32.\r\nIt relies on [openexr_numpy](https:\/\/github.com\/martinResearch\/openexr_numpy\/tree\/main) to manipulate EXR images. \r\n\r\n","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7463\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7463\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7462","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7462\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7462\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7462\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7462","id":2925612945,"node_id":"PR_kwDODunzps6O9EA1","number":7462,"title":"set dev version","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-03-17T16:00:53Z","updated_at":"2025-03-17T16:03:31Z","closed_at":"2025-03-17T16:01:08Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7462","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7462","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7462.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7462.patch","merged_at":"2025-03-17T16:01:08Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7462\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7462\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7461","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7461\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7461\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7461\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7461","id":2925608123,"node_id":"I_kwDODunzps6uYTy7","number":7461,"title":"List of images behave differently on IterableDataset and Dataset","user":{"login":"FredrikNoren","id":1288009,"node_id":"MDQ6VXNlcjEyODgwMDk=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/1288009?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/FredrikNoren","html_url":"https:\/\/github.com\/FredrikNoren","followers_url":"https:\/\/api.github.com\/users\/FredrikNoren\/followers","following_url":"https:\/\/api.github.com\/users\/FredrikNoren\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/FredrikNoren\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/FredrikNoren\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/FredrikNoren\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/FredrikNoren\/orgs","repos_url":"https:\/\/api.github.com\/users\/FredrikNoren\/repos","events_url":"https:\/\/api.github.com\/users\/FredrikNoren\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/FredrikNoren\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-03-17T15:59:23Z","updated_at":"2025-03-18T08:57:17Z","closed_at":"2025-03-18T08:57:16Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nThis code:\n\n```python\ndef train_iterable_gen():\n images = np.array(load_image(\"https:\/\/cdn.britannica.com\/61\/93061-050-99147DCE\/Statue-of-Liberty-Island-New-York-Bay.jpg\").resize((128, 128)))\n yield {\n \"images\": np.expand_dims(images, axis=0),\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": [{\"type\": \"image\", \"url\": \"https:\/\/cdn.britannica.com\/61\/93061-050-99147DCE\/Statue-of-Liberty-Island-New-York-Bay.jpg\" }]\n },\n {\n \"role\": \"assistant\",\n \"content\": [{\"type\": \"text\", \"text\": \"duck\" }]\n }\n ]\n }\n train_ds = Dataset.from_generator(train_iterable_gen,\n features=Features({\n 'images': [datasets.Image(mode=None, decode=True, id=None)],\n 'messages': [{'content': [{'text': datasets.Value(dtype='string', id=None), 'type': datasets.Value(dtype='string', id=None) }], 'role': datasets.Value(dtype='string', id=None)}]\n } )\n )\n```\n\nworks as I'd expect; if I iterate the dataset then the `images` column returns a `List[PIL.Image.Image]`, i.e. `'images': []`.\n\nBut if I change `Dataset` to `IterableDataset`, the `images` column changes into `'images': [{'path': None, 'bytes': ..]`\n\n### Steps to reproduce the bug\n\nThe code above +\n\n```python\ndef load_image(url):\n response = requests.get(url)\n image = Image.open(io.BytesIO(response.content))\n return image\n```\n\nI'm feeding it to SFTTrainer\n\n### Expected behavior\n\nDataset and IterableDataset would behave the same\n\n### Environment info\n\n```yaml\nrequires-python = \">=3.12\"\ndependencies = [\n \"av>=14.1.0\",\n \"boto3>=1.36.7\",\n \"datasets>=3.3.2\",\n \"docker>=7.1.0\",\n \"google-cloud-storage>=2.19.0\",\n \"grpcio>=1.70.0\",\n \"grpcio-tools>=1.70.0\",\n \"moviepy>=2.1.2\",\n \"open-clip-torch>=2.31.0\",\n \"opencv-python>=4.11.0.86; sys_platform == 'darwin'\",\n \"opencv-python-headless>=4.11.0.86; sys_platform == 'linux'\",\n \"pandas>=2.2.3\",\n \"pillow>=10.4.0\",\n \"plotly>=6.0.0\",\n \"py-spy>=0.4.0\",\n \"pydantic>=2.10.6\",\n \"pydantic-settings>=2.7.1\",\n \"pymysql>=1.1.1\",\n \"ray[data,default,serve,train,tune]>=2.43.0\",\n \"torch>=2.6.0\",\n \"torchmetrics>=1.6.1\",\n \"torchvision>=0.21.0\",\n \"transformers[torch]@git+https:\/\/github.com\/huggingface\/transformers\",\n \"wandb>=0.19.4\",\n # https:\/\/github.com\/Dao-AILab\/flash-attention\/issues\/833\n \"flash-attn @ https:\/\/github.com\/Dao-AILab\/flash-attention\/releases\/download\/v2.7.3\/flash_attn-2.7.3+cu12torch2.6cxx11abiFALSE-cp312-cp312-linux_x86_64.whl; sys_platform == 'linux'\",\n \"trl@https:\/\/github.com\/huggingface\/trl.git\",\n \"peft>=0.14.0\",\n]\n```","closed_by":{"login":"FredrikNoren","id":1288009,"node_id":"MDQ6VXNlcjEyODgwMDk=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/1288009?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/FredrikNoren","html_url":"https:\/\/github.com\/FredrikNoren","followers_url":"https:\/\/api.github.com\/users\/FredrikNoren\/followers","following_url":"https:\/\/api.github.com\/users\/FredrikNoren\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/FredrikNoren\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/FredrikNoren\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/FredrikNoren\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/FredrikNoren\/orgs","repos_url":"https:\/\/api.github.com\/users\/FredrikNoren\/repos","events_url":"https:\/\/api.github.com\/users\/FredrikNoren\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/FredrikNoren\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7461\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7461\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7460","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7460\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7460\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7460\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7460","id":2925605865,"node_id":"PR_kwDODunzps6O9Ccc","number":7460,"title":"release: 3.4.1","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-03-17T15:58:31Z","updated_at":"2025-03-17T16:01:14Z","closed_at":"2025-03-17T15:59:19Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7460","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7460","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7460.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7460.patch","merged_at":"2025-03-17T15:59:19Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7460\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7460\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7459","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7459\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7459\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7459\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7459","id":2925491766,"node_id":"PR_kwDODunzps6O8pWp","number":7459,"title":"Fix data_files filtering","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-03-17T15:20:21Z","updated_at":"2025-03-17T15:25:56Z","closed_at":"2025-03-17T15:25:54Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7459","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7459","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7459.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7459.patch","merged_at":"2025-03-17T15:25:53Z"},"body":"close https:\/\/github.com\/huggingface\/datasets\/issues\/7458","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7459\/reactions","total_count":1,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7459\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7458","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7458\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7458\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7458\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7458","id":2925403528,"node_id":"I_kwDODunzps6uXh2I","number":7458,"title":"Loading the `laion\/filtered-wit` dataset in streaming mode fails on v3.4.0","user":{"login":"nikita-savelyevv","id":23343961,"node_id":"MDQ6VXNlcjIzMzQzOTYx","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/23343961?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/nikita-savelyevv","html_url":"https:\/\/github.com\/nikita-savelyevv","followers_url":"https:\/\/api.github.com\/users\/nikita-savelyevv\/followers","following_url":"https:\/\/api.github.com\/users\/nikita-savelyevv\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/nikita-savelyevv\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/nikita-savelyevv\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/nikita-savelyevv\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/nikita-savelyevv\/orgs","repos_url":"https:\/\/api.github.com\/users\/nikita-savelyevv\/repos","events_url":"https:\/\/api.github.com\/users\/nikita-savelyevv\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/nikita-savelyevv\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":1,"created_at":"2025-03-17T14:54:02Z","updated_at":"2025-03-17T16:02:04Z","closed_at":"2025-03-17T15:25:55Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nLoading https:\/\/huggingface.co\/datasets\/laion\/filtered-wit in streaming mode fails after update to `datasets==3.4.0`. The dataset loads fine on v3.3.2.\n\n### Steps to reproduce the bug\n\nSteps to reproduce:\n```\npip install datastes==3.4.0\npython -c \"from datasets import load_dataset; load_dataset('laion\/filtered-wit', split='train', streaming=True)\"\n```\n\nResults in:\n```\n$ python -c \"from datasets import load_dataset; load_dataset('laion\/filtered-wit', split='train', streaming=True)\"\nRepo card metadata block was not found. Setting CardData to empty.\nResolving data files: 100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 560\/560 [00:00<00:00, 2280.24it\/s]\nTraceback (most recent call last):\n File \"\", line 1, in \n File \"\/home\/nsavel\/venvs\/tmp\/lib\/python3.9\/site-packages\/datasets\/load.py\", line 2080, in load_dataset\n return builder_instance.as_streaming_dataset(split=split)\n File \"\/home\/nsavel\/venvs\/tmp\/lib\/python3.9\/site-packages\/datasets\/builder.py\", line 1265, in as_streaming_dataset\n splits_generators = {sg.name: sg for sg in self._split_generators(dl_manager)}\n File \"\/home\/nsavel\/venvs\/tmp\/lib\/python3.9\/site-packages\/datasets\/packaged_modules\/parquet\/parquet.py\", line 49, in _split_generators\n data_files = dl_manager.download_and_extract(self.config.data_files)\n File \"\/home\/nsavel\/venvs\/tmp\/lib\/python3.9\/site-packages\/datasets\/download\/streaming_download_manager.py\", line 169, in download_and_extract\n return self.extract(self.download(url_or_urls))\n File \"\/home\/nsavel\/venvs\/tmp\/lib\/python3.9\/site-packages\/datasets\/download\/streaming_download_manager.py\", line 121, in extract\n urlpaths = map_nested(self._extract, url_or_urls, map_tuple=True)\n File \"\/home\/nsavel\/venvs\/tmp\/lib\/python3.9\/site-packages\/datasets\/utils\/py_utils.py\", line 496, in map_nested\n mapped = [\n File \"\/home\/nsavel\/venvs\/tmp\/lib\/python3.9\/site-packages\/datasets\/utils\/py_utils.py\", line 497, in \n map_nested(\n File \"\/home\/nsavel\/venvs\/tmp\/lib\/python3.9\/site-packages\/datasets\/utils\/py_utils.py\", line 513, in map_nested\n mapped = [\n File \"\/home\/nsavel\/venvs\/tmp\/lib\/python3.9\/site-packages\/datasets\/utils\/py_utils.py\", line 514, in \n _single_map_nested((function, obj, batched, batch_size, types, None, True, None))\n File \"\/home\/nsavel\/venvs\/tmp\/lib\/python3.9\/site-packages\/datasets\/utils\/py_utils.py\", line 375, in _single_map_nested\n return function(data_struct)\n File \"\/home\/nsavel\/venvs\/tmp\/lib\/python3.9\/site-packages\/datasets\/download\/streaming_download_manager.py\", line 131, in _extract\n raise NotImplementedError(\nNotImplementedError: Extraction protocol for TAR archives like 'hf:\/\/datasets\/laion\/filtered-wit@c38ca7464e9934d9a49f88b3f60f5ad63b245465\/data\/00000.tar' is not implemented in streaming mode. Please use `dl_manager.iter_archive` instead.\n\nExample usage:\n\n url = dl_manager.download(url)\n tar_archive_iterator = dl_manager.iter_archive(url)\n\n for filename, file in tar_archive_iterator:\n ...\n```\n\n### Expected behavior\n\nDataset loads successfully.\n\n### Environment info\n\nUbuntu 20.04.6. Python 3.9. Datasets 3.4.0.\n\npip freeze:\n```\naiohappyeyeballs==2.6.1\naiohttp==3.11.14\naiosignal==1.3.2\nasync-timeout==5.0.1\nattrs==25.3.0\ncertifi==2025.1.31\ncharset-normalizer==3.4.1\ndatasets==3.4.0\ndill==0.3.8\nfilelock==3.18.0\nfrozenlist==1.5.0\nfsspec==2024.12.0\nhuggingface-hub==0.29.3\nidna==3.10\nmultidict==6.1.0\nmultiprocess==0.70.16\nnumpy==2.0.2\npackaging==24.2\npandas==2.2.3\npropcache==0.3.0\npyarrow==19.0.1\npython-dateutil==2.9.0.post0\npytz==2025.1\nPyYAML==6.0.2\nrequests==2.32.3\nsix==1.17.0\ntqdm==4.67.1\ntyping_extensions==4.12.2\ntzdata==2025.1\nurllib3==2.3.0\nxxhash==3.5.0\nyarl==1.18.3\n```","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7458\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7458\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7457","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7457\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7457\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7457\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7457","id":2924886467,"node_id":"I_kwDODunzps6uVjnD","number":7457,"title":"Document the HF_DATASETS_CACHE env variable","user":{"login":"LSerranoPEReN","id":92166725,"node_id":"U_kgDOBX5aRQ","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/92166725?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/LSerranoPEReN","html_url":"https:\/\/github.com\/LSerranoPEReN","followers_url":"https:\/\/api.github.com\/users\/LSerranoPEReN\/followers","following_url":"https:\/\/api.github.com\/users\/LSerranoPEReN\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/LSerranoPEReN\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/LSerranoPEReN\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/LSerranoPEReN\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/LSerranoPEReN\/orgs","repos_url":"https:\/\/api.github.com\/users\/LSerranoPEReN\/repos","events_url":"https:\/\/api.github.com\/users\/LSerranoPEReN\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/LSerranoPEReN\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"closed","locked":false,"assignee":{"login":"Harry-Yang0518","id":129883215,"node_id":"U_kgDOB73cTw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/129883215?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Harry-Yang0518","html_url":"https:\/\/github.com\/Harry-Yang0518","followers_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/followers","following_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/orgs","repos_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/repos","events_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"Harry-Yang0518","id":129883215,"node_id":"U_kgDOB73cTw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/129883215?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Harry-Yang0518","html_url":"https:\/\/github.com\/Harry-Yang0518","followers_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/followers","following_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/orgs","repos_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/repos","events_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Harry-Yang0518\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":4,"created_at":"2025-03-17T12:24:50Z","updated_at":"2025-05-06T15:54:39Z","closed_at":"2025-05-06T15:54:39Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nHello,\n\nI have a use case where my team is sharing models and dataset in shared directory to avoid duplication.\nI noticed that the [cache documentation for datasets](https:\/\/huggingface.co\/docs\/datasets\/main\/en\/cache) only mention the `HF_HOME` environment variable but never the `HF_DATASETS_CACHE`.\n\nIt should be nice to add `HF_DATASETS_CACHE` to datasets documentation if it's an intended feature.\nIf it's not, I think a depreciation warning would be appreciated.\n\n### Motivation\n\nThis variable is fully working and similar to what `HF_HUB_CACHE` does for models, so it's nice to know that this exists. This seems to be a quick change to implement.\n\n### Your contribution\n\nI could contribute since this is only affecting a small portion of the documentation","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7457\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7457\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7456","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7456\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7456\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7456\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7456","id":2922676278,"node_id":"I_kwDODunzps6uNIA2","number":7456,"title":".add_faiss_index and .add_elasticsearch_index returns ImportError at Google Colab","user":{"login":"MapleBloom","id":109490785,"node_id":"U_kgDOBoayYQ","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/109490785?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/MapleBloom","html_url":"https:\/\/github.com\/MapleBloom","followers_url":"https:\/\/api.github.com\/users\/MapleBloom\/followers","following_url":"https:\/\/api.github.com\/users\/MapleBloom\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/MapleBloom\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/MapleBloom\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/MapleBloom\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/MapleBloom\/orgs","repos_url":"https:\/\/api.github.com\/users\/MapleBloom\/repos","events_url":"https:\/\/api.github.com\/users\/MapleBloom\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/MapleBloom\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2025-03-16T00:51:49Z","updated_at":"2025-03-17T15:57:19Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nAt Google Colab\n```!pip install faiss-cpu``` works\n```import faiss``` no error\nbut\n```embeddings_dataset.add_faiss_index(column='embeddings')```\nreturns\n```\n[\/usr\/local\/lib\/python3.11\/dist-packages\/datasets\/search.py](https:\/\/localhost:8080\/#) in init(self, device, string_factory, metric_type, custom_index)\n247 self.faiss_index = custom_index\n248 if not _has_faiss:\n--> 249 raise ImportError(\n250 \"You must install Faiss to use FaissIndex. To do so you can run conda install -c pytorch faiss-cpu or conda install -c pytorch faiss-gpu. \"\n251 \"A community supported package is also available on pypi: pip install faiss-cpu or pip install faiss-gpu. \"\n```\n\nbecause\n```_has_faiss = importlib.util.find_spec(\"faiss\") is not None``` at the beginning of ```datasets\/search.py``` returns ```False```\nwhen\nthe same code at colab notebook returns\n```ModuleSpec(name='faiss', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7b7851449f50>, origin='\/usr\/local\/lib\/python3.11\/dist-packages\/faiss\/init.py', submodule_search_locations=['\/usr\/local\/lib\/python3.11\/dist-packages\/faiss'])```\n\nBut\n```\nimport datasets\ndatasets.search._has_faiss\n```\nat ```colab notebook``` also returns ```False```\n\nThe same story with ```_has_elasticsearch```\n\n### Steps to reproduce the bug\n\n1. Follow https:\/\/huggingface.co\/learn\/nlp-course\/chapter5\/6?fw=pt at Google Colab\n2. till ```embeddings_dataset.add_faiss_index(column='embeddings')```\n3. ```embeddings_dataset.add_elasticsearch_index(column='embeddings')```\n4. https:\/\/colab.research.google.com\/drive\/1h2cjuiClblqzbNQgrcoLYOC8zBqTLLcv#scrollTo=3ddzRp72auOF\n\n### Expected behavior\n\nI've only started Tutorial and don't know exactly. But something tells me that ```embeddings_dataset.add_faiss_index(column='embeddings')```\nshould work without ```Import Error```\n\n### Environment info\n\nGoogle Colab notebook with default config","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7456\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7456\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7455","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7455\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7455\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7455\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7455","id":2921933250,"node_id":"I_kwDODunzps6uKSnC","number":7455,"title":"Problems with local dataset after upgrade from 3.3.2 to 3.4.0","user":{"login":"andjoer","id":60151338,"node_id":"MDQ6VXNlcjYwMTUxMzM4","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/60151338?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/andjoer","html_url":"https:\/\/github.com\/andjoer","followers_url":"https:\/\/api.github.com\/users\/andjoer\/followers","following_url":"https:\/\/api.github.com\/users\/andjoer\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/andjoer\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/andjoer\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/andjoer\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/andjoer\/orgs","repos_url":"https:\/\/api.github.com\/users\/andjoer\/repos","events_url":"https:\/\/api.github.com\/users\/andjoer\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/andjoer\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-03-15T09:22:50Z","updated_at":"2025-03-17T16:20:43Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI was not able to open a local saved dataset anymore that was created using an older datasets version after the upgrade yesterday from datasets 3.3.2 to 3.4.0\n\nThe traceback is \n\n```\nTraceback (most recent call last):\n File \"\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/packaged_modules\/arrow\/arrow.py\", line 67, in _generate_tables\n batches = pa.ipc.open_stream(f)\n File \"\/usr\/local\/lib\/python3.10\/dist-packages\/pyarrow\/ipc.py\", line 190, in open_stream\n return RecordBatchStreamReader(source, options=options,\n File \"\/usr\/local\/lib\/python3.10\/dist-packages\/pyarrow\/ipc.py\", line 52, in __init__\n self._open(source, options=options, memory_pool=memory_pool)\n File \"pyarrow\/ipc.pxi\", line 1006, in pyarrow.lib._RecordBatchStreamReader._open\n File \"pyarrow\/error.pxi\", line 155, in pyarrow.lib.pyarrow_internal_check_status\n File \"pyarrow\/error.pxi\", line 92, in pyarrow.lib.check_status\npyarrow.lib.ArrowInvalid: Expected to read 538970747 metadata bytes, but only read 2126\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/builder.py\", line 1855, in _prepare_split_single\n for _, table in generator:\n File \"\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/packaged_modules\/arrow\/arrow.py\", line 69, in _generate_tables\n reader = pa.ipc.open_file(f)\n File \"\/usr\/local\/lib\/python3.10\/dist-packages\/pyarrow\/ipc.py\", line 234, in open_file\n return RecordBatchFileReader(\n File \"\/usr\/local\/lib\/python3.10\/dist-packages\/pyarrow\/ipc.py\", line 110, in __init__\n self._open(source, footer_offset=footer_offset,\n File \"pyarrow\/ipc.pxi\", line 1090, in pyarrow.lib._RecordBatchFileReader._open\n File \"pyarrow\/error.pxi\", line 155, in pyarrow.lib.pyarrow_internal_check_status\n File \"pyarrow\/error.pxi\", line 92, in pyarrow.lib.check_status\npyarrow.lib.ArrowInvalid: Not an Arrow file\n```\n\n### Steps to reproduce the bug\n\nLoad a dataset from a local folder with \n\n```\ndataset = load_dataset(\n args.train_data_dir,\n cache_dir=args.cache_dir,\n )\n```\nas it is done for example in the training script for SD3 controlnet.\n\nThis is the minimal script to test it: \n\n```\nfrom datasets import load_dataset\n\ndef main():\n dataset = load_dataset(\n \"local_dataset\", \n )\n print(dataset)\n print(\"Sample data:\", dataset[\"train\"][0])\n\nif __name__ == \"__main__\":\n main()\n````\n\n### Expected behavior\n\nWork in 3.4.0 like in 3.3.2\n\n### Environment info\n\n- `datasets` version: 3.4.0\n- Platform: Linux-5.15.0-75-generic-x86_64-with-glibc2.35\n- Python version: 3.10.12\n- `huggingface_hub` version: 0.29.3\n- PyArrow version: 19.0.1\n- Pandas version: 2.2.3\n- `fsspec` version: 2024.12.0","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7455\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7455\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7454","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7454\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7454\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7454\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7454","id":2920760793,"node_id":"PR_kwDODunzps6Os6bx","number":7454,"title":"set dev version","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-03-14T16:48:19Z","updated_at":"2025-03-14T16:50:31Z","closed_at":"2025-03-14T16:48:28Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7454","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7454","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7454.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7454.patch","merged_at":"2025-03-14T16:48:28Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7454\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7454\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7453","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7453\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7453\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7453\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7453","id":2920719503,"node_id":"PR_kwDODunzps6OsxR1","number":7453,"title":"release: 3.4.0","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-03-14T16:30:45Z","updated_at":"2025-03-14T16:38:10Z","closed_at":"2025-03-14T16:38:08Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7453","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7453","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7453.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7453.patch","merged_at":"2025-03-14T16:38:08Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7453\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7453\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7452","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7452\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7452\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7452\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7452","id":2920354783,"node_id":"PR_kwDODunzps6Orhw4","number":7452,"title":"minor docs changes","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-03-14T14:14:04Z","updated_at":"2025-03-14T14:16:38Z","closed_at":"2025-03-14T14:14:20Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7452","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7452","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7452.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7452.patch","merged_at":"2025-03-14T14:14:20Z"},"body":"before the release","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7452\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7452\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7451","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7451\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7451\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7451\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7451","id":2919835663,"node_id":"PR_kwDODunzps6OpwDz","number":7451,"title":"Fix resuming after `ds.set_epoch(new_epoch)`","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-03-14T10:31:25Z","updated_at":"2025-03-14T10:50:11Z","closed_at":"2025-03-14T10:50:09Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7451","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7451","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7451.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7451.patch","merged_at":"2025-03-14T10:50:09Z"},"body":"close https:\/\/github.com\/huggingface\/datasets\/issues\/7447","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7451\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7451\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7450","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7450\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7450\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7450\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7450","id":2916681414,"node_id":"PR_kwDODunzps6OfMKs","number":7450,"title":"Add IterableDataset.decode with multithreading","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-03-13T10:41:35Z","updated_at":"2025-03-14T10:35:37Z","closed_at":"2025-03-14T10:35:35Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7450","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7450","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7450.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7450.patch","merged_at":"2025-03-14T10:35:35Z"},"body":"Useful for dataset streaming for multimodal datasets, and especially for lerobot.\r\nIt speeds up streaming up to 20 times.\r\n\r\nWhen decoding is enabled (default), media types are decoded:\r\n\r\n* audio -> dict of \"array\" and \"sampling_rate\" and \"path\"\r\n* image -> PIL.Image\r\n* video -> torchvision.io.VideoReader\r\n\r\nYou can enable multithreading using `num_threads`. This is especially useful to speed up remote\r\ndata streaming. However it can be slower than `num_threads=0` for local data on fast disks.\r\n\r\nPS: Disabling decoding is useful if you want to iterate on the paths or bytes of the media files\r\nwithout actually decoding their content.\r\n\r\nExample: Speed up streaming with multithreading:\r\n\r\n```py\r\n>>> import os\r\n>>> from datasets import load_dataset\r\n>>> from tqdm import tqdm\r\n>>> ds = load_dataset(\"sshh12\/planet-textures\", split=\"train\", streaming=True)\r\n>>> num_threads = min(32, (os.cpu_count() or 1) + 4)\r\n>>> ds = ds.decode(num_threads=num_threads)\r\n>>> for _ in tqdm(ds): # 20 times faster !\r\n... ...\r\n```\r\n\r\nwhy not multiprocessing ? decoding is done with the GIL released in soundfile\/PIL\/torchvision so multiprocessing would just use more memory\r\n\r\nTODO\r\n- [x] test\r\n- [x] add to docs","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7450\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7450\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7449","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7449\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7449\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7449\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7449","id":2916235092,"node_id":"I_kwDODunzps6t0jdU","number":7449,"title":"Cannot load data with different schemas from different parquet files","user":{"login":"li-plus","id":39846316,"node_id":"MDQ6VXNlcjM5ODQ2MzE2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/39846316?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/li-plus","html_url":"https:\/\/github.com\/li-plus","followers_url":"https:\/\/api.github.com\/users\/li-plus\/followers","following_url":"https:\/\/api.github.com\/users\/li-plus\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/li-plus\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/li-plus\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/li-plus\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/li-plus\/orgs","repos_url":"https:\/\/api.github.com\/users\/li-plus\/repos","events_url":"https:\/\/api.github.com\/users\/li-plus\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/li-plus\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-03-13T08:14:49Z","updated_at":"2025-03-17T07:27:48Z","closed_at":"2025-03-17T07:27:46Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nCannot load samples with optional fields from different files. The schema cannot be correctly derived.\n\n### Steps to reproduce the bug\n\nWhen I place two samples with an optional field `some_extra_field` within a single parquet file, it can be loaded via `load_dataset`.\n\n```python\nimport pandas as pd\nfrom datasets import load_dataset\n\ndata = [\n {'conversations': {'role': 'user', 'content': 'hello'}},\n {'conversations': {'role': 'user', 'content': 'hi', 'some_extra_field': 'some_value'}}\n]\ndf = pd.DataFrame(data)\ndf.to_parquet('data.parquet')\n\ndataset = load_dataset('parquet', data_files='data.parquet', split='train')\nprint(dataset.features)\n```\n\nThe schema can be derived. `some_extra_field` is set to None for the first row where it is absent.\n```\n{'conversations': {'content': Value(dtype='string', id=None), 'role': Value(dtype='string', id=None), 'some_extra_field': Value(dtype='string', id=None)}}\n```\n\nHowever, when I separate the samples into different files, it cannot be loaded.\n```python\nimport pandas as pd\nfrom datasets import load_dataset\n\ndata1 = [{'conversations': {'role': 'user', 'content': 'hello'}}]\npd.DataFrame(data1).to_parquet('data1.parquet')\ndata2 = [{'conversations': {'role': 'user', 'content': 'hi', 'some_extra_field': 'some_value'}}]\npd.DataFrame(data2).to_parquet('data2.parquet')\n\ndataset = load_dataset('parquet', data_files=['data1.parquet', 'data2.parquet'], split='train')\nprint(dataset.features)\n```\n\nTraceback:\n```\nTraceback (most recent call last):\n File \"\/home\/tiger\/.local\/lib\/python3.9\/site-packages\/datasets\/builder.py\", line 1854, in _prepare_split_single\n for _, table in generator:\n File \"\/home\/tiger\/.local\/lib\/python3.9\/site-packages\/datasets\/packaged_modules\/parquet\/parquet.py\", line 106, in _generate_tables\n yield f\"{file_idx}_{batch_idx}\", self._cast_table(pa_table)\n File \"\/home\/tiger\/.local\/lib\/python3.9\/site-packages\/datasets\/packaged_modules\/parquet\/parquet.py\", line 73, in _cast_table\n pa_table = table_cast(pa_table, self.info.features.arrow_schema)\n File \"\/home\/tiger\/.local\/lib\/python3.9\/site-packages\/datasets\/table.py\", line 2292, in table_cast\n return cast_table_to_schema(table, schema)\n File \"\/home\/tiger\/.local\/lib\/python3.9\/site-packages\/datasets\/table.py\", line 2245, in cast_table_to_schema\n arrays = [\n File \"\/home\/tiger\/.local\/lib\/python3.9\/site-packages\/datasets\/table.py\", line 2246, in \n cast_array_to_feature(\n File \"\/home\/tiger\/.local\/lib\/python3.9\/site-packages\/datasets\/table.py\", line 1795, in wrapper\n return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])\n File \"\/home\/tiger\/.local\/lib\/python3.9\/site-packages\/datasets\/table.py\", line 1795, in \n return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])\n File \"\/home\/tiger\/.local\/lib\/python3.9\/site-packages\/datasets\/table.py\", line 2108, in cast_array_to_feature\n raise TypeError(f\"Couldn't cast array of type\\n{_short_str(array.type)}\\nto\\n{_short_str(feature)}\")\nTypeError: Couldn't cast array of type\nstruct\nto\n{'content': Value(dtype='string', id=None), 'role': Value(dtype='string', id=None)}\n```\n\n\n### Expected behavior\n\nCorrectly load data with optional fields from different parquet files.\n\n### Environment info\n\n- `datasets` version: 3.3.2\n- Platform: Linux-5.10.135.bsk.4-amd64-x86_64-with-glibc2.31\n- Python version: 3.9.2\n- `huggingface_hub` version: 0.28.1\n- PyArrow version: 17.0.0\n- Pandas version: 2.2.2\n- `fsspec` version: 2024.3.1","closed_by":{"login":"li-plus","id":39846316,"node_id":"MDQ6VXNlcjM5ODQ2MzE2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/39846316?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/li-plus","html_url":"https:\/\/github.com\/li-plus","followers_url":"https:\/\/api.github.com\/users\/li-plus\/followers","following_url":"https:\/\/api.github.com\/users\/li-plus\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/li-plus\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/li-plus\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/li-plus\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/li-plus\/orgs","repos_url":"https:\/\/api.github.com\/users\/li-plus\/repos","events_url":"https:\/\/api.github.com\/users\/li-plus\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/li-plus\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7449\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7449\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7448","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7448\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7448\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7448\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7448","id":2916025762,"node_id":"I_kwDODunzps6tzwWi","number":7448,"title":"`datasets.disable_caching` doesn't work","user":{"login":"UCC-team","id":35629974,"node_id":"MDQ6VXNlcjM1NjI5OTc0","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/35629974?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/UCC-team","html_url":"https:\/\/github.com\/UCC-team","followers_url":"https:\/\/api.github.com\/users\/UCC-team\/followers","following_url":"https:\/\/api.github.com\/users\/UCC-team\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/UCC-team\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/UCC-team\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/UCC-team\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/UCC-team\/orgs","repos_url":"https:\/\/api.github.com\/users\/UCC-team\/repos","events_url":"https:\/\/api.github.com\/users\/UCC-team\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/UCC-team\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-03-13T06:40:12Z","updated_at":"2025-03-22T04:37:07Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"When I use `Dataset.from_generator(my_gen)` to load my dataset, it simply skips my changes to the generator function.\nI tried `datasets.disable_caching`, but it doesn't work!","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7448\/reactions","total_count":1,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7448\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7447","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7447\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7447\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7447\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7447","id":2915233248,"node_id":"I_kwDODunzps6twu3g","number":7447,"title":"Epochs shortened after resuming mid-epoch with Iterable dataset+StatefulDataloader(persistent_workers=True)","user":{"login":"dhruvdcoder","id":4356534,"node_id":"MDQ6VXNlcjQzNTY1MzQ=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/4356534?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/dhruvdcoder","html_url":"https:\/\/github.com\/dhruvdcoder","followers_url":"https:\/\/api.github.com\/users\/dhruvdcoder\/followers","following_url":"https:\/\/api.github.com\/users\/dhruvdcoder\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/dhruvdcoder\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/dhruvdcoder\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/dhruvdcoder\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/dhruvdcoder\/orgs","repos_url":"https:\/\/api.github.com\/users\/dhruvdcoder\/repos","events_url":"https:\/\/api.github.com\/users\/dhruvdcoder\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/dhruvdcoder\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2025-03-12T21:41:05Z","updated_at":"2025-07-09T23:04:57Z","closed_at":"2025-03-14T10:50:10Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nWhen `torchdata.stateful_dataloader.StatefulDataloader(persistent_workers=True)` the epochs after resuming only iterate through the examples that were left in the epoch when the training was interrupted. For example, in the script below training is interrupted on step 124 (epoch 1) when 3 batches are left. Then after resuming, the rest of epochs (2 and 3) only iterate through these 3 batches.\n\n### Steps to reproduce the bug\n\nRun the following script with and with PERSISTENT_WORKERS=true.\n\n```python\n# !\/usr\/bin\/env python3\n# torch==2.5.1\n# datasets==3.3.2\n# torchdata>=0.9.0\nimport datasets\nimport pprint\nfrom torchdata.stateful_dataloader import StatefulDataLoader\n\nimport os\n\nPERSISTENT_WORKERS = (\n os.environ.get(\"PERSISTENT_WORKERS\", \"False\").lower() == \"true\"\n)\n\n# PERSISTENT_WORKERS = True # Incorrect resume\n\n\n# ds = datasets.load_from_disk(\"dataset\").to_iterable_dataset(num_shards=4)\ndef generator():\n for i in range(128):\n yield {\"x\": i}\n\n\nds = datasets.Dataset.from_generator(\n generator, features=datasets.Features({\"x\": datasets.Value(\"int32\")})\n).to_iterable_dataset(num_shards=4)\n\ndl = StatefulDataLoader(\n ds, batch_size=2, num_workers=2, persistent_workers=PERSISTENT_WORKERS\n)\nglobal_step = 0\nepoch = 0\nds_state_dict = None\nstate_dict = None\nresumed = False\nwhile True:\n if epoch >= 3:\n break\n if state_dict is not None:\n dl.load_state_dict(state_dict)\n state_dict = None\n ds_state_dict = None\n resumed = True\n print(\"resumed\")\n for i, batch in enumerate(dl):\n print(f\"epoch: {epoch}, global_step: {global_step}, batch: {batch}\")\n global_step += 1 # consume datapoint\n # simulate error\n if global_step == 124 and not resumed:\n ds_state_dict = ds.state_dict()\n state_dict = dl.state_dict()\n print(\"checkpoint\")\n print(\"ds_state_dict\")\n pprint.pprint(ds_state_dict)\n print(\"dl_state_dict\")\n pprint.pprint(state_dict)\n break\n\n if state_dict is None:\n ds.set_epoch(epoch)\n epoch += 1\n```\n\nThe script checkpoints when there are three batches left in the second epoch. After resuming, only the last three batches are repeated in the rest of the epochs.\n\nIf it helps, following are the two state_dicts for the dataloader save at the same step with the two settings. The left one is for `PERSISTENT_WORKERS=False`\n\n![Image](https:\/\/github.com\/user-attachments\/assets\/c97d6502-d7bd-4ef4-ae2d-66fe1a9732b1)\n\n### Expected behavior\n\nAll the elements in the dataset should be iterated through in the epochs following the one where we resumed. The expected behavior can be seen by setting `PERSISTENT_WORKERS=False`. \n\n### Environment info\n\ntorch==2.5.1\ndatasets==3.3.2\ntorchdata>=0.9.0","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7447\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7447\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7446","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7446\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7446\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7446\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7446","id":2913050552,"node_id":"I_kwDODunzps6toZ-4","number":7446,"title":"pyarrow.lib.ArrowTypeError: Expected dict key of type str or bytes, got 'int'","user":{"login":"rangehow","id":88258534,"node_id":"MDQ6VXNlcjg4MjU4NTM0","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/88258534?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/rangehow","html_url":"https:\/\/github.com\/rangehow","followers_url":"https:\/\/api.github.com\/users\/rangehow\/followers","following_url":"https:\/\/api.github.com\/users\/rangehow\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/rangehow\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/rangehow\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/rangehow\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/rangehow\/orgs","repos_url":"https:\/\/api.github.com\/users\/rangehow\/repos","events_url":"https:\/\/api.github.com\/users\/rangehow\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/rangehow\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-03-12T07:48:37Z","updated_at":"2025-07-04T05:14:45Z","closed_at":"2025-07-04T05:14:45Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nA dict with its keys are all str but get following error\n```python\ntest_data=[{'input_ids':[1,2,3],'labels':[[Counter({2:1})]]}]\ndataset = datasets.Dataset.from_list(test_data)\n```\n```bash\npyarrow.lib.ArrowTypeError: Expected dict key of type str or bytes, got 'int'\n```\n\n### Steps to reproduce the bug\n\n.\n\n### Expected behavior\n\n.\n\n### Environment info\n\ndatasets 3.3.2","closed_by":{"login":"rangehow","id":88258534,"node_id":"MDQ6VXNlcjg4MjU4NTM0","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/88258534?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/rangehow","html_url":"https:\/\/github.com\/rangehow","followers_url":"https:\/\/api.github.com\/users\/rangehow\/followers","following_url":"https:\/\/api.github.com\/users\/rangehow\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/rangehow\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/rangehow\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/rangehow\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/rangehow\/orgs","repos_url":"https:\/\/api.github.com\/users\/rangehow\/repos","events_url":"https:\/\/api.github.com\/users\/rangehow\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/rangehow\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7446\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7446\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7445","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7445\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7445\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7445\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7445","id":2911507923,"node_id":"PR_kwDODunzps6ONygU","number":7445,"title":"Fix small bugs with async map","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-03-11T18:30:57Z","updated_at":"2025-03-13T10:38:03Z","closed_at":"2025-03-13T10:37:58Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7445","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7445","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7445.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7445.patch","merged_at":"2025-03-13T10:37:58Z"},"body":"helpful for the next PR to enable parallel image\/audio\/video decoding and make multimodal datasets go brr (e.g. for lerobot)\r\n\r\n- fix with_indices\r\n- fix resuming with save_state_dict() \/ load_state_dict() - omg that wasn't easy\r\n- remove unnecessary decoding in map() to enable parallelism in FormattedExampleIterable later\r\n\r\nsmall bonus: keeping features in batch()","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7445\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7445\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7444","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7444\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7444\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7444\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7444","id":2911202445,"node_id":"I_kwDODunzps6thWyN","number":7444,"title":"Excessive warnings when resuming an IterableDataset+buffered shuffle+DDP.","user":{"login":"dhruvdcoder","id":4356534,"node_id":"MDQ6VXNlcjQzNTY1MzQ=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/4356534?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/dhruvdcoder","html_url":"https:\/\/github.com\/dhruvdcoder","followers_url":"https:\/\/api.github.com\/users\/dhruvdcoder\/followers","following_url":"https:\/\/api.github.com\/users\/dhruvdcoder\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/dhruvdcoder\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/dhruvdcoder\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/dhruvdcoder\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/dhruvdcoder\/orgs","repos_url":"https:\/\/api.github.com\/users\/dhruvdcoder\/repos","events_url":"https:\/\/api.github.com\/users\/dhruvdcoder\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/dhruvdcoder\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-03-11T16:34:39Z","updated_at":"2025-05-13T09:41:03Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI have a large dataset that I shared into 1024 shards and save on the disk during pre-processing. During training, I load the dataset using load_from_disk() and convert it into an iterable dataset, shuffle it and split the shards to different DDP nodes using the recommended method.\n\nHowever, when the training is resumed mid-epoch, I get thousands of identical warning messages:\n\n```\nLoading a state dict of a shuffle buffer of a dataset without the buffer content.The shuffle buffer will be refilled before starting to yield new examples.\n```\n\n\n\n### Steps to reproduce the bug\n\n1. Run a multi-node training job using the following python script and interrupt the training after a few seconds to save a mid-epoch checkpoint.\n\n```python\n#!\/usr\/bin\/env python\nimport os\nimport time\nfrom typing import Dict, List\nimport torch\nimport lightning as pl\nfrom torch.utils.data import DataLoader\nfrom datasets import Dataset\nfrom datasets.distributed import split_dataset_by_node\nimport datasets\nfrom transformers import AutoTokenizer\nfrom more_itertools import flatten, chunked\nfrom torchdata.stateful_dataloader import StatefulDataLoader\nfrom lightning.pytorch.callbacks.on_exception_checkpoint import (\n OnExceptionCheckpoint,\n)\n\ndatasets.logging.set_verbosity_debug()\n\n\ndef dummy_generator():\n # Generate 60 examples: integers from $0$ to $59$\n # 64 sequences of different lengths\n dataset = [\n list(range(3, 10)),\n list(range(10, 15)),\n list(range(15, 21)),\n list(range(21, 27)),\n list(range(27, 31)),\n list(range(31, 36)),\n list(range(36, 45)),\n list(range(45, 50)),\n ]\n for i in range(8):\n for j, ids in enumerate(dataset):\n yield {\"token_ids\": [idx + i * 50 for idx in ids]}\n\n\ndef group_texts(\n examples: Dict[str, List[List[int]]],\n block_size: int,\n eos_token_id: int,\n bos_token_id: int,\n pad_token_id: int,\n) -> Dict[str, List[List[int]]]:\n real_block_size = block_size - 2 # make space for bos and eos\n # colapse the sequences into a single list of tokens and then create blocks of real_block_size\n input_ids = []\n attention_mask = []\n for block in chunked(flatten(examples[\"token_ids\"]), real_block_size):\n s = [bos_token_id] + list(block) + [eos_token_id]\n ls = len(s)\n attn = [True] * ls\n s += [pad_token_id] * (block_size - ls)\n attn += [False] * (block_size - ls)\n input_ids.append(s)\n attention_mask.append(attn)\n\n return {\"input_ids\": input_ids, \"attention_mask\": attention_mask}\n\n\ndef collate_fn(batch):\n return {\n \"input_ids\": torch.tensor(\n [item[\"input_ids\"] for item in batch], dtype=torch.long\n ),\n \"attention_mask\": torch.tensor(\n [item[\"attention_mask\"] for item in batch], dtype=torch.long\n ),\n }\n\n\nclass DummyModule(pl.LightningModule):\n\n def __init__(self):\n super().__init__()\n # A dummy linear layer (not used for actual computation)\n self.layer = torch.nn.Linear(1, 1)\n self.ds = None\n self.prepare_data_per_node = False\n\n def on_train_start(self):\n # This hook is called once training begins on each process.\n print(f\"[Rank {self.global_rank}] Training started.\", flush=True)\n self.data_file = open(f\"data_{self.global_rank}.txt\", \"w\")\n\n def on_train_end(self):\n self.data_file.close()\n\n def training_step(self, batch, batch_idx):\n # Print batch information to verify data loading.\n time.sleep(5)\n # print(\"batch\", batch, flush=True)\n print(\n f\"\\n[Rank {self.global_rank}] Training step, epoch {self.trainer.current_epoch}, batch {batch_idx}: {batch['input_ids']}\",\n flush=True,\n )\n self.data_file.write(\n f\"[Rank {self.global_rank}] Training step, epoch {self.trainer.current_epoch}, batch {batch_idx}: {batch['input_ids']}\\n\"\n )\n # Compute a dummy loss (here, simply a constant tensor)\n loss = torch.tensor(0.0, requires_grad=True)\n return loss\n\n def on_train_epoch_start(self):\n epoch = self.trainer.current_epoch\n print(\n f\"[Rank {self.global_rank}] Training epoch {epoch} started.\",\n flush=True,\n )\n self.data_file.write(\n f\"[Rank {self.global_rank}] Training epoch {epoch} started.\\n\"\n )\n\n def configure_optimizers(self):\n # Return a dummy optimizer.\n return torch.optim.SGD(self.parameters(), lr=0.001)\n\n\nclass DM(pl.LightningDataModule):\n def __init__(self):\n super().__init__()\n self.ds = None\n self.prepare_data_per_node = False\n\n def set_epoch(self, epoch: int):\n self.ds.set_epoch(epoch)\n\n def prepare_data(self):\n # download the dataset\n dataset = Dataset.from_generator(dummy_generator)\n # save the dataset\n dataset.save_to_disk(\"dataset\", num_shards=4)\n\n def setup(self, stage: str):\n # load the dataset\n ds = datasets.load_from_disk(\"dataset\").to_iterable_dataset(\n num_shards=4\n )\n ds = ds.map(\n group_texts,\n batched=True,\n batch_size=5,\n fn_kwargs={\n \"block_size\": 5,\n \"eos_token_id\": 1,\n \"bos_token_id\": 0,\n \"pad_token_id\": 2,\n },\n remove_columns=[\"token_ids\"],\n ).shuffle(seed=42, buffer_size=8)\n ds = split_dataset_by_node(\n ds,\n rank=self.trainer.global_rank,\n world_size=self.trainer.world_size,\n )\n self.ds = ds\n\n def train_dataloader(self):\n print(\n f\"[Rank {self.trainer.global_rank}] Preparing train_dataloader...\",\n flush=True,\n )\n rank = self.trainer.global_rank\n print(\n f\"[Rank {rank}] Global rank: {self.trainer.global_rank}\",\n flush=True,\n )\n world_size = self.trainer.world_size\n print(f\"[Rank {rank}] World size: {world_size}\", flush=True)\n return StatefulDataLoader(\n self.ds,\n batch_size=2,\n num_workers=2,\n collate_fn=collate_fn,\n drop_last=True,\n persistent_workers=True,\n )\n\n\nif __name__ == \"__main__\":\n print(\"Starting Lightning training\", flush=True)\n # Optionally, print some SLURM environment info for debugging.\n print(f\"SLURM_NNODES: {os.environ.get('SLURM_NNODES', '1')}\", flush=True)\n\n # Determine the number of nodes from SLURM (defaulting to 1 if not set)\n num_nodes = int(os.environ.get(\"SLURM_NNODES\", \"1\"))\n model = DummyModule()\n dm = DM()\n on_exception = OnExceptionCheckpoint(\n dirpath=\"checkpoints\",\n filename=\"on_exception\",\n )\n\n # Configure the Trainer to use distributed data parallel (DDP).\n trainer = pl.Trainer(\n accelerator=\"gpu\" if torch.cuda.is_available() else \"cpu\",\n devices=1,\n strategy=(\n \"ddp\" if num_nodes > 1 else \"auto\"\n ), # Use DDP strategy for multi-node training.\n num_nodes=num_nodes,\n max_epochs=2,\n logger=False,\n enable_checkpointing=True,\n num_sanity_val_steps=0,\n enable_progress_bar=False,\n callbacks=[on_exception],\n )\n\n # resume (uncomment to resume)\n # trainer.fit(model, datamodule=dm, ckpt_path=\"checkpoints\/on_exception.ckpt\")\n # train\n\n trainer.fit(model, datamodule=dm)\n```\n\n\n\n```bash\n#!\/bin\/bash\n#SBATCH --job-name=pl_ddp_test\n#SBATCH --nodes=2 # Adjust number of nodes as needed\n#SBATCH --ntasks-per-node=1 # One GPU (process) per node\n#SBATCH --cpus-per-task=3 # At least as many dataloader workers as required\n#SBATCH --gres=gpu:1 # Request one GPU per node\n#SBATCH --time=00:10:00 # Job runtime (adjust as needed)\n#SBATCH --partition=gpu-preempt # Partition or queue name\n#SBATCH -o script.out\n\n# Disable Python output buffering.\nexport PYTHONUNBUFFERED=1\n\necho \"SLURM job starting on $(date)\"\necho \"Running on nodes: $SLURM_NODELIST\"\necho \"Current directory: $(pwd)\"\nls -l\n\n# Launch the script using srun so that each process starts the Lightning module.\nsrun script.py\n```\n2. Uncomment the \"resume\" line (second to last) and comment the original `trainer.fit` call (last line). \nIt will produce the following log.\n```\n[Rank 0] Preparing train_dataloader...\n[Rank 0] Global rank: 0\n[Rank 0] World size: 2\n[Rank 1] Preparing train_dataloader...\n[Rank 1] Global rank: 1\n[Rank 1] World size: 2\nLoading a state dict of a shuffle buffer of a dataset without the buffer content.The shuffle buffer will be refilled before starting to yield new examples.\nLoading a state dict of a shuffle buffer of a dataset without the buffer content.The shuffle buffer will be refilled before starting to yield new examples.\nLoading a state dict of a shuffle buffer of a dataset without the buffer content.The shuffle buffer will be refilled before starting to yield new examples.\nAssigning 2 shards (or data sources) of the dataset to each node.\nLoading a state dict of a shuffle buffer of a dataset without the buffer content.The shuffle buffer will be refilled before starting to yield new examples.\nLoading a state dict of a shuffle buffer of a dataset without the buffer content.The shuffle buffer will be refilled before starting to yield new examples.\nnode#0 dataloader worker#1, ': Starting to iterate over 1\/2 shards.\nLoading a state dict of a shuffle buffer of a dataset without the buffer content.The shuffle buffer will be refilled before starting to yield new examples.\nnode#0 dataloader worker#0, ': Starting to iterate over 1\/2 shards.\nLoading a state dict of a shuffle buffer of a dataset without the buffer content.The shuffle buffer will be refilled before starting to yield new examples.\nSet __getitem__(key) output type to arrow for no columns (when key is int or slice) and don't output other (un-formatted) columns.\nSet __getitem__(key) output type to arrow for no columns (when key is int or slice) and don't output other (un-formatted) columns.\nnode#0 dataloader worker#1, ': Finished iterating over 1\/1 shards.\nnode#0 dataloader worker#0, ': Finished iterating over 1\/1 shards.\nLoading a state dict of a shuffle buffer of a dataset without the buffer content.The shuffle buffer will be refilled before starting to yield new examples.\n[Rank 0] Training started.\n[Rank 0] Training epoch 0 started.\n[Rank 0] Training epoch 1 started.\nAssigning 2 shards (or data sources) of the dataset to each node.\nLoading a state dict of a shuffle buffer of a dataset without the buffer content.The shuffle buffer will be refilled before starting to yield new examples.\nLoading a state dict of a shuffle buffer of a dataset without the buffer content.The shuffle buffer will be refilled before starting to yield new examples.\nnode#0 dataloader worker#1, ': Starting to iterate over 1\/2 shards.\nnode#0 dataloader worker#0, ': Starting to iterate over 1\/2 shards.\nLoading a state dict of a shuffle buffer of a dataset without the buffer content.The shuffle buffer will be refilled before starting to yield new examples.\nLoading a state dict of a shuffle buffer of a dataset without the buffer content.The shuffle buffer will be refilled before starting to yield new examples.\nLoading a state dict of a shuffle buffer of a dataset without the buffer content.The shuffle buffer will be refilled before starting to yield new examples.\nLoading a state dict of a shuffle buffer of a dataset without the buffer content.The shuffle buffer will be refilled before starting to yield new examples.\nnode#1 dataloader worker#1, ': Starting to iterate over 1\/2 shards.\nLoading a state dict of a shuffle buffer of a dataset without the buffer content.The shuffle buffer will be refilled before starting to yield new examples.\nnode#1 dataloader worker#0, ': Starting to iterate over 1\/2 shards.\nLoading a state dict of a shuffle buffer of a dataset without the buffer content.The shuffle buffer will be refilled before starting to yield new examples.\nSet __getitem__(key) output type to arrow for no columns (when key is int or slice) and don't output other (un-formatted) columns.\nSet __getitem__(key) output type to arrow for no columns (when key is int or slice) and don't output other (un-formatted) columns.\nnode#0 dataloader worker#1, ': Finished iterating over 1\/1 shards.\nnode#0 dataloader worker#0, ': Finished iterating over 1\/1 shards.\n`Trainer.fit` stopped: `max_epochs=2` reached.\nSet __getitem__(key) output type to arrow for no columns (when key is int or slice) and don't output other (un-formatted) columns.\nSet __getitem__(key) output type to arrow for no columns (when key is int or slice) and don't output other (un-formatted) columns.\nnode#1 dataloader worker#1, ': Finished iterating over 1\/1 shards.\nnode#1 dataloader worker#0, ': Finished iterating over 1\/1 shards.\n[Rank 1] Training started.\n[Rank 1] Training epoch 0 started.\n[Rank 1] Training epoch 1 started.\nLoading a state dict of a shuffle buffer of a dataset without the buffer content.The shuffle buffer will be refilled before starting to yield new examples.\nLoading a state dict of a shuffle buffer of a dataset without the buffer content.The shuffle buffer will be refilled before starting to yield new examples.\nnode#1 dataloader worker#1, ': Starting to iterate over 1\/2 shards.\nnode#1 dataloader worker#0, ': Starting to iterate over 1\/2 shards.\nLoading a state dict of a shuffle buffer of a dataset without the buffer content.The shuffle buffer will be refilled before starting to yield new examples.\nLoading a state dict of a shuffle buffer of a dataset without the buffer content.The shuffle buffer will be refilled before starting to yield new examples.\nSet __getitem__(key) output type to arrow for no columns (when key is int or slice) and don't output other (un-formatted) columns.\nSet __getitem__(key) output type to arrow for no columns (when key is int or slice) and don't output other (un-formatted) columns.\nnode#1 dataloader worker#0, ': Finished iterating over 1\/1 shards.\nnode#1 dataloader worker#1, ': Finished iterating over 1\/1 shards.\n```\n\nI'm also attaching the relevant state_dict to make sure that the state is being checkpointed as expected.\n\n```\n{'_iterator_finished': True,\n '_snapshot': {'_last_yielded_worker_id': 1,\n '_main_snapshot': {'_IterableDataset_len_called': None,\n '_base_seed': 3992758080362545099,\n '_index_sampler_state': {'samples_yielded': 64},\n '_num_workers': 2,\n '_sampler_iter_state': None,\n '_sampler_iter_yielded': 32,\n '_shared_seed': None},\n '_snapshot_step': 32,\n '_worker_snapshots': {'worker_0': {'dataset_state': {'ex_iterable': {'shard_example_idx': 0,\n 'shard_idx': 1},\n 'num_examples_since_previous_state': 0,\n 'previous_state': {'shard_example_idx': 0,\n 'shard_idx': 1},\n 'previous_state_example_idx': 33},\n 'fetcher_state': {'dataset_iter_state': None,\n 'fetcher_ended': False},\n 'worker_id': 0},\n 'worker_1': {'dataset_state': {'ex_iterable': {'shard_example_idx': 0,\n 'shard_idx': 1},\n 'num_examples_since_previous_state': 0,\n 'previous_state': {'shard_example_idx': 0,\n 'shard_idx': 1},\n 'previous_state_example_idx': 33},\n 'fetcher_state': {'dataset_iter_state': None,\n 'fetcher_ended': False},\n 'worker_id': 1}}},\n '_steps_since_snapshot': 0}\n```\n\n### Expected behavior\n\nSince I'm following all the recommended steps, I don't expect to see any warning when resuming. Am I doing something wrong? Also, can someone explain why I'm seeing 20 identical messages in the log in this reproduction setting? I'm trying to understand why I see thousands of these messages with the actual dataset. \n\nOne more surprising thing I noticed in the logs is the change in a number of shards per worker. In the following messages, the denominator changes from 2 to 1. \n\n```\nnode#1 dataloader worker#1, ': Starting to iterate over 1\/2 shards.\n...\nnode#1 dataloader worker#1, ': Finished iterating over 1\/1 shards.\n```\n\n### Environment info\n\npython: 3.11.10\ndatasets: 3.3.2\nlightning: 2.3.1\n\n","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7444\/reactions","total_count":1,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7444\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7443","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7443\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7443\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7443\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7443","id":2908585656,"node_id":"I_kwDODunzps6tXX64","number":7443,"title":"index error when num_shards > len(dataset)","user":{"login":"eminorhan","id":17934496,"node_id":"MDQ6VXNlcjE3OTM0NDk2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/17934496?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/eminorhan","html_url":"https:\/\/github.com\/eminorhan","followers_url":"https:\/\/api.github.com\/users\/eminorhan\/followers","following_url":"https:\/\/api.github.com\/users\/eminorhan\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/eminorhan\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/eminorhan\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/eminorhan\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/eminorhan\/orgs","repos_url":"https:\/\/api.github.com\/users\/eminorhan\/repos","events_url":"https:\/\/api.github.com\/users\/eminorhan\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/eminorhan\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-03-10T22:40:59Z","updated_at":"2025-03-10T23:43:08Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"In `ds.push_to_hub()` and `ds.save_to_disk()`, `num_shards` must be smaller than or equal to the number of rows in the dataset, but currently this is not checked anywhere inside these functions. Attempting to invoke these functions with `num_shards > len(dataset)` should raise an informative `ValueError`.\n\nI frequently work with datasets with a small number of rows where each row is pretty large, so I often encounter this issue, where the function runs until the shard index in `ds.shard(num_shards, indx)` goes out of bounds. Ideally, a `ValueError` should be raised before reaching this point (i.e. as soon as `ds.push_to_hub()` or `ds.save_to_disk()` is invoked with `num_shards > len(dataset)`).\n\nIt seems that adding something like:\n```python\nif len(self) < num_shards:\n raise ValueError(f\"num_shards ({num_shards}) must be smaller than or equal to the number of rows in the dataset ({len(self)}). Please either reduce num_shards or increase max_shard_size to make sure num_shards <= len(dataset).\")\n```\nto the beginning of the definition of the `ds.shard()` function [here](https:\/\/github.com\/huggingface\/datasets\/blob\/f693f4e93aabafa878470c80fd42ddb10ec550d6\/src\/datasets\/arrow_dataset.py#L4728) would deal with this issue for both `ds.push_to_hub()` and `ds.save_to_disk()`, but I'm not exactly sure if this is the best place to raise the `ValueError` (it seems that a more correct way to do it would be to write separate checks for `ds.push_to_hub()` and `ds.save_to_disk()`). I'd be happy to submit a PR if you think something along these lines would be acceptable.","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7443\/reactions","total_count":1,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7443\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7442","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7442\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7442\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7442\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7442","id":2905543017,"node_id":"I_kwDODunzps6tLxFp","number":7442,"title":"Flexible Loader","user":{"login":"dipta007","id":13894030,"node_id":"MDQ6VXNlcjEzODk0MDMw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/13894030?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/dipta007","html_url":"https:\/\/github.com\/dipta007","followers_url":"https:\/\/api.github.com\/users\/dipta007\/followers","following_url":"https:\/\/api.github.com\/users\/dipta007\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/dipta007\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/dipta007\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/dipta007\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/dipta007\/orgs","repos_url":"https:\/\/api.github.com\/users\/dipta007\/repos","events_url":"https:\/\/api.github.com\/users\/dipta007\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/dipta007\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2025-03-09T16:55:03Z","updated_at":"2025-03-27T23:58:17Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nCan we have a utility function that will use `load_from_disk` when given the local path and `load_dataset` if given an HF dataset?\n\nIt can be something as simple as this one:\n\n```\ndef load_hf_dataset(path_or_name):\n if os.path.exists(path_or_name):\n return load_from_disk(path_or_name)\n else:\n return load_dataset(path_or_name)\n```\n\n### Motivation\n\nThis can be done inside the user codebase, too, but in my experience, it becomes repetitive code.\n\n### Your contribution\n\nI can open a pull request.","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7442\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7442\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7441","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7441\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7441\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7441\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7441","id":2904702329,"node_id":"I_kwDODunzps6tIj15","number":7441,"title":"`drop_last_batch` does not drop the last batch using IterableDataset + interleave_datasets + multi_worker","user":{"login":"memray","id":4197249,"node_id":"MDQ6VXNlcjQxOTcyNDk=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/4197249?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/memray","html_url":"https:\/\/github.com\/memray","followers_url":"https:\/\/api.github.com\/users\/memray\/followers","following_url":"https:\/\/api.github.com\/users\/memray\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/memray\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/memray\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/memray\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/memray\/orgs","repos_url":"https:\/\/api.github.com\/users\/memray\/repos","events_url":"https:\/\/api.github.com\/users\/memray\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/memray\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-03-08T10:28:44Z","updated_at":"2025-03-09T21:27:33Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nSee the script below\n`drop_last_batch=True` is defined using map() for each dataset. \nThe last batch for each dataset is expected to be dropped, id 21-25.\nThe code behaves as expected when num_workers=0 or 1.\nWhen using num_workers>1, 'a-11', 'b-11', 'a-12', 'b-12' are gone and instead 21 and 22 are sampled.\n\n### Steps to reproduce the bug\n\n```\nfrom datasets import Dataset\nfrom datasets import interleave_datasets\nfrom torch.utils.data import DataLoader\n\ndef convert_to_str(batch, dataset_name):\n batch['a'] = [f\"{dataset_name}-{e}\" for e in batch['a']]\n return batch\n\ndef gen1():\n for ii in range(1, 25):\n yield {\"a\": ii}\n\ndef gen2():\n for ii in range(1, 25):\n yield {\"a\": ii}\n\n# https:\/\/github.com\/huggingface\/datasets\/issues\/6565\nif __name__ == '__main__':\n dataset1 = Dataset.from_generator(gen1).to_iterable_dataset(num_shards=2)\n dataset2 = Dataset.from_generator(gen2).to_iterable_dataset(num_shards=2)\n dataset1 = dataset1.map(lambda x: convert_to_str(x, dataset_name=\"a\"), batched=True, batch_size=10, drop_last_batch=True)\n dataset2 = dataset2.map(lambda x: convert_to_str(x, dataset_name=\"b\"), batched=True, batch_size=10, drop_last_batch=True)\n\n interleaved = interleave_datasets([dataset1, dataset2], stopping_strategy=\"all_exhausted\")\n\n print(f\"num_workers=0\")\n loader = DataLoader(interleaved, batch_size=5, num_workers=0)\n i = 0\n for b in loader:\n print(i, b['a'])\n i += 1\n\n print('=-' * 20)\n print(f\"num_workers=1\")\n loader = DataLoader(interleaved, batch_size=5, num_workers=1)\n i = 0\n for b in loader:\n print(i, b['a'])\n i += 1\n\n print('=-' * 20)\n print(f\"num_workers=2\")\n loader = DataLoader(interleaved, batch_size=5, num_workers=2)\n i = 0\n for b in loader:\n print(i, b['a'])\n i += 1\n\n print('=-' * 20)\n print(f\"num_workers=3\")\n loader = DataLoader(interleaved, batch_size=5, num_workers=3)\n i = 0\n for b in loader:\n print(i, b['a'])\n i += 1\n```\n\n\noutput is:\n```\nnum_workers=0\n0 ['a-1', 'b-1', 'a-2', 'b-2', 'a-3']\n1 ['b-3', 'a-4', 'b-4', 'a-5', 'b-5']\n2 ['a-6', 'b-6', 'a-7', 'b-7', 'a-8']\n3 ['b-8', 'a-9', 'b-9', 'a-10', 'b-10']\n4 ['a-11', 'b-11', 'a-12', 'b-12', 'a-13']\n5 ['b-13', 'a-14', 'b-14', 'a-15', 'b-15']\n6 ['a-16', 'b-16', 'a-17', 'b-17', 'a-18']\n7 ['b-18', 'a-19', 'b-19', 'a-20', 'b-20']\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\nnum_workers=1\n0 ['a-1', 'b-1', 'a-2', 'b-2', 'a-3']\n1 ['b-3', 'a-4', 'b-4', 'a-5', 'b-5']\n2 ['a-6', 'b-6', 'a-7', 'b-7', 'a-8']\n3 ['b-8', 'a-9', 'b-9', 'a-10', 'b-10']\n4 ['a-11', 'b-11', 'a-12', 'b-12', 'a-13']\n5 ['b-13', 'a-14', 'b-14', 'a-15', 'b-15']\n6 ['a-16', 'b-16', 'a-17', 'b-17', 'a-18']\n7 ['b-18', 'a-19', 'b-19', 'a-20', 'b-20']\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\nnum_workers=2\n0 ['a-1', 'b-1', 'a-2', 'b-2', 'a-3']\n1 ['a-13', 'b-13', 'a-14', 'b-14', 'a-15']\n2 ['b-3', 'a-4', 'b-4', 'a-5', 'b-5']\n3 ['b-15', 'a-16', 'b-16', 'a-17', 'b-17']\n4 ['a-6', 'b-6', 'a-7', 'b-7', 'a-8']\n5 ['a-18', 'b-18', 'a-19', 'b-19', 'a-20']\n6 ['b-8', 'a-9', 'b-9', 'a-10', 'b-10']\n7 ['b-20', 'a-21', 'b-21', 'a-22', 'b-22']\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\nnum_workers=3\nToo many dataloader workers: 3 (max is dataset.num_shards=2). Stopping 1 dataloader workers.\n0 ['a-1', 'b-1', 'a-2', 'b-2', 'a-3']\n1 ['a-13', 'b-13', 'a-14', 'b-14', 'a-15']\n2 ['b-3', 'a-4', 'b-4', 'a-5', 'b-5']\n3 ['b-15', 'a-16', 'b-16', 'a-17', 'b-17']\n4 ['a-6', 'b-6', 'a-7', 'b-7', 'a-8']\n5 ['a-18', 'b-18', 'a-19', 'b-19', 'a-20']\n6 ['b-8', 'a-9', 'b-9', 'a-10', 'b-10']\n7 ['b-20', 'a-21', 'b-21', 'a-22', 'b-22']\n\n\n```\n\n### Expected behavior\n\n`'a-21', 'b-21', 'a-22', 'b-22'` should be dropped\n\n### Environment info\n\n- `datasets` version: 3.3.2\n- Platform: Linux-5.15.0-1056-aws-x86_64-with-glibc2.31\n- Python version: 3.10.16\n- `huggingface_hub` version: 0.28.0\n- PyArrow version: 19.0.0\n- Pandas version: 2.2.3\n- `fsspec` version: 2024.6.1\n","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7441\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7441\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7440","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7440\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7440\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7440\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7440","id":2903740662,"node_id":"I_kwDODunzps6tE5D2","number":7440,"title":"IterableDataset raises FileNotFoundError instead of retrying","user":{"login":"bauwenst","id":145220868,"node_id":"U_kgDOCKflBA","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/145220868?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/bauwenst","html_url":"https:\/\/github.com\/bauwenst","followers_url":"https:\/\/api.github.com\/users\/bauwenst\/followers","following_url":"https:\/\/api.github.com\/users\/bauwenst\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/bauwenst\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/bauwenst\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/bauwenst\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/bauwenst\/orgs","repos_url":"https:\/\/api.github.com\/users\/bauwenst\/repos","events_url":"https:\/\/api.github.com\/users\/bauwenst\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/bauwenst\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2025-03-07T19:14:18Z","updated_at":"2025-07-22T08:15:44Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nIn https:\/\/github.com\/huggingface\/datasets\/issues\/6843 it was noted that the streaming feature of `datasets` is highly susceptible to outages and doesn't back off for long (or even *at all*).\n\nI was training a model while streaming SlimPajama and training crashed with a `FileNotFoundError`. I can only assume that this was due to a momentary outage considering the file in question, `train\/chunk9\/example_train_3889.jsonl.zst`, [exists like all other files in SlimPajama](https:\/\/huggingface.co\/datasets\/cerebras\/SlimPajama-627B\/blob\/main\/train\/chunk9\/example_train_3889.jsonl.zst).\n```python\n...\n File \"\/miniconda3\/envs\/draft\/lib\/python3.11\/site-packages\/datasets\/iterable_dataset.py\", line 2226, in __iter__\n for key, example in ex_iterable:\n File \"\/miniconda3\/envs\/draft\/lib\/python3.11\/site-packages\/datasets\/iterable_dataset.py\", line 1499, in __iter__\n for x in self.ex_iterable:\n File \"\/miniconda3\/envs\/draft\/lib\/python3.11\/site-packages\/datasets\/iterable_dataset.py\", line 1067, in __iter__\n yield from self._iter()\n File \"\/miniconda3\/envs\/draft\/lib\/python3.11\/site-packages\/datasets\/iterable_dataset.py\", line 1231, in _iter\n for key, transformed_example in iter_outputs():\n File \"\/miniconda3\/envs\/draft\/lib\/python3.11\/site-packages\/datasets\/iterable_dataset.py\", line 1207, in iter_outputs\n for i, key_example in inputs_iterator:\n File \"\/miniconda3\/envs\/draft\/lib\/python3.11\/site-packages\/datasets\/iterable_dataset.py\", line 1111, in iter_inputs\n for key, example in iterator:\n File \"\/miniconda3\/envs\/draft\/lib\/python3.11\/site-packages\/datasets\/iterable_dataset.py\", line 371, in __iter__\n for key, pa_table in self.generate_tables_fn(**gen_kwags):\n File \"\/miniconda3\/envs\/draft\/lib\/python3.11\/site-packages\/datasets\/packaged_modules\/json\/json.py\", line 99, in _generate_tables\n for file_idx, file in enumerate(itertools.chain.from_iterable(files)):\n File \"\/miniconda3\/envs\/draft\/lib\/python3.11\/site-packages\/datasets\/utils\/track.py\", line 50, in __iter__\n for x in self.generator(*self.args):\n File \"\/miniconda3\/envs\/draft\/lib\/python3.11\/site-packages\/datasets\/utils\/file_utils.py\", line 1378, in _iter_from_urlpaths\n raise FileNotFoundError(urlpath)\nFileNotFoundError: zstd:\/\/example_train_3889.jsonl::hf:\/\/datasets\/cerebras\/SlimPajama-627B@2d0accdd58c5d5511943ca1f5ff0e3eb5e293543\/train\/chunk9\/example_train_3889.jsonl.zst\n```\n\nThat final `raise` is at the bottom of the following snippet:\nhttps:\/\/github.com\/huggingface\/datasets\/blob\/f693f4e93aabafa878470c80fd42ddb10ec550d6\/src\/datasets\/utils\/file_utils.py#L1354-L1379\n\nSo clearly, something choked up in `xisfile`.\n\n### Steps to reproduce the bug\n\nThis happens when streaming a dataset and iterating over it. In my case, that iteration is done in Trainer's `inner_training_loop`, but this is not relevant to the iterator.\n```python\n File \"\/miniconda3\/envs\/draft\/lib\/python3.11\/site-packages\/accelerate\/data_loader.py\", line 835, in __iter__\n next_batch, next_batch_info = self._fetch_batches(main_iterator)\n```\n\n\n### Expected behavior\n\n\nThis bug and the linked issue have one thing in common: *when streaming fails to retrieve an example, the entire program gives up and crashes*. As users, we cannot even protect ourselves from this: when we are iterating over a dataset, we can't make `datasets` skip over a bad example or wait a little longer to retry the iteration, because when a Python generator\/iterator raises an error, it loses all its context. \n\nIn other words: if you have something that looks like `for b in a: for c in b: for d in c:`, errors in the innermost loop can only be caught by a `try ... except` in `c.__iter__()`. There should be such exception handling in `datasets` and it should have a **configurable exponential back-off**: first wait and retry after 1 minute, then 2 minutes, then 4 minutes, then 8 minutes, ... and after a given amount of retries, **skip the bad example**, and **only after** skipping a given amount of examples, give up and crash. This was requested in https:\/\/github.com\/huggingface\/datasets\/issues\/6843 too, since currently there is only linear backoff *and* it is clearly not applied to `xisfile`.\n\n\n### Environment info\n\n- `datasets` version: 3.3.2 *(the latest version)*\n- Platform: Linux-4.18.0-513.24.1.el8_9.x86_64-x86_64-with-glibc2.28\n- Python version: 3.11.7\n- `huggingface_hub` version: 0.26.5\n- PyArrow version: 15.0.0\n- Pandas version: 2.2.0\n- `fsspec` version: 2024.10.0","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7440\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7440\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7439","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7439\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7439\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7439\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7439","id":2900143289,"node_id":"PR_kwDODunzps6NoCdD","number":7439,"title":"Fix multi gpu process example","user":{"login":"SwayStar123","id":46050679,"node_id":"MDQ6VXNlcjQ2MDUwNjc5","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/46050679?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/SwayStar123","html_url":"https:\/\/github.com\/SwayStar123","followers_url":"https:\/\/api.github.com\/users\/SwayStar123\/followers","following_url":"https:\/\/api.github.com\/users\/SwayStar123\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/SwayStar123\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/SwayStar123\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/SwayStar123\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/SwayStar123\/orgs","repos_url":"https:\/\/api.github.com\/users\/SwayStar123\/repos","events_url":"https:\/\/api.github.com\/users\/SwayStar123\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/SwayStar123\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-03-06T11:29:19Z","updated_at":"2025-03-06T17:07:28Z","closed_at":"2025-03-06T17:06:38Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7439","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7439","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7439.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7439.patch","merged_at":null},"body":"to is not an inplace function.\r\n\r\nBut i am not sure about this code anyway, i think this is modifying the global variable `model` everytime the function is called? Which is on every batch? So it is juggling the same model on every gpu right? Isnt that very inefficient? ","closed_by":{"login":"SwayStar123","id":46050679,"node_id":"MDQ6VXNlcjQ2MDUwNjc5","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/46050679?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/SwayStar123","html_url":"https:\/\/github.com\/SwayStar123","followers_url":"https:\/\/api.github.com\/users\/SwayStar123\/followers","following_url":"https:\/\/api.github.com\/users\/SwayStar123\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/SwayStar123\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/SwayStar123\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/SwayStar123\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/SwayStar123\/orgs","repos_url":"https:\/\/api.github.com\/users\/SwayStar123\/repos","events_url":"https:\/\/api.github.com\/users\/SwayStar123\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/SwayStar123\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7439\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7439\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7438","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7438\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7438\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7438\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7438","id":2899209484,"node_id":"PR_kwDODunzps6Nk37h","number":7438,"title":"Allow dataset row indexing with np.int types (#7423)","user":{"login":"DavidRConnell","id":35470740,"node_id":"MDQ6VXNlcjM1NDcwNzQw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/35470740?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/DavidRConnell","html_url":"https:\/\/github.com\/DavidRConnell","followers_url":"https:\/\/api.github.com\/users\/DavidRConnell\/followers","following_url":"https:\/\/api.github.com\/users\/DavidRConnell\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/DavidRConnell\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/DavidRConnell\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/DavidRConnell\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/DavidRConnell\/orgs","repos_url":"https:\/\/api.github.com\/users\/DavidRConnell\/repos","events_url":"https:\/\/api.github.com\/users\/DavidRConnell\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/DavidRConnell\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2025-03-06T03:10:43Z","updated_at":"2025-07-23T17:56:22Z","closed_at":"2025-07-23T16:44:42Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7438","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7438","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7438.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7438.patch","merged_at":"2025-07-23T16:44:42Z"},"body":"@lhoestq \r\nProposed fix for #7423. Added a couple simple tests as requested. I had some test failures related to Java and pyspark even when installing with dev but these don't seem to be related to the changes here and fail for me even on clean main.\r\n\r\nThe typeerror raised when using the wrong type is: \"Wrong key type: '{key}' of type '{type(key)}'. Expected one of int, slice, range, str or Iterable.\" I think that is fine. But I could modify the int part to something more generic (although I'm not sure what) if wanted.","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7438\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7438\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7437","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7437\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7437\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7437\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7437","id":2899104679,"node_id":"PR_kwDODunzps6Nkhla","number":7437,"title":"Use pyupgrade --py39-plus for remaining files","user":{"login":"cyyever","id":17618148,"node_id":"MDQ6VXNlcjE3NjE4MTQ4","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/17618148?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/cyyever","html_url":"https:\/\/github.com\/cyyever","followers_url":"https:\/\/api.github.com\/users\/cyyever\/followers","following_url":"https:\/\/api.github.com\/users\/cyyever\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/cyyever\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/cyyever\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/cyyever\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/cyyever\/orgs","repos_url":"https:\/\/api.github.com\/users\/cyyever\/repos","events_url":"https:\/\/api.github.com\/users\/cyyever\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/cyyever\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-03-06T02:12:25Z","updated_at":"2025-07-30T08:34:34Z","closed_at":null,"author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7437","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7437","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7437.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7437.patch","merged_at":null},"body":"This work follows #7428. And \"requires-python\" is set in pyproject.toml","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7437\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7437\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7436","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7436\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7436\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7436\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7436","id":2898385725,"node_id":"PR_kwDODunzps6NiArv","number":7436,"title":"chore: fix typos","user":{"login":"afuetterer","id":35225576,"node_id":"MDQ6VXNlcjM1MjI1NTc2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/35225576?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/afuetterer","html_url":"https:\/\/github.com\/afuetterer","followers_url":"https:\/\/api.github.com\/users\/afuetterer\/followers","following_url":"https:\/\/api.github.com\/users\/afuetterer\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/afuetterer\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/afuetterer\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/afuetterer\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/afuetterer\/orgs","repos_url":"https:\/\/api.github.com\/users\/afuetterer\/repos","events_url":"https:\/\/api.github.com\/users\/afuetterer\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/afuetterer\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-03-05T20:17:54Z","updated_at":"2025-04-28T14:00:09Z","closed_at":"2025-04-28T13:51:26Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7436","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7436","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7436.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7436.patch","merged_at":"2025-04-28T13:51:26Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7436\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7436\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7435","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7435\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7435\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7435\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7435","id":2895536956,"node_id":"PR_kwDODunzps6NYUnr","number":7435,"title":"Refactor `string_to_dict` to return `None` if there is no match instead of raising `ValueError`","user":{"login":"ringohoffman","id":27844407,"node_id":"MDQ6VXNlcjI3ODQ0NDA3","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/27844407?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ringohoffman","html_url":"https:\/\/github.com\/ringohoffman","followers_url":"https:\/\/api.github.com\/users\/ringohoffman\/followers","following_url":"https:\/\/api.github.com\/users\/ringohoffman\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ringohoffman\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ringohoffman\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ringohoffman\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ringohoffman\/orgs","repos_url":"https:\/\/api.github.com\/users\/ringohoffman\/repos","events_url":"https:\/\/api.github.com\/users\/ringohoffman\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ringohoffman\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2025-03-04T22:01:20Z","updated_at":"2025-03-12T16:52:00Z","closed_at":"2025-03-12T16:52:00Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7435","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7435","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7435.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7435.patch","merged_at":"2025-03-12T16:51:59Z"},"body":"Making this change, as encouraged here:\r\n\r\n* https:\/\/github.com\/huggingface\/datasets\/pull\/7434#discussion_r1979933054\r\n\r\ninstead of having the pattern of using `try`-`except` to handle when there is no match, we can instead check if the return value is `None`; we can also assert that the return value should not be `None` if we know that should be true","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7435\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7435\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7434","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7434\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7434\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7434\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7434","id":2893075908,"node_id":"PR_kwDODunzps6NP-vn","number":7434,"title":"Refactor `Dataset.map` to reuse cache files mapped with different `num_proc`","user":{"login":"ringohoffman","id":27844407,"node_id":"MDQ6VXNlcjI3ODQ0NDA3","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/27844407?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ringohoffman","html_url":"https:\/\/github.com\/ringohoffman","followers_url":"https:\/\/api.github.com\/users\/ringohoffman\/followers","following_url":"https:\/\/api.github.com\/users\/ringohoffman\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ringohoffman\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ringohoffman\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ringohoffman\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ringohoffman\/orgs","repos_url":"https:\/\/api.github.com\/users\/ringohoffman\/repos","events_url":"https:\/\/api.github.com\/users\/ringohoffman\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ringohoffman\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2025-03-04T06:12:37Z","updated_at":"2025-05-14T10:45:10Z","closed_at":"2025-05-12T15:14:08Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7434","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7434","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7434.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7434.patch","merged_at":"2025-05-12T15:14:08Z"},"body":"Fixes #7433\r\n\r\nThis refactor unifies `num_proc is None or num_proc == 1` and `num_proc > 1`; instead of handling them completely separately where one uses a list of kwargs and shards and the other just uses a single set of kwargs and `self`, by wrapping the `num_proc == 1` case in a list and making the difference just whether or not you use a pool, you set up either case to be able to load each other's cache files just by changing `num_shards`; `num_proc == 1` can sequentially load the shards of a dataset mapped `num_shards > 1` and map any missing shards\r\n\r\nOther than the structural refactor, the main contribution of this PR is `existing_cache_file_map`, which uses a regex of `cache_file_name` and `suffix_template` to find existing cache files, grouped by their `num_shards`; using this data structure, we can reset `num_shards` to an existing set of cache files, and load them accordingly","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7434\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7434\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7433","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7433\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7433\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7433\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7433","id":2890240400,"node_id":"I_kwDODunzps6sRZGQ","number":7433,"title":"`Dataset.map` ignores existing caches and remaps when ran with different `num_proc`","user":{"login":"ringohoffman","id":27844407,"node_id":"MDQ6VXNlcjI3ODQ0NDA3","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/27844407?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ringohoffman","html_url":"https:\/\/github.com\/ringohoffman","followers_url":"https:\/\/api.github.com\/users\/ringohoffman\/followers","following_url":"https:\/\/api.github.com\/users\/ringohoffman\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ringohoffman\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ringohoffman\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ringohoffman\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ringohoffman\/orgs","repos_url":"https:\/\/api.github.com\/users\/ringohoffman\/repos","events_url":"https:\/\/api.github.com\/users\/ringohoffman\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ringohoffman\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-03-03T05:51:26Z","updated_at":"2025-05-12T15:14:09Z","closed_at":"2025-05-12T15:14:09Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nIf you `map` a dataset and save it to a specific `cache_file_name` with a specific `num_proc`, and then call map again with that same existing `cache_file_name` but a different `num_proc`, the dataset will be re-mapped.\n\n### Steps to reproduce the bug\n\n1. Download a dataset\n```python\nimport datasets\n\ndataset = datasets.load_dataset(\"ylecun\/mnist\")\n```\n\n```\nGenerating train split: 100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 60000\/60000 [00:00<00:00, 116429.85 examples\/s]\nGenerating test split: 100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 10000\/10000 [00:00<00:00, 103310.27 examples\/s]\n```\n\n2. `map` and cache it with a specific `num_proc`\n\n```python\ncache_file_name=\".\/cache\/train.map\"\ndataset[\"train\"].map(lambda x: x, cache_file_name=cache_file_name, num_proc=2)\n```\n\n```\nMap (num_proc=2): 100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 60000\/60000 [00:01<00:00, 53764.03 examples\/s]\n```\n\n3. `map` it with a different `num_proc` and the same `cache_file_name` as before\n\n```python\ndataset[\"train\"].map(lambda x: x, cache_file_name=cache_file_name, num_proc=3)\n```\n\n```\nMap (num_proc=3): 100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 60000\/60000 [00:00<00:00, 65377.12 examples\/s]\n```\n\n### Expected behavior\n\nIf I specify an existing `cache_file_name`, I don't expect using a different `num_proc` than the one that was used to generate it to cause the dataset to have be be re-mapped.\n\n### Environment info\n\n```console\n$ datasets-cli env\n\n- `datasets` version: 3.3.2\n- Platform: Linux-5.15.0-131-generic-x86_64-with-glibc2.35\n- Python version: 3.10.16\n- `huggingface_hub` version: 0.29.1\n- PyArrow version: 19.0.1\n- Pandas version: 2.2.3\n- `fsspec` version: 2024.12.0\n```","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7433\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7433\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7432","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7432\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7432\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7432\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7432","id":2887717289,"node_id":"PR_kwDODunzps6M-DI0","number":7432,"title":"Fix type annotation","user":{"login":"NeilGirdhar","id":730137,"node_id":"MDQ6VXNlcjczMDEzNw==","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/730137?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/NeilGirdhar","html_url":"https:\/\/github.com\/NeilGirdhar","followers_url":"https:\/\/api.github.com\/users\/NeilGirdhar\/followers","following_url":"https:\/\/api.github.com\/users\/NeilGirdhar\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/NeilGirdhar\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/NeilGirdhar\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/NeilGirdhar\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/NeilGirdhar\/orgs","repos_url":"https:\/\/api.github.com\/users\/NeilGirdhar\/repos","events_url":"https:\/\/api.github.com\/users\/NeilGirdhar\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/NeilGirdhar\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-02-28T17:28:20Z","updated_at":"2025-03-04T15:53:03Z","closed_at":"2025-03-04T15:53:03Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7432","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7432","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7432.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7432.patch","merged_at":null},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7432\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7432\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7431","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7431\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7431\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7431\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7431","id":2887244074,"node_id":"I_kwDODunzps6sF9kq","number":7431,"title":"Issues with large Datasets","user":{"login":"nikitabelooussovbtis","id":106806889,"node_id":"U_kgDOBl2-aQ","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/106806889?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/nikitabelooussovbtis","html_url":"https:\/\/github.com\/nikitabelooussovbtis","followers_url":"https:\/\/api.github.com\/users\/nikitabelooussovbtis\/followers","following_url":"https:\/\/api.github.com\/users\/nikitabelooussovbtis\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/nikitabelooussovbtis\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/nikitabelooussovbtis\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/nikitabelooussovbtis\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/nikitabelooussovbtis\/orgs","repos_url":"https:\/\/api.github.com\/users\/nikitabelooussovbtis\/repos","events_url":"https:\/\/api.github.com\/users\/nikitabelooussovbtis\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/nikitabelooussovbtis\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2025-02-28T14:05:22Z","updated_at":"2025-03-04T15:02:26Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nIf the coco annotation file is too large the dataset will not be able to load it, not entirely sure were the issue is but I am guessing it is due to the code trying to load it all as one line into a dataframe. This was for object detections.\n\nMy current work around is the following code but would be nice to be able to do it without worrying about it also probably there is a better way of doing it:\n`\n dataset_dict = json.load(open(\".\/local_data\/annotations\/train.json\"))\n df = pd.DataFrame(columns=['images', 'annotations', 'categories'])\n df = df._append({'images': dataset_dict['images'], 'annotations': dataset_dict['annotations'], 'categories': dataset_dict['categories']}, ignore_index=True)\n train=Dataset.from_pandas(df)\n\n dataset_dict = json.load(open(\".\/local_data\/annotations\/validation.json\"))\n df = pd.DataFrame(columns=['images', 'annotations', 'categories'])\n df = df._append({'images': dataset_dict['images'], 'annotations': dataset_dict['annotations'],\n 'categories': dataset_dict['categories']}, ignore_index=True)\n val = Dataset.from_pandas(df)\n dataset_dict = json.load(open(\".\/local_data\/annotations\/test.json\"))\n df = pd.DataFrame(columns=['images', 'annotations', 'categories'])\n df = df._append({'images': dataset_dict['images'], 'annotations': dataset_dict['annotations'],\n 'categories': dataset_dict['categories']}, ignore_index=True)\n test = Dataset.from_pandas(df)\n dataset = DatasetDict({'train': train, 'validation': val, 'test': test})\n`\n\n### Steps to reproduce the bug\n\n1) step up directory in and have the json files in coco format\n\n-local_data\n|-images\n|---1.jpg\n|---2.jpg\n|---....\n|---n.jpg\n|-annotations\n|---test.json\n|---train.json\n|---validation.json\n\n2) try to load local_data into a dataset if the file is larger than about 300kb it will cause an error.\n\n### Expected behavior\n\nThat it loads the jsons preferably in the same format as it has done with a smaller size.\n\n### Environment info\n\n- `datasets` version: 3.3.3.dev0\n- Platform: Linux-6.11.0-17-generic-x86_64-with-glibc2.39\n- Python version: 3.12.3\n- `huggingface_hub` version: 0.29.0\n- PyArrow version: 19.0.1\n- Pandas version: 2.2.3\n- `fsspec` version: 2024.12.0\n","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7431\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7431\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7430","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7430\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7430\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7430\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7430","id":2886922573,"node_id":"I_kwDODunzps6sEvFN","number":7430,"title":"Error in code \"Time to slice and dice\" from course \"NLP Course\"","user":{"login":"Yurkmez","id":122965300,"node_id":"U_kgDOB1RNNA","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/122965300?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Yurkmez","html_url":"https:\/\/github.com\/Yurkmez","followers_url":"https:\/\/api.github.com\/users\/Yurkmez\/followers","following_url":"https:\/\/api.github.com\/users\/Yurkmez\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Yurkmez\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Yurkmez\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Yurkmez\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Yurkmez\/orgs","repos_url":"https:\/\/api.github.com\/users\/Yurkmez\/repos","events_url":"https:\/\/api.github.com\/users\/Yurkmez\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Yurkmez\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-02-28T11:36:10Z","updated_at":"2025-03-05T11:32:47Z","closed_at":"2025-03-03T17:52:15Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nWhen we execute code \n```\nfrequencies = (\n train_df[\"condition\"]\n .value_counts()\n .to_frame()\n .reset_index()\n .rename(columns={\"index\": \"condition\", \"condition\": \"frequency\"})\n)\nfrequencies.head()\n```\nanswer should be like this\n\ncondition | frequency\nbirth control | 27655\ndepression | 8023\nacne | 5209\nanxiety | 4991\npain | 4744\n\nbut he is different\n\nfrequency | count\nbirth control | 27655\ndepression | 8023\nacne | 5209\nanxiety | 4991\npain | 4744\n\nthis is not correct, correct code\n```\nfrequencies = (\n train_df[\"condition\"]\n .value_counts()\n .to_frame()\n .reset_index()\n .rename(columns={\"index\": \"condition\", \"count\": \"frequency\"})\n)\n````\n\n### Steps to reproduce the bug\n\n```\nfrequencies = (\ntrain_df[\"condition\"]\n.value_counts()\n.to_frame()\n.reset_index()\n.rename(columns={\"index\": \"condition\", \"condition\": \"frequency\"})\n)\nfrequencies.head()\n```\n\n### Expected behavior\n\n\ncondition | frequency\nbirth control | 27655\ndepression | 8023\nacne | 5209\nanxiety | 4991\npain | 4744\n\n### Environment info\n\nGoogle Colab","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7430\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7430\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7429","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7429\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7429\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7429\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7429","id":2886806513,"node_id":"PR_kwDODunzps6M67Jd","number":7429,"title":"Improved type annotation","user":{"login":"saiden89","id":45285915,"node_id":"MDQ6VXNlcjQ1Mjg1OTE1","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/45285915?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/saiden89","html_url":"https:\/\/github.com\/saiden89","followers_url":"https:\/\/api.github.com\/users\/saiden89\/followers","following_url":"https:\/\/api.github.com\/users\/saiden89\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/saiden89\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/saiden89\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/saiden89\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/saiden89\/orgs","repos_url":"https:\/\/api.github.com\/users\/saiden89\/repos","events_url":"https:\/\/api.github.com\/users\/saiden89\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/saiden89\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2025-02-28T10:39:10Z","updated_at":"2025-05-15T12:27:17Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7429","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7429","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7429.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7429.patch","merged_at":null},"body":"I've refined several type annotations throughout the codebase to align with current best practices and enhance overall clarity. Given the complexity of the code, there may still be areas that need further attention. I welcome any feedback or suggestions to make these improvements even better.\r\n\r\n - Fixes #7202 ","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7429\/reactions","total_count":2,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":2,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7429\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7428","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7428\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7428\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7428\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7428","id":2886111651,"node_id":"PR_kwDODunzps6M4kW8","number":7428,"title":"Use pyupgrade --py39-plus","user":{"login":"cyyever","id":17618148,"node_id":"MDQ6VXNlcjE3NjE4MTQ4","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/17618148?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/cyyever","html_url":"https:\/\/github.com\/cyyever","followers_url":"https:\/\/api.github.com\/users\/cyyever\/followers","following_url":"https:\/\/api.github.com\/users\/cyyever\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/cyyever\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/cyyever\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/cyyever\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/cyyever\/orgs","repos_url":"https:\/\/api.github.com\/users\/cyyever\/repos","events_url":"https:\/\/api.github.com\/users\/cyyever\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/cyyever\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2025-02-28T03:39:44Z","updated_at":"2025-03-22T00:51:20Z","closed_at":"2025-03-05T15:04:16Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7428","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7428","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7428.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7428.patch","merged_at":"2025-03-05T15:04:16Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7428\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7428\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7427","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7427\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7427\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7427\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7427","id":2886032571,"node_id":"I_kwDODunzps6sBVy7","number":7427,"title":"Error splitting the input into NAL units.","user":{"login":"MengHao666","id":47114466,"node_id":"MDQ6VXNlcjQ3MTE0NDY2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/47114466?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/MengHao666","html_url":"https:\/\/github.com\/MengHao666","followers_url":"https:\/\/api.github.com\/users\/MengHao666\/followers","following_url":"https:\/\/api.github.com\/users\/MengHao666\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/MengHao666\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/MengHao666\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/MengHao666\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/MengHao666\/orgs","repos_url":"https:\/\/api.github.com\/users\/MengHao666\/repos","events_url":"https:\/\/api.github.com\/users\/MengHao666\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/MengHao666\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-02-28T02:30:15Z","updated_at":"2025-03-04T01:40:28Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\n\nI am trying to finetune qwen2.5-vl on 16 * 80G GPUS, and I use `LLaMA-Factory` and set `preprocessing_num_workers=16`. However, I met the following error and the program seem to got crush. It seems that the error come from `datasets` library\n\nThe error logging is like following:\n```text\nConverting format of dataset (num_proc=16): 100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2589| 19265\/19267 [11:44<00:00, 5.88 examples\/s]\nConverting format of dataset (num_proc=16): 100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2589| 19266\/19267 [11:44<00:00, 5.02 examples\/s]\nConverting format of dataset (num_proc=16): 100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 19267\/19267 [11:44<00:00, 5.44 examples\/s]\nConverting format of dataset (num_proc=16): 100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 19267\/19267 [11:44<00:00, 27.34 examples\/s]\n\nRunning tokenizer on dataset (num_proc=16): 0%| | 0\/19267 [00:00 35540).\nInvalid NAL unit size (86720 > 54856).\nInvalid NAL unit size (7131 > 3225).\nmissing picture in access unit with size 54860\nInvalid NAL unit size (48042 > 33645).\nmissing picture in access unit with size 3229\nmissing picture in access unit with size 33649\nInvalid NAL unit size (86720 > 54856).\nInvalid NAL unit size (48042 > 33645).\nError splitting the input into NAL units.\nmissing picture in access unit with size 35544\nInvalid NAL unit size (45405 > 35540).\nError splitting the input into NAL units.\nError splitting the input into NAL units.\nInvalid NAL unit size (8187 > 7069).\nmissing picture in access unit with size 7073\nInvalid NAL unit size (8187 > 7069).\nError splitting the input into NAL units.\nInvalid NAL unit size (7131 > 3225).\nError splitting the input into NAL units.\nInvalid NAL unit size (14013 > 5998).\nmissing picture in access unit with size 6002\nInvalid NAL unit size (14013 > 5998).\nError splitting the input into NAL units.\nInvalid NAL unit size (17173 > 7231).\nmissing picture in access unit with size 7235\nInvalid NAL unit size (17173 > 7231).\nError splitting the input into NAL units.\nInvalid NAL unit size (16964 > 6055).\nmissing picture in access unit with size 6059\nInvalid NAL unit size (16964 > 6055).\nException in thread Thread-9 (accepter)Error splitting the input into NAL units.\n:\nTraceback (most recent call last):\n File \"\/opt\/conda\/envs\/python3.10.13\/lib\/python3.10\/threading.py\", line 1016, in _bootstrap_inner\n\nRunning tokenizer on dataset (num_proc=16): 0%| | 0\/19267 [13:22 2927).\nmissing picture in access unit with size 2931\nself._target(*self._args, **self._kwargs)\n File \"\/opt\/conda\/envs\/python3.10.13\/lib\/python3.10\/site-packages\/multiprocess\/managers.py\", line 194, in accepter\nInvalid NAL unit size (7032 > 2927).\nError splitting the input into NAL units.\n t.start()\n File \"\/opt\/conda\/envs\/python3.10.13\/lib\/python3.10\/threading.py\", line 935, in start\n Invalid NAL unit size (28973 > 6121).\nmissing picture in access unit with size 6125\n_start_new_thread(self._bootstrap, ())Invalid NAL unit size (28973 > 6121).\n\nRuntimeError: can't start new threadError splitting the input into NAL units.\n\nInvalid NAL unit size (4411 > 296).\nmissing picture in access unit with size 300\nInvalid NAL unit size (4411 > 296).\nError splitting the input into NAL units.\nInvalid NAL unit size (14414 > 1471).\nmissing picture in access unit with size 1475\nInvalid NAL unit size (14414 > 1471).\nError splitting the input into NAL units.\nInvalid NAL unit size (5283 > 1792).\nmissing picture in access unit with size 1796\nInvalid NAL unit size (5283 > 1792).\nError splitting the input into NAL units.\nInvalid NAL unit size (79147 > 10042).\nmissing picture in access unit with size 10046\nInvalid NAL unit size (79147 > 10042).\nError splitting the input into NAL units.\nInvalid NAL unit size (45405 > 35540).\nInvalid NAL unit size (86720 > 54856).\nInvalid NAL unit size (7131 > 3225).\nmissing picture in access unit with size 54860\nInvalid NAL unit size (48042 > 33645).\nmissing picture in access unit with size 3229\nmissing picture in access unit with size 33649\nInvalid NAL unit size (86720 > 54856).\nInvalid NAL unit size (48042 > 33645).\nError splitting the input into NAL units.\nmissing picture in access unit with size 35544\nInvalid NAL unit size (45405 > 35540).\nError splitting the input into NAL units.\nError splitting the input into NAL units.\nInvalid NAL unit size (8187 > 7069).\nmissing picture in access unit with size 7073\nInvalid NAL unit size (8187 > 7069).\nError splitting the input into NAL units.\nInvalid NAL unit size (7131 > 3225).\nError splitting the input into NAL units.\nInvalid NAL unit size (14013 > 5998).\nmissing picture in access unit with size 6002\nInvalid NAL unit size (14013 > 5998).\nError splitting the input into NAL units.\nInvalid NAL unit size (17173 > 7231).\nmissing picture in access unit with size 7235\nInvalid NAL unit size (17173 > 7231).\nError splitting the input into NAL units.\nInvalid NAL unit size (16964 > 6055).\nmissing picture in access unit with size 6059\nInvalid NAL unit size (16964 > 6055).\nException in thread Thread-9 (accepter)Error splitting the input into NAL units.\n:\nTraceback (most recent call last):\n File \"\/opt\/conda\/envs\/python3.10.13\/lib\/python3.10\/threading.py\", line 1016, in _bootstrap_inner\n\nRunning tokenizer on dataset (num_proc=16): 0%| | 0\/19267 [13:22 2927).\nmissing picture in access unit with size 2931\nself._target(*self._args, **self._kwargs)\n File \"\/opt\/conda\/envs\/python3.10.13\/lib\/python3.10\/site-packages\/multiprocess\/managers.py\", line 194, in accepter\nInvalid NAL unit size (7032 > 2927).\nError splitting the input into NAL units.\n t.start()\n File \"\/opt\/conda\/envs\/python3.10.13\/lib\/python3.10\/threading.py\", line 935, in start\n Invalid NAL unit size (28973 > 6121).\nmissing picture in access unit with size 6125\n_start_new_thread(self._bootstrap, ())Invalid NAL unit size (28973 > 6121).\n\nRuntimeError: can't start new threadError splitting the input into NAL units.\n\nInvalid NAL unit size (4411 > 296).\nmissing picture in access unit with size 300\nInvalid NAL unit size (4411 > 296).\nError splitting the input into NAL units.\nInvalid NAL unit size (14414 > 1471).\nmissing picture in access unit with size 1475\nInvalid NAL unit size (14414 > 1471).\nError splitting the input into NAL units.\nInvalid NAL unit size (5283 > 1792).\nmissing picture in access unit with size 1796\nInvalid NAL unit size (5283 > 1792).\nError splitting the input into NAL units.\nInvalid NAL unit size (79147 > 10042).\nmissing picture in access unit with size 10046\nInvalid NAL unit size (79147 > 10042).\nError splitting the input into NAL units.\nInvalid NAL unit size (45405 > 35540).\nInvalid NAL unit size (86720 > 54856).\nInvalid NAL unit size (7131 > 3225).\nmissing picture in access unit with size 54860\nInvalid NAL unit size (48042 > 33645).\nmissing picture in access unit with size 3229\nmissing picture in access unit with size 33649\nInvalid NAL unit size (86720 > 54856).\nInvalid NAL unit size (48042 > 33645).\nError splitting the input into NAL units.\nmissing picture in access unit with size 35544\nInvalid NAL unit size (45405 > 35540).\nError splitting the input into NAL units.\nError splitting the input into NAL units.\nInvalid NAL unit size (8187 > 7069).\nmissing picture in access unit with size 7073\nInvalid NAL unit size (8187 > 7069).\nError splitting the input into NAL units.\nInvalid NAL unit size (7131 > 3225).\nError splitting the input into NAL units.\nInvalid NAL unit size (14013 > 5998).\nmissing picture in access unit with size 6002\nInvalid NAL unit size (14013 > 5998).\nError splitting the input into NAL units.\nInvalid NAL unit size (17173 > 7231).\nmissing picture in access unit with size 7235\nInvalid NAL unit size (17173 > 7231).\nError splitting the input into NAL units.\nInvalid NAL unit size (16964 > 6055).\nmissing picture in access unit with size 6059\nInvalid NAL unit size (16964 > 6055).\nException in thread Thread-9 (accepter)Error splitting the input into NAL units.\n:\nTraceback (most recent call last):\n File \"\/opt\/conda\/envs\/python3.10.13\/lib\/python3.10\/threading.py\", line 1016, in _bootstrap_inner\n\nRunning tokenizer on dataset (num_proc=16): 0%| | 0\/19267 [13:22 2927).\nmissing picture in access unit with size 2931\nself._target(*self._args, **self._kwargs)\n File \"\/opt\/conda\/envs\/python3.10.13\/lib\/python3.10\/site-packages\/multiprocess\/managers.py\", line 194, in accepter\nInvalid NAL unit size (7032 > 2927).\nError splitting the input into NAL units.\n t.start()\n File \"\/opt\/conda\/envs\/python3.10.13\/lib\/python3.10\/threading.py\", line 935, in start\n Invalid NAL unit size (28973 > 6121).\nmissing picture in access unit with size 6125\n_start_new_thread(self._bootstrap, ())Invalid NAL unit size (28973 > 6121).\n\nRuntimeError: can't start new threadError splitting the input into NAL units.\n\nInvalid NAL unit size (4411 > 296).\nmissing picture in access unit with size 300\nInvalid NAL unit size (4411 > 296).\nError splitting the input into NAL units.\nInvalid NAL unit size (14414 > 1471).\nmissing picture in access unit with size 1475\nInvalid NAL unit size (14414 > 1471).\nError splitting the input into NAL units.\nInvalid NAL unit size (5283 > 1792).\nmissing picture in access unit with size 1796\nInvalid NAL unit size (5283 > 1792).\nError splitting the input into NAL units.\nInvalid NAL unit size (79147 > 10042).\nmissing picture in access unit with size 10046\nInvalid NAL unit size (79147 > 10042).\nError splitting the input into NAL units.\nInvalid NAL unit size (45405 > 35540).\nInvalid NAL unit size (86720 > 54856).\nInvalid NAL unit size (7131 > 3225).\nmissing picture in access unit with size 54860\nInvalid NAL unit size (48042 > 33645).\nmissing picture in access unit with size 3229\nmissing picture in access unit with size 33649\nInvalid NAL unit size (86720 > 54856).\nInvalid NAL unit size (48042 > 33645).\nError splitting the input into NAL units.\nmissing picture in access unit with size 35544\nInvalid NAL unit size (45405 > 35540).\nError splitting the input into NAL units.\nError splitting the input into NAL units.\nInvalid NAL unit size (8187 > 7069).\nmissing picture in access unit with size 7073\nInvalid NAL unit size (8187 > 7069).\nError splitting the input into NAL units.\nInvalid NAL unit size (7131 > 3225).\nError splitting the input into NAL units.\nInvalid NAL unit size (14013 > 5998).\nmissing picture in access unit with size 6002\nInvalid NAL unit size (14013 > 5998).\nError splitting the input into NAL units.\nInvalid NAL unit size (17173 > 7231).\nmissing picture in access unit with size 7235\nInvalid NAL unit size (17173 > 7231).\nError splitting the input into NAL units.\nInvalid NAL unit size (16964 > 6055).\nmissing picture in access unit with size 6059\nInvalid NAL unit size (16964 > 6055).\nException in thread Thread-9 (accepter)Error splitting the input into NAL units.\n:\nTraceback (most recent call last):\n File \"\/opt\/conda\/envs\/python3.10.13\/lib\/python3.10\/threading.py\", line 1016, in _bootstrap_inner\n\nRunning tokenizer on dataset (num_proc=16): 0%| | 0\/19267 [13:22 2927).\nmissing picture in access unit with size 2931\nself._target(*self._args, **self._kwargs)\n File \"\/opt\/conda\/envs\/python3.10.13\/lib\/python3.10\/site-packages\/multiprocess\/managers.py\", line 194, in accepter\nInvalid NAL unit size (7032 > 2927).\nError splitting the input into NAL units.\n t.start()\n File \"\/opt\/conda\/envs\/python3.10.13\/lib\/python3.10\/threading.py\", line 935, in start\n Invalid NAL unit size (28973 > 6121).\nmissing picture in access unit with size 6125\n_start_new_thread(self._bootstrap, ())Invalid NAL unit size (28973 > 6121).\n\nRuntimeError: can't start new threadError splitting the input into NAL units.\n\nInvalid NAL unit size (4411 > 296).\nmissing picture in access unit with size 300\nInvalid NAL unit size (4411 > 296).\nError splitting the input into NAL units.\nInvalid NAL unit size (14414 > 1471).\nmissing picture in access unit with size 1475\nInvalid NAL unit size (14414 > 1471).\nError splitting the input into NAL units.\nInvalid NAL unit size (5283 > 1792).\nmissing picture in access unit with size 1796\nInvalid NAL unit size (5283 > 1792).\nError splitting the input into NAL units.\nInvalid NAL unit size (79147 > 10042).\nmissing picture in access unit with size 10046\nInvalid NAL unit size (79147 > 10042).\nError splitting the input into NAL units.\n\n```\n\n\n### Others\n\n_No response_\n\n### Steps to reproduce the bug\n\nNone\n\n### Expected behavior\n\nexcpect to run successfully\n\n### Environment info\n\n```\ntransformers==4.49.0\ndatasets==3.2.0\naccelerate==1.2.1\npeft==0.12.0\ntrl==0.9.6\ntokenizers==0.21.0\ngradio>=4.38.0,<=5.18.0\npandas>=2.0.0\nscipy\neinops\nsentencepiece\ntiktoken\nprotobuf\nuvicorn\npydantic\nfastapi\nsse-starlette\nmatplotlib>=3.7.0\nfire\npackaging\npyyaml\nnumpy<2.0.0\nav\nlibrosa\ntyro<0.9.0\nopenlm-hub\nqwen-vl-utils\n\n```","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7427\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7427\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7426","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7426\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7426\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7426\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7426","id":2883754507,"node_id":"PR_kwDODunzps6Mwe6B","number":7426,"title":"fix: None default with bool type on load creates typing error","user":{"login":"stephantul","id":8882233,"node_id":"MDQ6VXNlcjg4ODIyMzM=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8882233?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/stephantul","html_url":"https:\/\/github.com\/stephantul","followers_url":"https:\/\/api.github.com\/users\/stephantul\/followers","following_url":"https:\/\/api.github.com\/users\/stephantul\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/stephantul\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/stephantul\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/stephantul\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/stephantul\/orgs","repos_url":"https:\/\/api.github.com\/users\/stephantul\/repos","events_url":"https:\/\/api.github.com\/users\/stephantul\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/stephantul\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-02-27T08:11:36Z","updated_at":"2025-03-04T15:53:40Z","closed_at":"2025-03-04T15:53:40Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7426","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7426","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7426.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7426.patch","merged_at":"2025-03-04T15:53:40Z"},"body":"Hello!\r\n\r\nPyright flags any use of `load_dataset` as an error, because the default for `trust_remote_code` is `None`, but the function is typed as `bool`, not `Optional[bool]`. I changed the type and docstrings to reflect this, but no other code was touched.\r\n\r\n","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7426\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7426\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7425","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7425\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7425\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7425\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7425","id":2883684686,"node_id":"I_kwDODunzps6r4YlO","number":7425,"title":"load_dataset(\"livecodebench\/code_generation_lite\", version_tag=\"release_v2\") TypeError: 'NoneType' object is not callable","user":{"login":"dshwei","id":42167236,"node_id":"MDQ6VXNlcjQyMTY3MjM2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42167236?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/dshwei","html_url":"https:\/\/github.com\/dshwei","followers_url":"https:\/\/api.github.com\/users\/dshwei\/followers","following_url":"https:\/\/api.github.com\/users\/dshwei\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/dshwei\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/dshwei\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/dshwei\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/dshwei\/orgs","repos_url":"https:\/\/api.github.com\/users\/dshwei\/repos","events_url":"https:\/\/api.github.com\/users\/dshwei\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/dshwei\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2025-02-27T07:36:02Z","updated_at":"2025-03-27T05:05:33Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nfrom datasets import load_dataset\nlcb_codegen = load_dataset(\"livecodebench\/code_generation_lite\", version_tag=\"release_v2\")\n\nor\nconfigs = get_dataset_config_names(\"livecodebench\/code_generation_lite\", trust_remote_code=True)\n\nboth error:\nTraceback (most recent call last):\nFile \"\", line 1, in\nFile \"\/workspace\/miniconda\/envs\/grpo\/lib\/python3.10\/site-packages\/datasets\/load.py\", line 2131, in load_dataset\nbuilder_instance = load_dataset_builder(\nFile \"\/workspace\/miniconda\/envs\/grpo\/lib\/python3.10\/site-packages\/datasets\/load.py\", line 1888, in load_dataset_builder\nbuilder_instance: DatasetBuilder = builder_cls(\nTypeError: 'NoneType' object is not callable\n\n### Steps to reproduce the bug\n\nfrom datasets import get_dataset_config_names\n\nconfigs = get_dataset_config_names(\"livecodebench\/code_generation_lite\", trust_remote_code=True)\nOR \nlcb_codegen = load_dataset(\"livecodebench\/code_generation_lite\", version_tag=\"release_v2\")\n\n### Expected behavior\n\nload datasets livecodebench\/code_generation_lite\n\n\n### Environment info\n\n import datasets\nversion '3.3.2'","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7425\/reactions","total_count":1,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":1},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7425\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7424","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7424\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7424\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7424\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7424","id":2882663621,"node_id":"PR_kwDODunzps6Ms1Qx","number":7424,"title":"Faster folder based builder + parquet support + allow repeated media + use torchvideo","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-02-26T19:55:18Z","updated_at":"2025-03-05T18:51:00Z","closed_at":"2025-03-05T17:41:23Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7424","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7424","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7424.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7424.patch","merged_at":"2025-03-05T17:41:22Z"},"body":"This will be useful for LeRobotDataset (robotics datasets for [lerobot](https:\/\/github.com\/huggingface\/lerobot) based on videos)\r\n\r\nImpacted builders:\r\n- ImageFolder\r\n- AudioFolder\r\n- VideoFolder\r\n\r\nImprovements:\r\n- faster to stream (got a 5x speed up on an image dataset)\r\n- improved RAM usage\r\n- support for metadata.parquet\r\n- allow to link to an image\/audio\/video multiple times\r\n- support for pyarrow filters (mostly efficient for parquet)\r\n- link to files using fields names `*_file_name` (in addition to the already existing `file_name`)\r\n - this allows to have multiple image\/audio\/video per row\r\n - there is also `file_names` and `*_file_names` for lists of image\/audio\/video\r\n\r\nChanges:\r\n- the builders iterate on the metadata files instead of the media files\r\n- the builders iterate on chunks of metadata instead of loading them in RAM completely\r\n- metadata files are no longer handled separately in `data_files`\r\n- added the `filters` argument to pass to `load_dataset`\r\n - either as an [Expression](https:\/\/arrow.apache.org\/docs\/python\/generated\/pyarrow.dataset.Expression.html)\r\n - or as tuples like `filters=[('event_name', '=', 'SomeEvent')]`\r\n- small breaking change: you can't add labels to a dataset with`drop_labels=False` if it has a metadata file\r\n- small breaking change: you can't use one metadata file for multiple splits anymore\r\n\r\nExample: `lhoestq\/pusht-videofolder` is a video dataset with metadata.parquet where multiple rows can point to the same video\r\n\r\n```python\r\nIn [1]: from datasets import load_dataset\r\n\r\nIn [2]: load_dataset(\"lhoestq\/pusht-videofolder\")\r\nResolving data files: 100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 207\/207 [00:00<00:00, 1087.32it\/s]\r\nOut[2]: \r\nDatasetDict({\r\n train: Dataset({\r\n features: ['video', 'observation.state', 'action', 'episode_index', 'frame_index', 'timestamp', 'next.reward', 'next.done', 'next.success', 'index', 'task_index'],\r\n num_rows: 25650\r\n })\r\n})\r\n\r\nIn [3]: load_dataset(\"lhoestq\/pusht-videofolder\", filters=[(\"next.reward\", \">\", 0.5)])\r\nResolving data files: 100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 207\/207 [00:01<00:00, 183.03it\/s]\r\nOut[3]: \r\nDatasetDict({\r\n train: Dataset({\r\n features: ['video', 'observation.state', 'action', 'episode_index', 'frame_index', 'timestamp', 'next.reward', 'next.done', 'next.success', 'index', 'task_index'],\r\n num_rows: 5773\r\n })\r\n})\r\n```\r\n\r\nAdditional change for VideoFolder:\r\n- decord can't be installed in many setups, I switched the backend to torchvision instead\r\n- I also added streaming capability from HF (you can get video frames without downloading the full video from HF)\r\n\r\nExample: load a robotics dataset\r\n\r\n```python\r\nIn [1]: from datasets import load_dataset\r\nds\r\nIn [2]: ds = load_dataset(\"lhoestq\/pusht-videofolder\")\r\nResolving data files: 100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 207\/207 [00:00<00:00, 624.81it\/s]\r\n\r\nIn [3]: ds[\"train\"][0]\r\nOut[3]: \r\n{'video': ,\r\n 'observation.state': [222.0, 97.0],\r\n 'action': [233.0, 71.0],\r\n 'episode_index': 0,\r\n 'frame_index': 0,\r\n 'timestamp': 0.0,\r\n 'next.reward': 0.19029748439788818,\r\n 'next.done': False,\r\n 'next.success': False,\r\n 'index': 0,\r\n 'task_index': 0}\r\n```\r\n\r\nExample: stream frames without downloading full videos\r\n\r\n```python\r\nIn [1]: from datasets import load_dataset\r\n\r\nIn [2]: ds = load_dataset(\"BrianGuo\/Tennis_Data\", streaming=True)\r\n\r\nIn [3]: example = next(iter(ds[\"train\"]))\r\n\r\nIn [4]: video = example[\"video\"]\r\n\r\nIn [5]: video.get_metadata()\r\nOut[5]: \r\n{'audio': {'framerate': [44100.0], 'duration': [2027.35]},\r\n 'video': {'fps': [59.00002712894387], 'duration': [2027.355]}}\r\n\r\nIn [6]: video.seek(1800, keyframes_only=True) # 30min\r\nOut[6]: \r\n\r\nIn [7]: next(video)\r\nOut[7]: \r\n{'data': tensor([[[ 76, 77, 79, ..., 41, 39, 38],\r\n [ 76, 77, 79, ..., 40, 39, 35],\r\n [ 76, 77, 79, ..., 34, 30, 26],\r\n ...,\r\n [127, 127, 127, ..., 125, 125, 125],\r\n [125, 126, 126, ..., 125, 125, 125],\r\n [122, 124, 126, ..., 125, 125, 125]]], dtype=torch.uint8),\r\n 'pts': 1800.0}\r\n```\r\n\r\nTODO:\r\n- [x] docs\r\n- [x] fix tests","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7424\/reactions","total_count":2,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":2,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7424\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7423","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7423\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7423\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7423\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7423","id":2879271409,"node_id":"I_kwDODunzps6rnjHx","number":7423,"title":"Row indexing a dataset with numpy integers","user":{"login":"DavidRConnell","id":35470740,"node_id":"MDQ6VXNlcjM1NDcwNzQw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/35470740?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/DavidRConnell","html_url":"https:\/\/github.com\/DavidRConnell","followers_url":"https:\/\/api.github.com\/users\/DavidRConnell\/followers","following_url":"https:\/\/api.github.com\/users\/DavidRConnell\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/DavidRConnell\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/DavidRConnell\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/DavidRConnell\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/DavidRConnell\/orgs","repos_url":"https:\/\/api.github.com\/users\/DavidRConnell\/repos","events_url":"https:\/\/api.github.com\/users\/DavidRConnell\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/DavidRConnell\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-02-25T18:44:45Z","updated_at":"2025-07-28T02:23:17Z","closed_at":"2025-07-28T02:23:17Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nAllow indexing datasets with a scalar numpy integer type.\n\n### Motivation\n\nIndexing a dataset with a scalar numpy.int* object raises a TypeError. This is due to the test in `datasets\/formatting\/formatting.py:key_to_query_type`\n\n``` python\ndef key_to_query_type(key: Union[int, slice, range, str, Iterable]) -> str:\n if isinstance(key, int):\n return \"row\"\n elif isinstance(key, str):\n return \"column\"\n elif isinstance(key, (slice, range, Iterable)):\n return \"batch\"\n _raise_bad_key_type(key)\n```\n\nIn the row case, it checks if key is an int, which returns false when key is integer like but not a builtin python integer type. This is counterintuitive because a numpy array of np.int64s can be used for the batch case.\n\nFor example:\n\n``` python\nimport numpy as np\n\nimport datasets\n\ndataset = datasets.Dataset.from_dict({\"a\": [1, 2, 3, 4], \"b\": [5, 6, 7, 8]})\n\n# Regular indexing\ndataset[0]\ndataset[:2]\n\n# Indexing with numpy data types (expect same results)\nidx = np.asarray([0, 1])\ndataset[idx] # Succeeds when using an array of np.int64 values\ndataset[idx[0]] # Fails with TypeError when using scalar np.int64\n```\n\nFor the user, this can be solved by wrapping `idx[0]` in `int` but the test could also be changed in `key_to_query_type` to accept a less strict definition of int.\n\n``` diff\n+import numbers\n+\ndef key_to_query_type(key: Union[int, slice, range, str, Iterable]) -> str:\n+ if isinstance(key, numbers.Integral):\n- if isinstance(key, int):\n return \"row\"\n elif isinstance(key, str):\n return \"column\"\n elif isinstance(key, (slice, range, Iterable)):\n return \"batch\"\n _raise_bad_key_type(key)\n```\n\nLooking at how others do it, pandas has an `is_integer` definition that it checks which uses `is_integer_object` defined in `pandas\/_libs\/utils.pxd`:\n\n``` cython\ncdef inline bint is_integer_object(object obj) noexcept:\n \"\"\"\n Cython equivalent of\n\n `isinstance(val, (int, np.integer)) and not isinstance(val, (bool, np.timedelta64))`\n\n Parameters\n ----------\n val : object\n\n Returns\n -------\n is_integer : bool\n\n Notes\n -----\n This counts np.timedelta64 objects as integers.\n \"\"\"\n return (not PyBool_Check(obj) and isinstance(obj, (int, cnp.integer))\n and not is_timedelta64_object(obj))\n```\n\nThis would be less flexible as it explicitly checks for numpy integer, but worth noting that they had the need to ensure the key is not a bool.\n\n### Your contribution\n\nI can submit a pull request with the above changes after checking that indexing succeeds with the numpy integer type. Or if there is a different integer check that would be preferred I could add that.\n\nIf there is a reason not to want this behavior that is fine too.\n","closed_by":{"login":"DavidRConnell","id":35470740,"node_id":"MDQ6VXNlcjM1NDcwNzQw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/35470740?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/DavidRConnell","html_url":"https:\/\/github.com\/DavidRConnell","followers_url":"https:\/\/api.github.com\/users\/DavidRConnell\/followers","following_url":"https:\/\/api.github.com\/users\/DavidRConnell\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/DavidRConnell\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/DavidRConnell\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/DavidRConnell\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/DavidRConnell\/orgs","repos_url":"https:\/\/api.github.com\/users\/DavidRConnell\/repos","events_url":"https:\/\/api.github.com\/users\/DavidRConnell\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/DavidRConnell\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7423\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7423\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7421","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7421\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7421\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7421\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7421","id":2878369052,"node_id":"I_kwDODunzps6rkG0c","number":7421,"title":"DVC integration broken","user":{"login":"maxstrobel","id":34747372,"node_id":"MDQ6VXNlcjM0NzQ3Mzcy","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/34747372?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/maxstrobel","html_url":"https:\/\/github.com\/maxstrobel","followers_url":"https:\/\/api.github.com\/users\/maxstrobel\/followers","following_url":"https:\/\/api.github.com\/users\/maxstrobel\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/maxstrobel\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/maxstrobel\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/maxstrobel\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/maxstrobel\/orgs","repos_url":"https:\/\/api.github.com\/users\/maxstrobel\/repos","events_url":"https:\/\/api.github.com\/users\/maxstrobel\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/maxstrobel\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-02-25T13:14:31Z","updated_at":"2025-03-03T17:42:02Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nThe DVC integration seems to be broken. \nFollowed this guide: https:\/\/dvc.org\/doc\/user-guide\/integrations\/huggingface\n\n### Steps to reproduce the bug\n\n#### Script to reproduce\n~~~python\nfrom datasets import load_dataset\n\ndataset = load_dataset(\n \"csv\",\n data_files=\"dvc:\/\/workshop\/satellite-data\/jan_train.csv\",\n storage_options={\"url\": \"https:\/\/github.com\/iterative\/dataset-registry.git\"},\n)\n\nprint(dataset)\n~~~\n\n#### Error log\n~~~\nTraceback (most recent call last):\n File \"C:\\tmp\\test\\load.py\", line 3, in \n dataset = load_dataset(\n ^^^^^^^^^^^^^\n File \"C:\\tmp\\test\\.venv\\Lib\\site-packages\\datasets\\load.py\", line 2151, in load_dataset\n builder_instance.download_and_prepare(\n File \"C:\\tmp\\test\\.venv\\Lib\\site-packages\\datasets\\builder.py\", line 808, in download_and_prepare\n fs, output_dir = url_to_fs(output_dir, **(storage_options or {}))\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nTypeError: url_to_fs() got multiple values for argument 'url'\n~~~\n\n\n\n### Expected behavior\n\nIntegration would work and the indicated file is downloaded and opened.\n\n### Environment info\n\n#### Python version\n~~~\npython --version\nPython 3.11.10\n~~~\n\n#### Venv (pip install datasets dvc):\n~~~\nPackage Version\n---------------------- -----------\naiohappyeyeballs 2.4.6\naiohttp 3.11.13\naiohttp-retry 2.9.1\naiosignal 1.3.2\namqp 5.3.1\nannotated-types 0.7.0\nantlr4-python3-runtime 4.9.3\nappdirs 1.4.4\nasyncssh 2.20.0\natpublic 5.1\nattrs 25.1.0\nbilliard 4.2.1\ncelery 5.4.0\ncertifi 2025.1.31\ncffi 1.17.1\ncharset-normalizer 3.4.1\nclick 8.1.8\nclick-didyoumean 0.3.1\nclick-plugins 1.1.1\nclick-repl 0.3.0\ncolorama 0.4.6\nconfigobj 5.0.9\ncryptography 44.0.1\ndatasets 3.3.2\ndictdiffer 0.9.0\ndill 0.3.8\ndiskcache 5.6.3\ndistro 1.9.0\ndpath 2.2.0\ndulwich 0.22.7\ndvc 3.59.1\ndvc-data 3.16.9\ndvc-http 2.32.0\ndvc-objects 5.1.0\ndvc-render 1.0.2\ndvc-studio-client 0.21.0\ndvc-task 0.40.2\nentrypoints 0.4\nfilelock 3.17.0\nflatten-dict 0.4.2\nflufl-lock 8.1.0\nfrozenlist 1.5.0\nfsspec 2024.12.0\nfuncy 2.0\ngitdb 4.0.12\ngitpython 3.1.44\ngrandalf 0.8\ngto 1.7.2\nhuggingface-hub 0.29.1\nhydra-core 1.3.2\nidna 3.10\niterative-telemetry 0.0.10\nkombu 5.4.2\nmarkdown-it-py 3.0.0\nmdurl 0.1.2\nmultidict 6.1.0\nmultiprocess 0.70.16\nnetworkx 3.4.2\nnumpy 2.2.3\nomegaconf 2.3.0\norjson 3.10.15\npackaging 24.2\npandas 2.2.3\npathspec 0.12.1\nplatformdirs 4.3.6\nprompt-toolkit 3.0.50\npropcache 0.3.0\npsutil 7.0.0\npyarrow 19.0.1\npycparser 2.22\npydantic 2.10.6\npydantic-core 2.27.2\npydot 3.0.4\npygit2 1.17.0\npygments 2.19.1\npygtrie 2.5.0\npyparsing 3.2.1\npython-dateutil 2.9.0.post0\npytz 2025.1\npywin32 308\npyyaml 6.0.2\nrequests 2.32.3\nrich 13.9.4\nruamel-yaml 0.18.10\nruamel-yaml-clib 0.2.12\nscmrepo 3.3.10\nsemver 3.0.4\nsetuptools 75.8.0\nshellingham 1.5.4\nshortuuid 1.0.13\nshtab 1.7.1\nsix 1.17.0\nsmmap 5.0.2\nsqltrie 0.11.2\ntabulate 0.9.0\ntomlkit 0.13.2\ntqdm 4.67.1\ntyper 0.15.1\ntyping-extensions 4.12.2\ntzdata 2025.1\nurllib3 2.3.0\nvine 5.1.0\nvoluptuous 0.15.2\nwcwidth 0.2.13\nxxhash 3.5.0\nyarl 1.18.3\nzc-lockfile 3.0.post1\n~~~","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7421\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7421\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7420","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7420\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7420\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7420\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7420","id":2876281928,"node_id":"I_kwDODunzps6rcJRI","number":7420,"title":"better correspondence between cached and saved datasets created using from_generator","user":{"login":"vttrifonov","id":12157034,"node_id":"MDQ6VXNlcjEyMTU3MDM0","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/12157034?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/vttrifonov","html_url":"https:\/\/github.com\/vttrifonov","followers_url":"https:\/\/api.github.com\/users\/vttrifonov\/followers","following_url":"https:\/\/api.github.com\/users\/vttrifonov\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/vttrifonov\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/vttrifonov\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/vttrifonov\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/vttrifonov\/orgs","repos_url":"https:\/\/api.github.com\/users\/vttrifonov\/repos","events_url":"https:\/\/api.github.com\/users\/vttrifonov\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/vttrifonov\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-02-24T22:14:37Z","updated_at":"2025-02-26T03:10:22Z","closed_at":null,"author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nAt the moment `.from_generator` can only create a dataset that lives in the cache. The cached dataset cannot be loaded with `load_from_disk` because the cache folder is missing `state.json`. So the only way to convert this cached dataset to a regular is to use `save_to_disk` which needs to create a copy of the cached dataset. For large datasets this can end up wasting a lot of space. In my case the saving operation failed so I am stuck with a large cached dataset and no clear way to convert to a `Dataset` that I can use. The requested feature is to provide a way to be able to load a cached dataset using `.load_from_disk`. Alternatively `.from_generator` can create the dataset at a specified location so that it can be loaded from there with `.load_from_disk`.\n\n### Motivation\n\nI have the following workflow which has exposed some awkwardness about the Datasets saving\/caching.\n\n1. I created a cached dataset using `.from_generator` which was cached in a folder. This dataset is rather large (~600GB) with many shards.\n2. I tried to save this dataset using `.save_to_disk` to another location so that I can use later as a `Dataset`. This essentially creates another copy (for a total of 1.2TB!) of what is already in the cache... In my case the saving operation keeps dying for some reason and I am stuck with a cached dataset and no copy.\n3. Now I am trying to \"save\" the existing cached dataset but it is not clear how to access the cached files after `.from_generator` has finished e.g. from a different process. I should not be even looking at the cache but I really do not want to waste another 2hr to generate the set so that if fails agains (I already did this couple of times). \n- I tried `.load_from_disk` but it does not work with cached files and complains that this is not a `Dataset` (!).\n- I looked at `.from_file` which takes one file but the cached file has many (shards) so I am not sure how to make this work. \n- I tried `.load_dataset` but this seems to either try to \"download\" a copy (of a file which is already in the local file system!) which I will then need to save or I need to use `streaming=False` to create an `IterableDataset `which then I need to convert (using the cache) to `Dataset` so that I can save it. With both options I will end up with 3 copies of the same dataset for a total of ~2TB! I am hoping here is another way to do this...\n\nMaybe I am missing something here: I looked at docs and forums but no luck. I have a bunch of arrow files cached by `Dataset.from_generator` and no clean way to make them into a `Dataset` that I can use. \n\nThis all could be so much easer if `load_from_disk` can recognize the cached files and produce a `Dataset`: after the cache is created I would not have to \"save\" it again and I can just load it when I need. At the moment `load_from_disk` needs `state.json` which is lacking in the cache folder. So perhaps `.from_generator` could be made to \"finalize\" (e.g. create `state.json`) the dataset once it is done so that it can be loaded easily. Or provide `.from_generator` with a `save_to_dir` parameter in addition to `cache_dir` which can be used for the whole process including creating the `state.json` at the end. \n\nAs a proof of concept I just created `state.json` by hand and `load_from_disk` worked using the cache! So it seems to be the missing piece here.\n\n### Your contribution\n\nTime permitting I can look into `.from_generator` to see if adding `state.json` is feasible.","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7420\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7420\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7419","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7419\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7419\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7419\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7419","id":2875635320,"node_id":"I_kwDODunzps6rZrZ4","number":7419,"title":"Import order crashes script execution","user":{"login":"DamienMatias","id":23298479,"node_id":"MDQ6VXNlcjIzMjk4NDc5","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/23298479?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/DamienMatias","html_url":"https:\/\/github.com\/DamienMatias","followers_url":"https:\/\/api.github.com\/users\/DamienMatias\/followers","following_url":"https:\/\/api.github.com\/users\/DamienMatias\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/DamienMatias\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/DamienMatias\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/DamienMatias\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/DamienMatias\/orgs","repos_url":"https:\/\/api.github.com\/users\/DamienMatias\/repos","events_url":"https:\/\/api.github.com\/users\/DamienMatias\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/DamienMatias\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-02-24T17:03:43Z","updated_at":"2025-02-24T17:03:43Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nHello,\n\nI'm trying to convert an HF dataset into a TFRecord so I'm importing `tensorflow` and `datasets` to do so.\nDepending in what order I'm importing those librairies, my code hangs forever and is unkillable (CTRL+C doesn't work, I need to kill my shell entirely).\n\nThank you for your help\n\ud83d\ude4f \n\n### Steps to reproduce the bug\n\nIf you run the following script, this will hang forever : \n```python\nimport tensorflow as tf\nimport datasets\n\ndataset = datasets.load_dataset(\"imagenet-1k\", split=\"validation\", streaming=True)\nprint(next(iter(dataset)))\n```\n\nhowever running the following will work fine (I just changed the order of the imports) :\n```python\nimport datasets\nimport tensorflow as tf\n\ndataset = datasets.load_dataset(\"imagenet-1k\", split=\"validation\", streaming=True)\nprint(next(iter(dataset)))\n```\n\n### Expected behavior\n\nI'm expecting the script to reach the end and my case print the content of the first item in the dataset \n```\n{'image': , 'label': 91}\n```\n\n### Environment info\n\n```\n$ datasets-cli env\n- `datasets` version: 3.3.2\n- Platform: Linux-6.8.0-1017-aws-x86_64-with-glibc2.35\n- Python version: 3.11.7\n- `huggingface_hub` version: 0.29.1\n- PyArrow version: 19.0.1\n- Pandas version: 2.2.3\n- `fsspec` version: 2024.12.0\n```\n\nI'm also using `tensorflow==2.18.0`.","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7419\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7419\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7418","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7418\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7418\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7418\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7418","id":2868701471,"node_id":"I_kwDODunzps6q_Okf","number":7418,"title":"pyarrow.lib.arrowinvalid: cannot mix list and non-list, non-null values with map function","user":{"login":"alexxchen","id":15705569,"node_id":"MDQ6VXNlcjE1NzA1NTY5","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/15705569?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/alexxchen","html_url":"https:\/\/github.com\/alexxchen","followers_url":"https:\/\/api.github.com\/users\/alexxchen\/followers","following_url":"https:\/\/api.github.com\/users\/alexxchen\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/alexxchen\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/alexxchen\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/alexxchen\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/alexxchen\/orgs","repos_url":"https:\/\/api.github.com\/users\/alexxchen\/repos","events_url":"https:\/\/api.github.com\/users\/alexxchen\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/alexxchen\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2025-02-21T10:58:06Z","updated_at":"2025-07-11T13:06:10Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nEncounter pyarrow.lib.arrowinvalid error with map function in some example when loading the dataset\n\n### Steps to reproduce the bug\n\n```\nfrom datasets import load_dataset\nfrom PIL import Image, PngImagePlugin\n\ndataset = load_dataset(\"leonardPKU\/GEOQA_R1V_Train_8K\")\nsystem_prompt=\"You are a helpful AI Assistant\"\ndef make_conversation(example):\n prompt = []\n\n prompt.append({\"role\": \"system\", \"content\": system_prompt})\n prompt.append(\n {\n \"role\": \"user\", \n \"content\": [\n {\"type\": \"image\"},\n {\"type\": \"text\", \"text\": example[\"problem\"]},\n ]\n }\n )\n return {\"prompt\": prompt}\n\ndef check_data_types(example):\n for key, value in example.items():\n if key == 'image':\n if not isinstance(value, PngImagePlugin.PngImageFile):\n print(value)\n if key == \"problem\" or key == \"solution\":\n if not isinstance(value, str):\n print(value)\n\n return example\n\ndataset = dataset.map(check_data_types)\ndataset = dataset.map(make_conversation)\n```\n\n### Expected behavior\n\nSuccessfully process the dataset with map\n\n### Environment info\n\ndatasets==3.3.1","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7418\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7418\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7417","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7417\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7417\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7417\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7417","id":2866868922,"node_id":"PR_kwDODunzps6L78k3","number":7417,"title":"set dev version","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-02-20T17:45:29Z","updated_at":"2025-02-20T17:47:50Z","closed_at":"2025-02-20T17:45:36Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7417","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7417","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7417.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7417.patch","merged_at":"2025-02-20T17:45:36Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7417\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7417\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7416","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7416\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7416\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7416\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7416","id":2866862143,"node_id":"PR_kwDODunzps6L77G2","number":7416,"title":"Release: 3.3.2","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-02-20T17:42:11Z","updated_at":"2025-02-20T17:44:35Z","closed_at":"2025-02-20T17:43:28Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7416","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7416","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7416.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7416.patch","merged_at":"2025-02-20T17:43:28Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7416\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7416\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7415","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7415\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7415\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7415\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7415","id":2865774546,"node_id":"I_kwDODunzps6q0D_S","number":7415,"title":"Shard Dataset at specific indices","user":{"login":"nikonikolov","id":11044035,"node_id":"MDQ6VXNlcjExMDQ0MDM1","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/11044035?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/nikonikolov","html_url":"https:\/\/github.com\/nikonikolov","followers_url":"https:\/\/api.github.com\/users\/nikonikolov\/followers","following_url":"https:\/\/api.github.com\/users\/nikonikolov\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/nikonikolov\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/nikonikolov\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/nikonikolov\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/nikonikolov\/orgs","repos_url":"https:\/\/api.github.com\/users\/nikonikolov\/repos","events_url":"https:\/\/api.github.com\/users\/nikonikolov\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/nikonikolov\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2025-02-20T10:43:10Z","updated_at":"2025-02-24T11:06:45Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"I have a dataset of sequences, where each example in the sequence is a separate row in the dataset (similar to LeRobotDataset). When running `Dataset.save_to_disk` how can I provide indices where it's possible to shard the dataset such that no episode spans more than 1 shard. Consequently, when I run `Dataset.load_from_disk`, how can I load just a subset of the shards to save memory and time on different ranks?\n\nI guess an alternative to this would be, given a loaded `Dataset`, how can I run `Dataset.shard` such that sharding doesn't split any episode across shards?","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7415\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7415\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7414","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7414\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7414\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7414\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7414","id":2863798756,"node_id":"PR_kwDODunzps6LxjsH","number":7414,"title":"Gracefully cancel async tasks","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-02-19T16:10:58Z","updated_at":"2025-02-20T14:12:26Z","closed_at":"2025-02-20T14:12:23Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7414","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7414","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7414.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7414.patch","merged_at":"2025-02-20T14:12:23Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7414\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7414\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7413","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7413\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7413\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7413\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7413","id":2860947582,"node_id":"I_kwDODunzps6qhph-","number":7413,"title":"Documentation on multiple media files of the same type with WebDataset","user":{"login":"DCNemesis","id":3616964,"node_id":"MDQ6VXNlcjM2MTY5NjQ=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/3616964?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/DCNemesis","html_url":"https:\/\/github.com\/DCNemesis","followers_url":"https:\/\/api.github.com\/users\/DCNemesis\/followers","following_url":"https:\/\/api.github.com\/users\/DCNemesis\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/DCNemesis\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/DCNemesis\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/DCNemesis\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/DCNemesis\/orgs","repos_url":"https:\/\/api.github.com\/users\/DCNemesis\/repos","events_url":"https:\/\/api.github.com\/users\/DCNemesis\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/DCNemesis\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-02-18T16:13:20Z","updated_at":"2025-02-20T14:17:54Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"The [current documentation](https:\/\/huggingface.co\/docs\/datasets\/en\/video_dataset) on a creating a video dataset includes only examples with one media file and one json. It would be useful to have examples where multiple files of the same type are included. For example, in a sign language dataset, you may have a base video and a video annotation of the extracted pose. According to the WebDataset documentation, this should be able to be done with period separated filenames. For example:\n\n```e39871fd9fd74f55.base.mp4\ne39871fd9fd74f55.pose.mp4\ne39871fd9fd74f55.json\nf18b91585c4d3f3e.base.mp4\nf18b91585c4d3f3e.pose.mp4\nf18b91585c4d3f3e.json\n... \n```\n\nIf you can confirm that this method of including multiple media files works with huggingface datasets and include an example in the documentation, I'd appreciate it.","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7413\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7413\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7412","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7412\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7412\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7412\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7412","id":2859433710,"node_id":"I_kwDODunzps6qb37u","number":7412,"title":"Index Error Invalid Ket is out of bounds for size 0 for code-search-net\/code_search_net dataset","user":{"login":"harshakhmk","id":56113657,"node_id":"MDQ6VXNlcjU2MTEzNjU3","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/56113657?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/harshakhmk","html_url":"https:\/\/github.com\/harshakhmk","followers_url":"https:\/\/api.github.com\/users\/harshakhmk\/followers","following_url":"https:\/\/api.github.com\/users\/harshakhmk\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/harshakhmk\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/harshakhmk\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/harshakhmk\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/harshakhmk\/orgs","repos_url":"https:\/\/api.github.com\/users\/harshakhmk\/repos","events_url":"https:\/\/api.github.com\/users\/harshakhmk\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/harshakhmk\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-02-18T05:58:33Z","updated_at":"2025-02-18T06:42:07Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI am trying to do model pruning on sentence-transformers\/all-mini-L6-v2 for the code-search-net\/code_search_net dataset using INCTrainer class \nHowever I am getting below error\n\n```\nraise IndexError(f\"Invalid Key: {key is our of bounds for size {size}\")\nIndexError: Invalid key: 1840208 is out of bounds for size 0\n```\n\n### Steps to reproduce the bug\n\nModel pruning on the above dataset using the below guide \n\nhttps:\/\/huggingface.co\/docs\/optimum\/en\/intel\/neural_compressor\/optimization#pruning\n### Expected behavior\n\nThe modsl should be successfully pruned \n\n### Environment info\n\nTorch version: 2.4.1\nPython version: 3.8.10","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7412\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7412\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7411","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7411\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7411\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7411\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7411","id":2858993390,"node_id":"PR_kwDODunzps6LhV0Z","number":7411,"title":"Attempt to fix multiprocessing hang by closing and joining the pool before termination","user":{"login":"dakinggg","id":43149077,"node_id":"MDQ6VXNlcjQzMTQ5MDc3","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/43149077?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/dakinggg","html_url":"https:\/\/github.com\/dakinggg","followers_url":"https:\/\/api.github.com\/users\/dakinggg\/followers","following_url":"https:\/\/api.github.com\/users\/dakinggg\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/dakinggg\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/dakinggg\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/dakinggg\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/dakinggg\/orgs","repos_url":"https:\/\/api.github.com\/users\/dakinggg\/repos","events_url":"https:\/\/api.github.com\/users\/dakinggg\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/dakinggg\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2025-02-17T23:58:03Z","updated_at":"2025-02-19T21:11:24Z","closed_at":"2025-02-19T13:40:32Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7411","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7411","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7411.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7411.patch","merged_at":"2025-02-19T13:40:32Z"},"body":"https:\/\/github.com\/huggingface\/datasets\/issues\/6393 has plagued me on and off for a very long time. I have had various workarounds (one time combining two filter calls into one filter call removed the issue, another time making rank 0 go first resolved a cache race condition, one time i think upgrading the version of something resolved it). I don't know hf datasets well enough to fully understand the root cause, but I _think_ this PR fixes it.\r\n\r\nEvidence: I have an LLM Foundry training yaml\/script (datasets version 3.2.0) that results in a hang ~1\/10 times (for a baseline for this testing, it was 2\/36 runs that hung). I also reran with the latest datasets version (3.3.1) and got 4\/36 hung. Installing datasets from this PR, I was able to successful run the script 144 times without a hang occurring. Assuming the base probability is 1\/10, this should be more than enough times to have confidence it works.\r\n\r\nAfter adding some logging, I could see that the code hung during the __exit__ of the mp pool context manager, after all shards had been processed, and the tqdm context manager had exited.\r\n\r\nMy best explanation: When multiprocessing pool __exit__ is called, it calls pool.terminate, which forcefully exits all the processes (and calls code related to this that I haven't looked at closely). I'm guessing this forceful termination has a bad interaction with some multithreading\/multiprocessing that hf datasets does. If we instead call pool.close and pool.join before the pool.terminate happens, perhaps whatever that bad interaction is is able to complete gracefully, and then terminate call proceeds without issue.\r\n\r\nIf this PR seems good to you, I'd be very appreciative if you were able to do a patch release including it. Thank you!\r\n\r\n@lhoestq ","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7411\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7411\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7410","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7410\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7410\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7410\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7410","id":2858085707,"node_id":"PR_kwDODunzps6LeQBF","number":7410,"title":"Set dev version","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-02-17T14:54:39Z","updated_at":"2025-02-17T14:56:58Z","closed_at":"2025-02-17T14:54:56Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7410","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7410","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7410.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7410.patch","merged_at":"2025-02-17T14:54:56Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7410\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7410\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7409","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7409\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7409\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7409\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7409","id":2858079508,"node_id":"PR_kwDODunzps6LeOpY","number":7409,"title":"Release: 3.3.1","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-02-17T14:52:12Z","updated_at":"2025-02-17T14:54:32Z","closed_at":"2025-02-17T14:53:13Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7409","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7409","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7409.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7409.patch","merged_at":"2025-02-17T14:53:13Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7409\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7409\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7408","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7408\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7408\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7408\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7408","id":2858012313,"node_id":"PR_kwDODunzps6Ld_-m","number":7408,"title":"Fix filter speed regression","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-02-17T14:25:32Z","updated_at":"2025-02-17T14:28:48Z","closed_at":"2025-02-17T14:28:46Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7408","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7408","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7408.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7408.patch","merged_at":"2025-02-17T14:28:46Z"},"body":"close https:\/\/github.com\/huggingface\/datasets\/issues\/7404","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7408\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7408\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7407","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7407\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7407\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7407\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7407","id":2856517442,"node_id":"PR_kwDODunzps6LY7y5","number":7407,"title":"Update use_with_pandas.mdx: to_pandas() correction in last section","user":{"login":"ibarrien","id":7552335,"node_id":"MDQ6VXNlcjc1NTIzMzU=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/7552335?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ibarrien","html_url":"https:\/\/github.com\/ibarrien","followers_url":"https:\/\/api.github.com\/users\/ibarrien\/followers","following_url":"https:\/\/api.github.com\/users\/ibarrien\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ibarrien\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ibarrien\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ibarrien\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ibarrien\/orgs","repos_url":"https:\/\/api.github.com\/users\/ibarrien\/repos","events_url":"https:\/\/api.github.com\/users\/ibarrien\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ibarrien\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-02-17T01:53:31Z","updated_at":"2025-02-20T17:28:04Z","closed_at":"2025-02-20T17:28:04Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7407","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7407","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7407.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7407.patch","merged_at":"2025-02-20T17:28:04Z"},"body":"last section ``to_pandas()\"","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7407\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7407\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7406","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7406\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7406\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7406\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7406","id":2856441206,"node_id":"I_kwDODunzps6qQdV2","number":7406,"title":"Adding Core Maintainer List to CONTRIBUTING.md","user":{"login":"jp1924","id":93233241,"node_id":"U_kgDOBY6gWQ","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/93233241?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/jp1924","html_url":"https:\/\/github.com\/jp1924","followers_url":"https:\/\/api.github.com\/users\/jp1924\/followers","following_url":"https:\/\/api.github.com\/users\/jp1924\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/jp1924\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/jp1924\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/jp1924\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/jp1924\/orgs","repos_url":"https:\/\/api.github.com\/users\/jp1924\/repos","events_url":"https:\/\/api.github.com\/users\/jp1924\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/jp1924\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2025-02-17T00:32:40Z","updated_at":"2025-03-24T10:57:54Z","closed_at":"2025-03-24T10:57:54Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nI propose adding a core maintainer list to the `CONTRIBUTING.md` file.\n\n### Motivation\n\nThe Transformers and Liger-Kernel projects maintain lists of core maintainers for each module. \nHowever, the Datasets project doesn't have such a list. \n\n### Your contribution\n\nI have nothing to add here.","closed_by":{"login":"jp1924","id":93233241,"node_id":"U_kgDOBY6gWQ","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/93233241?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/jp1924","html_url":"https:\/\/github.com\/jp1924","followers_url":"https:\/\/api.github.com\/users\/jp1924\/followers","following_url":"https:\/\/api.github.com\/users\/jp1924\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/jp1924\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/jp1924\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/jp1924\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/jp1924\/orgs","repos_url":"https:\/\/api.github.com\/users\/jp1924\/repos","events_url":"https:\/\/api.github.com\/users\/jp1924\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/jp1924\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7406\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7406\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7405","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7405\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7405\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7405\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7405","id":2856372814,"node_id":"I_kwDODunzps6qQMpO","number":7405,"title":"Lazy loading of environment variables","user":{"login":"nikvaessen","id":7225987,"node_id":"MDQ6VXNlcjcyMjU5ODc=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/7225987?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/nikvaessen","html_url":"https:\/\/github.com\/nikvaessen","followers_url":"https:\/\/api.github.com\/users\/nikvaessen\/followers","following_url":"https:\/\/api.github.com\/users\/nikvaessen\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/nikvaessen\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/nikvaessen\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/nikvaessen\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/nikvaessen\/orgs","repos_url":"https:\/\/api.github.com\/users\/nikvaessen\/repos","events_url":"https:\/\/api.github.com\/users\/nikvaessen\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/nikvaessen\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-02-16T22:31:41Z","updated_at":"2025-02-17T15:17:18Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nLoading a `.env` file after an `import datasets` call does not correctly use the environment variables. \n\nThis is due the fact that environment variables are read at import time:\nhttps:\/\/github.com\/huggingface\/datasets\/blob\/de062f0552a810c52077543c1169c38c1f0c53fc\/src\/datasets\/config.py#L155C1-L155C80\n\n### Steps to reproduce the bug\n\n```bash\n# make tmp dir\nmkdir -p \/tmp\/debug-env\n# make .env file\necho HF_HOME=\/tmp\/debug-env\/data > \/tmp\/debug-env\/.env\n# first load dotenv, downloads to \/tmp\/debug-env\/data\nuv run --with datasets,python-dotenv python3 -c \\\n'import dotenv; dotenv.load_dotenv(\"\/tmp\/debug-env\/.env\"); import datasets; datasets.load_dataset(\"Anthropic\/hh-rlhf\")' \n# first import datasets, downloads to `~\/.cache\/huggingface`\nuv run --with datasets,python-dotenv python3 -c \\\n'import datasets; import dotenv; dotenv.load_dotenv(\"\/tmp\/debug-env\/.env\"); datasets.load_dataset(\"Anthropic\/hh-rlhf\")' \n\n```\n\n### Expected behavior\n\nI expect that setting environment variables with something like this:\n\n```python3\nif __name__ == \"__main__\":\n load_dotenv()\n main()\n```\nworks correctly. \n\n### Environment info\n\n \"datasets>=3.3.0\",\n","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7405\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7405\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7404","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7404\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7404\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7404\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7404","id":2856366207,"node_id":"I_kwDODunzps6qQLB_","number":7404,"title":"Performance regression in `dataset.filter`","user":{"login":"ttim","id":82200,"node_id":"MDQ6VXNlcjgyMjAw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/82200?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ttim","html_url":"https:\/\/github.com\/ttim","followers_url":"https:\/\/api.github.com\/users\/ttim\/followers","following_url":"https:\/\/api.github.com\/users\/ttim\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ttim\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ttim\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ttim\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ttim\/orgs","repos_url":"https:\/\/api.github.com\/users\/ttim\/repos","events_url":"https:\/\/api.github.com\/users\/ttim\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ttim\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":3,"created_at":"2025-02-16T22:19:14Z","updated_at":"2025-02-17T17:46:06Z","closed_at":"2025-02-17T14:28:48Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nWe're filtering dataset of ~1M (small-ish) records. At some point in the code we do `dataset.filter`, before (including 3.2.0) it was taking couple of seconds, and now it takes 4 hours.\n\nWe use 16 threads\/workers, and stack trace at them look as follows:\n```\nTraceback (most recent call last):\n File \"\/python\/lib\/python3.12\/site-packages\/multiprocess\/process.py\", line 314, in _bootstrap\n self.run()\n File \"\/python\/lib\/python3.12\/site-packages\/multiprocess\/process.py\", line 108, in run\n self._target(*self._args, **self._kwargs)\n File \"\/python\/lib\/python3.12\/site-packages\/multiprocess\/pool.py\", line 125, in worker\n result = (True, func(*args, **kwds))\n ^^^^^^^^^^^^^^^^^^^\n File \"\/python\/lib\/python3.12\/site-packages\/datasets\/utils\/py_utils.py\", line 678, in _write_generator_to_queue\n for i, result in enumerate(func(**kwargs)):\n File \"\/python\/lib\/python3.12\/site-packages\/datasets\/arrow_dataset.py\", line 3511, in _map_single\n for i, batch in iter_outputs(shard_iterable):\n File \"\/python\/lib\/python3.12\/site-packages\/datasets\/arrow_dataset.py\", line 3461, in iter_outputs\n yield i, apply_function(example, i, offset=offset)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"\/python\/lib\/python3.12\/site-packages\/datasets\/arrow_dataset.py\", line 3390, in apply_function\n processed_inputs = function(*fn_args, *additional_args, **fn_kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"\/python\/lib\/python3.12\/site-packages\/datasets\/arrow_dataset.py\", line 6416, in get_indices_from_mask_function\n indices_array = indices_mapping.column(0).take(indices_array)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"pyarrow\/table.pxi\", line 1079, in pyarrow.lib.ChunkedArray.take\n File \"\/python\/lib\/python3.12\/site-packages\/pyarrow\/compute.py\", line 458, in take\n def take(data, indices, *, boundscheck=True, memory_pool=None):\n```\n\n### Steps to reproduce the bug\n\n1. Save dataset of 1M records in arrow\n2. Filter it with 16 threads\n3. Watch it take too long\n\n### Expected behavior\n\nFiltering done fast\n\n### Environment info\n\ndatasets 3.3.0, python 3.12","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7404\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7404\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7402","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7402\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7402\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7402\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7402","id":2855880858,"node_id":"PR_kwDODunzps6LW8G3","number":7402,"title":"Fix a typo in arrow_dataset.py","user":{"login":"jingedawang","id":7996256,"node_id":"MDQ6VXNlcjc5OTYyNTY=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/7996256?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/jingedawang","html_url":"https:\/\/github.com\/jingedawang","followers_url":"https:\/\/api.github.com\/users\/jingedawang\/followers","following_url":"https:\/\/api.github.com\/users\/jingedawang\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/jingedawang\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/jingedawang\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/jingedawang\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/jingedawang\/orgs","repos_url":"https:\/\/api.github.com\/users\/jingedawang\/repos","events_url":"https:\/\/api.github.com\/users\/jingedawang\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/jingedawang\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-02-16T04:52:02Z","updated_at":"2025-02-20T17:29:28Z","closed_at":"2025-02-20T17:29:28Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7402","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7402","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7402.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7402.patch","merged_at":"2025-02-20T17:29:28Z"},"body":"\"in the feature\" should be \"in the future\"","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7402\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7402\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7401","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7401\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7401\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7401\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7401","id":2853260869,"node_id":"PR_kwDODunzps6LOMSo","number":7401,"title":"set dev version","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-02-14T10:17:03Z","updated_at":"2025-02-14T10:19:20Z","closed_at":"2025-02-14T10:17:13Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7401","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7401","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7401.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7401.patch","merged_at":"2025-02-14T10:17:13Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7401\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7401\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7399","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7399\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7399\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7399\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7399","id":2853098442,"node_id":"I_kwDODunzps6qDtPK","number":7399,"title":"Synchronize parameters for various datasets","user":{"login":"grofte","id":7976840,"node_id":"MDQ6VXNlcjc5NzY4NDA=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/7976840?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/grofte","html_url":"https:\/\/github.com\/grofte","followers_url":"https:\/\/api.github.com\/users\/grofte\/followers","following_url":"https:\/\/api.github.com\/users\/grofte\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/grofte\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/grofte\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/grofte\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/grofte\/orgs","repos_url":"https:\/\/api.github.com\/users\/grofte\/repos","events_url":"https:\/\/api.github.com\/users\/grofte\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/grofte\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-02-14T09:15:11Z","updated_at":"2025-02-19T11:50:29Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\n[IterableDatasetDict](https:\/\/huggingface.co\/docs\/datasets\/v3.2.0\/en\/package_reference\/main_classes#datasets.IterableDatasetDict.map) map function is missing the `desc` parameter. You can see the equivalent map function for [Dataset here](https:\/\/huggingface.co\/docs\/datasets\/v3.2.0\/en\/package_reference\/main_classes#datasets.Dataset.map).\n\nThere might be other parameters missing - I haven't checked.\n\n### Steps to reproduce the bug\n\nfrom datasets import Dataset, IterableDataset, IterableDatasetDict\n\nds = IterableDatasetDict({\"train\": Dataset.from_dict({\"a\": range(6)}).to_iterable_dataset(num_shards=3), \n \"validate\": Dataset.from_dict({\"a\": range(6)}).to_iterable_dataset(num_shards=3)})\n\nfor d in ds[\"train\"]:\n print(d)\n\nds = ds.map(lambda x: {k: v+1 for k, v in x.items()}, desc=\"increment\")\n\nfor d in ds[\"train\"]:\n print(d)\n\n### Expected behavior\n\nThe description parameter should be available for all datasets (or none). \n\n### Environment info\n\n- `datasets` version: 3.2.0\n- Platform: Linux-6.1.85+-x86_64-with-glibc2.35\n- Python version: 3.11.11\n- `huggingface_hub` version: 0.28.1\n- PyArrow version: 17.0.0\n- Pandas version: 2.2.2\n- `fsspec` version: 2024.9.0","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7399\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7399\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7398","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7398\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7398\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7398\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7398","id":2853097869,"node_id":"PR_kwDODunzps6LNoDk","number":7398,"title":"Release: 3.3.0","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-02-14T09:15:03Z","updated_at":"2025-02-14T09:57:39Z","closed_at":"2025-02-14T09:57:37Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7398","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7398","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7398.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7398.patch","merged_at":"2025-02-14T09:57:37Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7398\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7398\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7397","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7397\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7397\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7397\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7397","id":2852829763,"node_id":"PR_kwDODunzps6LMuQD","number":7397,"title":"Kannada dataset(Conversations, Wikipedia etc)","user":{"login":"Likhith2612","id":146451281,"node_id":"U_kgDOCLqrUQ","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/146451281?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Likhith2612","html_url":"https:\/\/github.com\/Likhith2612","followers_url":"https:\/\/api.github.com\/users\/Likhith2612\/followers","following_url":"https:\/\/api.github.com\/users\/Likhith2612\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Likhith2612\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Likhith2612\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Likhith2612\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Likhith2612\/orgs","repos_url":"https:\/\/api.github.com\/users\/Likhith2612\/repos","events_url":"https:\/\/api.github.com\/users\/Likhith2612\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Likhith2612\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-02-14T06:53:03Z","updated_at":"2025-02-20T17:28:54Z","closed_at":"2025-02-20T17:28:53Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7397","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7397","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7397.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7397.patch","merged_at":null},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7397\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7397\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7400","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7400\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7400\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7400\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7400","id":2853201277,"node_id":"I_kwDODunzps6qEGV9","number":7400,"title":"504 Gateway Timeout when uploading large dataset to Hugging Face Hub","user":{"login":"hotchpotch","id":3500,"node_id":"MDQ6VXNlcjM1MDA=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/3500?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/hotchpotch","html_url":"https:\/\/github.com\/hotchpotch","followers_url":"https:\/\/api.github.com\/users\/hotchpotch\/followers","following_url":"https:\/\/api.github.com\/users\/hotchpotch\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/hotchpotch\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/hotchpotch\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/hotchpotch\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/hotchpotch\/orgs","repos_url":"https:\/\/api.github.com\/users\/hotchpotch\/repos","events_url":"https:\/\/api.github.com\/users\/hotchpotch\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/hotchpotch\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2025-02-14T02:18:35Z","updated_at":"2025-02-14T23:48:36Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Description\nI encountered consistent 504 Gateway Timeout errors while attempting to upload a large dataset (approximately 500GB) to the Hugging Face Hub. The upload fails during the process with a Gateway Timeout error.\n\nI will continue trying to upload. While it might succeed in future attempts, I wanted to report this issue in the meantime.\n\n### Reproduction\n- I attempted the upload 3 times\n- Each attempt resulted in the same 504 error during the upload process (not at the start, but in the middle of the upload)\n- Using `dataset.push_to_hub()` method\n\n### Environment Information\n\n\n```\n- huggingface_hub version: 0.28.0\n- Platform: Linux-6.8.0-52-generic-x86_64-with-glibc2.39\n- Python version: 3.11.10\n- Running in iPython ?: No\n- Running in notebook ?: No\n- Running in Google Colab ?: No\n- Running in Google Colab Enterprise ?: No\n- Token path ?: \/home\/hotchpotch\/.cache\/huggingface\/token\n- Has saved token ?: True\n- Who am I ?: hotchpotch\n- Configured git credential helpers: store\n- FastAI: N\/A\n- Tensorflow: N\/A\n- Torch: 2.5.1\n- Jinja2: 3.1.5\n- Graphviz: N\/A\n- keras: N\/A\n- Pydot: N\/A\n- Pillow: 10.4.0\n- hf_transfer: N\/A\n- gradio: N\/A\n- tensorboard: N\/A\n- numpy: 1.26.4\n- pydantic: 2.10.6\n- aiohttp: 3.11.11\n- ENDPOINT: https:\/\/huggingface.co\n- HF_HUB_CACHE: \/home\/hotchpotch\/.cache\/huggingface\/hub\n- HF_ASSETS_CACHE: \/home\/hotchpotch\/.cache\/huggingface\/assets\n- HF_TOKEN_PATH: \/home\/hotchpotch\/.cache\/huggingface\/token\n- HF_STORED_TOKENS_PATH: \/home\/hotchpotch\/.cache\/huggingface\/stored_tokens\n- HF_HUB_OFFLINE: False\n- HF_HUB_DISABLE_TELEMETRY: False\n- HF_HUB_DISABLE_PROGRESS_BARS: None\n- HF_HUB_DISABLE_SYMLINKS_WARNING: False\n- HF_HUB_DISABLE_EXPERIMENTAL_WARNING: False\n- HF_HUB_DISABLE_IMPLICIT_TOKEN: False\n- HF_HUB_ENABLE_HF_TRANSFER: False\n- HF_HUB_ETAG_TIMEOUT: 10\n- HF_HUB_DOWNLOAD_TIMEOUT: 10\n\n```\n\n\n\n### Full Error Traceback\n\n```python\nTraceback (most recent call last):\n File \"\/home\/hotchpotch\/src\/github.com\/hotchpotch\/fineweb-2-edu-classifier-japanese\/.venv\/lib\/python3.11\/site-packages\/huggingface_hub\/utils\/_http.py\", line 406, in hf_raise_for_status\n response.raise_for_status()\n File \"\/home\/hotchpotch\/src\/github.com\/hotchpotch\/fineweb-2-edu-classifier-japanese\/.venv\/lib\/python3.11\/site-packages\/requests\/models.py\", line 1024, in raise_for_status\n raise HTTPError(http_error_msg, response=self)\nrequests.exceptions.HTTPError: 504 Server Error: Gateway Time-out for url: https:\/\/huggingface.co\/datasets\/hotchpotch\/fineweb-2-edu-japanese.git\/info\/lfs\/objects\/batch\n\nThe above exception was the direct cause of the following exception:\n\nTraceback (most recent call last):\n File \"\/home\/hotchpotch\/src\/github.com\/hotchpotch\/fineweb-2-edu-classifier-japanese\/create_edu_japanese_ds\/upload_edu_japanese_ds.py\", line 12, in \n ds.push_to_hub(\"hotchpotch\/fineweb-2-edu-japanese\", private=True)\n File \"\/home\/hotchpotch\/src\/github.com\/hotchpotch\/fineweb-2-edu-classifier-japanese\/.venv\/lib\/python3.11\/site-packages\/datasets\/dataset_dict.py\", line 1665, in push_to_hub\n split_additions, uploaded_size, dataset_nbytes = self[split]._push_parquet_shards_to_hub(\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"\/home\/hotchpotch\/src\/github.com\/hotchpotch\/fineweb-2-edu-classifier-japanese\/.venv\/lib\/python3.11\/site-packages\/datasets\/arrow_dataset.py\", line 5301, in _push_parquet_shards_to_hub\n api.preupload_lfs_files(\n File \"\/home\/hotchpotch\/src\/github.com\/hotchpotch\/fineweb-2-edu-classifier-japanese\/.venv\/lib\/python3.11\/site-packages\/huggingface_hub\/hf_api.py\", line 4215, in preupload_lfs_files\n _upload_lfs_files(\n File \"\/home\/hotchpotch\/src\/github.com\/hotchpotch\/fineweb-2-edu-classifier-japanese\/.venv\/lib\/python3.11\/site-packages\/huggingface_hub\/utils\/_validators.py\", line 114, in _inner_fn\n return fn(*args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^\n File \"\/home\/hotchpotch\/src\/github.com\/hotchpotch\/fineweb-2-edu-classifier-japanese\/.venv\/lib\/python3.11\/site-packages\/huggingface_hub\/_commit_api.py\", line 395, in _upload_lfs_files\n batch_actions_chunk, batch_errors_chunk = post_lfs_batch_info(\n ^^^^^^^^^^^^^^^^^^^^\n File \"\/home\/hotchpotch\/src\/github.com\/hotchpotch\/fineweb-2-edu-classifier-japanese\/.venv\/lib\/python3.11\/site-packages\/huggingface_hub\/utils\/_validators.py\", line 114, in _inner_fn\n return fn(*args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^\n File \"\/home\/hotchpotch\/src\/github.com\/hotchpotch\/fineweb-2-edu-classifier-japanese\/.venv\/lib\/python3.11\/site-packages\/huggingface_hub\/lfs.py\", line 168, in post_lfs_batch_info\n hf_raise_for_status(resp)\n File \"\/home\/hotchpotch\/src\/github.com\/hotchpotch\/fineweb-2-edu-classifier-japanese\/.venv\/lib\/python3.11\/site-packages\/huggingface_hub\/utils\/_http.py\", line 477, in hf_raise_for_status\n raise _format(HfHubHTTPError, str(e), response) from e\nhuggingface_hub.errors.HfHubHTTPError: 504 Server Error: Gateway Time-out for url: https:\/\/huggingface.co\/datasets\/hotchpotch\/fineweb-2-edu-japanese.git\/info\/lfs\/objects\/batch\n```\n","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7400\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7400\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7396","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7396\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7396\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7396\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7396","id":2851716755,"node_id":"PR_kwDODunzps6LJBmT","number":7396,"title":"Update README.md","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-02-13T17:44:36Z","updated_at":"2025-02-13T17:46:57Z","closed_at":"2025-02-13T17:44:51Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7396","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7396","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7396.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7396.patch","merged_at":"2025-02-13T17:44:51Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7396\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7396\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7395","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7395\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7395\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7395\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7395","id":2851575160,"node_id":"PR_kwDODunzps6LIivQ","number":7395,"title":"Update docs","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-02-13T16:43:15Z","updated_at":"2025-02-13T17:20:32Z","closed_at":"2025-02-13T17:20:30Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7395","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7395","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7395.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7395.patch","merged_at":"2025-02-13T17:20:29Z"},"body":"- update min python version\r\n- replace canonical dataset names with new names\r\n- avoid examples with trust_remote_code","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7395\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7395\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7394","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7394\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7394\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7394\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7394","id":2847172115,"node_id":"I_kwDODunzps6ptGYT","number":7394,"title":"Using load_dataset with data_files and split arguments yields an error","user":{"login":"devon-research","id":61103399,"node_id":"MDQ6VXNlcjYxMTAzMzk5","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/61103399?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/devon-research","html_url":"https:\/\/github.com\/devon-research","followers_url":"https:\/\/api.github.com\/users\/devon-research\/followers","following_url":"https:\/\/api.github.com\/users\/devon-research\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/devon-research\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/devon-research\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/devon-research\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/devon-research\/orgs","repos_url":"https:\/\/api.github.com\/users\/devon-research\/repos","events_url":"https:\/\/api.github.com\/users\/devon-research\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/devon-research\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-02-12T04:50:11Z","updated_at":"2025-02-12T04:50:11Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nIt seems the list of valid splits recorded by the package becomes incorrectly overwritten when using the `data_files` argument.\n\nIf I run\n```python\nfrom datasets import load_dataset\nload_dataset(\"allenai\/super\", split=\"all_examples\", data_files=\"tasks\/expert.jsonl\")\n```\nthen I get the error\n```\nValueError: Unknown split \"all_examples\". Should be one of ['train'].\n```\n\nHowever, if I run\n```python\nfrom datasets import load_dataset\nload_dataset(\"allenai\/super\", split=\"train\", name=\"Expert\")\n```\nthen I get\n```\nValueError: Unknown split \"train\". Should be one of ['all_examples'].\n```\n\n### Steps to reproduce the bug\n\nRun\n```python\nfrom datasets import load_dataset\nload_dataset(\"allenai\/super\", split=\"all_examples\", data_files=\"tasks\/expert.jsonl\")\n```\n\n### Expected behavior\n\nNo error.\n\n### Environment info\n\nPython = 3.12\ndatasets = 3.2.0","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7394\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7394\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7393","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7393\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7393\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7393\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7393","id":2846446674,"node_id":"PR_kwDODunzps6K3DiZ","number":7393,"title":"Optimized sequence encoding for scalars","user":{"login":"lukasgd","id":38319063,"node_id":"MDQ6VXNlcjM4MzE5MDYz","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/38319063?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lukasgd","html_url":"https:\/\/github.com\/lukasgd","followers_url":"https:\/\/api.github.com\/users\/lukasgd\/followers","following_url":"https:\/\/api.github.com\/users\/lukasgd\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lukasgd\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lukasgd\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lukasgd\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lukasgd\/orgs","repos_url":"https:\/\/api.github.com\/users\/lukasgd\/repos","events_url":"https:\/\/api.github.com\/users\/lukasgd\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lukasgd\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-02-11T20:30:44Z","updated_at":"2025-02-13T17:11:33Z","closed_at":"2025-02-13T17:11:32Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7393","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7393","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7393.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7393.patch","merged_at":"2025-02-13T17:11:32Z"},"body":"The change in https:\/\/github.com\/huggingface\/datasets\/pull\/3197 introduced redundant list-comprehensions when `obj` is a long sequence of scalars. This becomes a noticeable overhead when loading data from an `IterableDataset` in the function `_apply_feature_types_on_example` and can be eliminated by adding a check for scalars in `encode_nested_example` proposed here. \r\n\r\nIn the following code example\r\n```\r\nimport time\r\nfrom datasets.features import Sequence, Value\r\nfrom datasets.features.features import encode_nested_example\r\n\r\nschema = Sequence(Value(\"int32\"))\r\nobj = list(range(100000))\r\n\r\nstart = time.perf_counter()\r\nresult = encode_nested_example(schema, obj)\r\nstop = time.perf_counter()\r\n\r\nprint(f\"Time spent is {stop-start} sec\")\r\n```\r\n`encode_nested_example` becomes 492x faster (from 0.0769 to 0.0002 sec), respectively 322x (from 0.00814 to 0.00003 sec) for a list of length 10000, on a GH200 system, making it unnoticeable when loading data with tokenization.\r\n\r\nAnother change is made to avoid creating arrays from scalars and afterwards re-extracting them during casting to python (`obj == obj.__array__()[()]` in that case), which avoids a regression in the array write benchmarks.","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7393\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7393\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7392","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7392\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7392\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7392\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7392","id":2846095043,"node_id":"I_kwDODunzps6po_bD","number":7392,"title":"push_to_hub payload too large error when using large ClassLabel feature","user":{"login":"DavidRConnell","id":35470740,"node_id":"MDQ6VXNlcjM1NDcwNzQw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/35470740?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/DavidRConnell","html_url":"https:\/\/github.com\/DavidRConnell","followers_url":"https:\/\/api.github.com\/users\/DavidRConnell\/followers","following_url":"https:\/\/api.github.com\/users\/DavidRConnell\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/DavidRConnell\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/DavidRConnell\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/DavidRConnell\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/DavidRConnell\/orgs","repos_url":"https:\/\/api.github.com\/users\/DavidRConnell\/repos","events_url":"https:\/\/api.github.com\/users\/DavidRConnell\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/DavidRConnell\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-02-11T17:51:34Z","updated_at":"2025-02-11T18:01:31Z","closed_at":null,"author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nWhen using `datasets.DatasetDict.push_to_hub` an `HfHubHTTPError: 413 Client Error: Payload Too Large for url` is raised if the dataset contains a large `ClassLabel` feature. Even if the total size of the dataset is small.\n\n### Steps to reproduce the bug\n\n``` python\nimport random\nimport sys\n\nimport datasets\n\nrandom.seed(42)\n\n\ndef random_str(sz):\n return \"\".join(chr(random.randint(ord(\"a\"), ord(\"z\"))) for _ in range(sz))\n\n\ndata = datasets.DatasetDict(\n {\n str(i): datasets.Dataset.from_dict(\n {\n \"label\": [list(range(3)) for _ in range(10)],\n \"abstract\": [random_str(10_000) for _ in range(10)],\n },\n )\n for i in range(3)\n }\n)\nfeatures = data[\"1\"].features.copy()\nfeatures[\"label\"] = datasets.Sequence(\n datasets.ClassLabel(names=[str(i) for i in range(50_000)])\n)\ndata = data.map(lambda examples: {}, features=features)\n\nfeat_size = sys.getsizeof(data[\"1\"].features[\"label\"].feature.names)\nprint(f\"Size of ClassLabel names: {feat_size}\")\n# Size of ClassLabel names: 444376\n\n\ndata.push_to_hub(\"dconnell\/pubtator3_test\")\n```\n\nNote that this succeeds if `ClassLabel` has fewer names or if `ClassLabel` is replaced with `Value(\"int64\")`\n\n\n### Expected behavior\n\nShould push the dataset to hub.\n\n### Environment info\n\nCopy-and-paste the text below in your GitHub issue.\n\n- `datasets` version: 3.2.0\n- Platform: Linux-5.15.0-126-generic-x86_64-with-glibc2.35\n- Python version: 3.12.8\n- `huggingface_hub` version: 0.28.1\n- PyArrow version: 19.0.0\n- Pandas version: 2.2.3\n- `fsspec` version: 2024.9.0\n","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7392\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7392\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7391","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7391\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7391\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7391\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7391","id":2845184764,"node_id":"I_kwDODunzps6plhL8","number":7391,"title":"AttributeError: module 'pyarrow.lib' has no attribute 'ListViewType'","user":{"login":"LinXin04","id":25193686,"node_id":"MDQ6VXNlcjI1MTkzNjg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/25193686?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/LinXin04","html_url":"https:\/\/github.com\/LinXin04","followers_url":"https:\/\/api.github.com\/users\/LinXin04\/followers","following_url":"https:\/\/api.github.com\/users\/LinXin04\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/LinXin04\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/LinXin04\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/LinXin04\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/LinXin04\/orgs","repos_url":"https:\/\/api.github.com\/users\/LinXin04\/repos","events_url":"https:\/\/api.github.com\/users\/LinXin04\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/LinXin04\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-02-11T12:02:26Z","updated_at":"2025-02-11T12:02:26Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"pyarrow \u5c1d\u8bd5\u4e86\u82e5\u5e72\u4e2a\u7248\u672c\u90fd\u4e0d\u53ef\u4ee5","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7391\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7391\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7390","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7390\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7390\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7390\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7390","id":2843813365,"node_id":"I_kwDODunzps6pgSX1","number":7390,"title":"Re-add py.typed","user":{"login":"NeilGirdhar","id":730137,"node_id":"MDQ6VXNlcjczMDEzNw==","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/730137?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/NeilGirdhar","html_url":"https:\/\/github.com\/NeilGirdhar","followers_url":"https:\/\/api.github.com\/users\/NeilGirdhar\/followers","following_url":"https:\/\/api.github.com\/users\/NeilGirdhar\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/NeilGirdhar\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/NeilGirdhar\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/NeilGirdhar\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/NeilGirdhar\/orgs","repos_url":"https:\/\/api.github.com\/users\/NeilGirdhar\/repos","events_url":"https:\/\/api.github.com\/users\/NeilGirdhar\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/NeilGirdhar\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-02-10T22:12:52Z","updated_at":"2025-08-10T00:51:17Z","closed_at":null,"author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nThe motivation for removing py.typed no longer seems to apply. Would a solution like [this one](https:\/\/github.com\/huggingface\/huggingface_hub\/pull\/2752) work here?\n\n### Motivation\n\nMyPy support is broken. As more type checkers come out, such as RedKnot, these may also be broken. It would be good to be PEP 561 compliant as long as it's not too onerous.\n\n### Your contribution\n\nI can re-add py.typed, but I don't know how to make sur all of the `__all__` files are provided (although you may not need to with modern PyRight).","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7390\/reactions","total_count":11,"+1":11,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7390\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7389","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7389\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7389\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7389\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7389","id":2843592606,"node_id":"I_kwDODunzps6pfcee","number":7389,"title":"Getting statistics about filtered examples","user":{"login":"jonathanasdf","id":511073,"node_id":"MDQ6VXNlcjUxMTA3Mw==","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/511073?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/jonathanasdf","html_url":"https:\/\/github.com\/jonathanasdf","followers_url":"https:\/\/api.github.com\/users\/jonathanasdf\/followers","following_url":"https:\/\/api.github.com\/users\/jonathanasdf\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/jonathanasdf\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/jonathanasdf\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/jonathanasdf\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/jonathanasdf\/orgs","repos_url":"https:\/\/api.github.com\/users\/jonathanasdf\/repos","events_url":"https:\/\/api.github.com\/users\/jonathanasdf\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/jonathanasdf\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-02-10T20:48:29Z","updated_at":"2025-02-11T20:44:15Z","closed_at":"2025-02-11T20:44:13Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"@lhoestq wondering if the team has thought about this and if there are any recommendations?\n\nCurrently when processing datasets some examples are bound to get filtered out, whether it's due to bad format, or length is too long, or any other custom filters that might be getting applied. Let's just focus on the filter by length for now, since that would be something that gets applied dynamically for each training run. Say we want to show a graph in W&B with the running total of the number of filtered examples so far.\n\nWhat would be a good way to go about hooking this up? Because the map\/filter operations happen before the DataLoader batches are created, at training time if we're just grabbing batches from the DataLoader then we won't know how many things have been filtered already. But there's not really a good way to include a 'num_filtered' key into the dataset itself either because dataset map\/filter process examples independently and don't have a way to track a running sum.\n\nThe only approach I can kind of think of is having a 'is_filtered' key in the dataset, and then creating a custom batcher\/collator that reads that and tracks the metric?","closed_by":{"login":"jonathanasdf","id":511073,"node_id":"MDQ6VXNlcjUxMTA3Mw==","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/511073?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/jonathanasdf","html_url":"https:\/\/github.com\/jonathanasdf","followers_url":"https:\/\/api.github.com\/users\/jonathanasdf\/followers","following_url":"https:\/\/api.github.com\/users\/jonathanasdf\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/jonathanasdf\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/jonathanasdf\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/jonathanasdf\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/jonathanasdf\/orgs","repos_url":"https:\/\/api.github.com\/users\/jonathanasdf\/repos","events_url":"https:\/\/api.github.com\/users\/jonathanasdf\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/jonathanasdf\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7389\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7389\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7388","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7388\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7388\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7388\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7388","id":2843188499,"node_id":"I_kwDODunzps6pd50T","number":7388,"title":"OSError: [Errno 22] Invalid argument forbidden character","user":{"login":"langflogit","id":124634542,"node_id":"U_kgDOB23Frg","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/124634542?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/langflogit","html_url":"https:\/\/github.com\/langflogit","followers_url":"https:\/\/api.github.com\/users\/langflogit\/followers","following_url":"https:\/\/api.github.com\/users\/langflogit\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/langflogit\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/langflogit\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/langflogit\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/langflogit\/orgs","repos_url":"https:\/\/api.github.com\/users\/langflogit\/repos","events_url":"https:\/\/api.github.com\/users\/langflogit\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/langflogit\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-02-10T17:46:31Z","updated_at":"2025-02-11T13:42:32Z","closed_at":"2025-02-11T13:42:30Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI'm on Windows and i'm trying to load a datasets but i'm having title error because files in the repository are named with charactere like < >which can't be in a name file. Could it be possible to load this datasets but removing those charactere ?\n\n### Steps to reproduce the bug\n\nload_dataset(\"CATMuS\/medieval\") on Windows\n\n### Expected behavior\n\nMaking the function to erase the forbidden character to allow loading the datasets who have those characters. \n\n### Environment info\n\n- `datasets` version: 3.2.0\n- Platform: Windows-10-10.0.19045-SP0\n- Python version: 3.12.2\n- `huggingface_hub` version: 0.28.1\n- PyArrow version: 19.0.0\n- Pandas version: 2.2.3\n- `fsspec` version: 2024.9.0","closed_by":{"login":"langflogit","id":124634542,"node_id":"U_kgDOB23Frg","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/124634542?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/langflogit","html_url":"https:\/\/github.com\/langflogit","followers_url":"https:\/\/api.github.com\/users\/langflogit\/followers","following_url":"https:\/\/api.github.com\/users\/langflogit\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/langflogit\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/langflogit\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/langflogit\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/langflogit\/orgs","repos_url":"https:\/\/api.github.com\/users\/langflogit\/repos","events_url":"https:\/\/api.github.com\/users\/langflogit\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/langflogit\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7388\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7388\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7387","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7387\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7387\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7387\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7387","id":2841228048,"node_id":"I_kwDODunzps6pWbMQ","number":7387,"title":"Dynamic adjusting dataloader sampling weight","user":{"login":"whc688","id":72799643,"node_id":"MDQ6VXNlcjcyNzk5NjQz","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/72799643?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/whc688","html_url":"https:\/\/github.com\/whc688","followers_url":"https:\/\/api.github.com\/users\/whc688\/followers","following_url":"https:\/\/api.github.com\/users\/whc688\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/whc688\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/whc688\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/whc688\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/whc688\/orgs","repos_url":"https:\/\/api.github.com\/users\/whc688\/repos","events_url":"https:\/\/api.github.com\/users\/whc688\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/whc688\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2025-02-10T03:18:47Z","updated_at":"2025-03-07T14:06:54Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"Hi,\nThanks for your wonderful work! I'm wondering is there a way to dynamically adjust the sampling weight of each data in the dataset during training? Looking forward to your reply, thanks again.","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7387\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7387\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7386","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7386\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7386\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7386\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7386","id":2840032524,"node_id":"I_kwDODunzps6pR3UM","number":7386,"title":"Add bookfolder Dataset Builder for Digital Book Formats","user":{"login":"shikanime","id":22115108,"node_id":"MDQ6VXNlcjIyMTE1MTA4","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/22115108?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/shikanime","html_url":"https:\/\/github.com\/shikanime","followers_url":"https:\/\/api.github.com\/users\/shikanime\/followers","following_url":"https:\/\/api.github.com\/users\/shikanime\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/shikanime\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/shikanime\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/shikanime\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/shikanime\/orgs","repos_url":"https:\/\/api.github.com\/users\/shikanime\/repos","events_url":"https:\/\/api.github.com\/users\/shikanime\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/shikanime\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-02-08T14:27:55Z","updated_at":"2025-02-08T14:30:10Z","closed_at":"2025-02-08T14:30:09Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nThis feature proposes adding a new dataset builder called bookfolder to the datasets library. This builder would allow users to easily load datasets consisting of various digital book formats, including: AZW, AZW3, CB7, CBR, CBT, CBZ, EPUB, MOBI, and PDF.\n\n### Motivation\n\nCurrently, loading datasets of these digital book files requires manual effort. This would also lower the barrier to entry for working with these formats, enabling more diverse and interesting datasets to be used within the Hugging Face ecosystem.\n\n### Your contribution\n\nThis feature is rather simple as it will be based on the folder-based builder, similar to imagefolder. I'm willing to contribute to this feature by submitting a PR","closed_by":{"login":"shikanime","id":22115108,"node_id":"MDQ6VXNlcjIyMTE1MTA4","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/22115108?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/shikanime","html_url":"https:\/\/github.com\/shikanime","followers_url":"https:\/\/api.github.com\/users\/shikanime\/followers","following_url":"https:\/\/api.github.com\/users\/shikanime\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/shikanime\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/shikanime\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/shikanime\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/shikanime\/orgs","repos_url":"https:\/\/api.github.com\/users\/shikanime\/repos","events_url":"https:\/\/api.github.com\/users\/shikanime\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/shikanime\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7386\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7386\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7385","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7385\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7385\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7385\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7385","id":2830664522,"node_id":"PR_kwDODunzps6KBO6i","number":7385,"title":"Make IterableDataset (optionally) resumable","user":{"login":"yzhangcs","id":18402347,"node_id":"MDQ6VXNlcjE4NDAyMzQ3","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/18402347?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/yzhangcs","html_url":"https:\/\/github.com\/yzhangcs","followers_url":"https:\/\/api.github.com\/users\/yzhangcs\/followers","following_url":"https:\/\/api.github.com\/users\/yzhangcs\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/yzhangcs\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/yzhangcs\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/yzhangcs\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/yzhangcs\/orgs","repos_url":"https:\/\/api.github.com\/users\/yzhangcs\/repos","events_url":"https:\/\/api.github.com\/users\/yzhangcs\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/yzhangcs\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-02-04T15:55:33Z","updated_at":"2025-03-03T17:31:40Z","closed_at":null,"author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7385","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7385","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7385.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7385.patch","merged_at":null},"body":"### What does this PR do?\r\nThis PR introduces a new `stateful` option to the `dataset.shuffle` method, which defaults to `False`. \r\nWhen enabled, this option allows for resumable shuffling of `IterableDataset` instances, albeit with some additional memory overhead.\r\n\r\nKey points:\r\n* All tests have passed\r\n* Docstrings have been updated to reflect the new functionality\r\n\r\nI'm very looking forward to receiving feedback on this implementation! @lhoestq","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7385\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7385\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7384","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7384\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7384\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7384\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7384","id":2828208828,"node_id":"PR_kwDODunzps6J4wVi","number":7384,"title":"Support async functions in map()","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-02-03T18:18:40Z","updated_at":"2025-02-13T14:01:13Z","closed_at":"2025-02-13T14:00:06Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7384","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7384","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7384.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7384.patch","merged_at":"2025-02-13T14:00:06Z"},"body":"e.g. to download images or call an inference API like HF or vLLM\r\n\r\n```python\r\nimport asyncio\r\nimport random\r\n\r\nfrom datasets import Dataset\r\n\r\n\r\nasync def f(x):\r\n await asyncio.sleep(random.random())\r\n\r\nds = Dataset.from_dict({\"data\": range(100)})\r\nds.map(f)\r\n# Map: 100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 100\/100 [00:01<00:00, 99.81 examples\/s]\r\n```\r\n\r\nTODO\r\n- [x] clean code (right now it's a big copy paste)\r\n- [x] batched\r\n- [x] Dataset.map()\r\n- [x] IterableDataset.map()\r\n- [x] Dataset.filter()\r\n- [x] IterableDataset.filter()\r\n- [x] test\r\n- [x] docs","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7384\/reactions","total_count":3,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":3,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7384\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7382","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7382\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7382\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7382\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7382","id":2823480924,"node_id":"PR_kwDODunzps6Jo69f","number":7382,"title":"Add Pandas, PyArrow and Polars docs","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-01-31T13:22:59Z","updated_at":"2025-01-31T16:30:59Z","closed_at":"2025-01-31T16:30:57Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7382","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7382","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7382.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7382.patch","merged_at":"2025-01-31T16:30:57Z"},"body":"(also added the missing numpy docs and fixed a small bug in pyarrow formatting)","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7382\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7382\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7381","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7381\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7381\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7381\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7381","id":2815649092,"node_id":"I_kwDODunzps6n02VE","number":7381,"title":"Iterating over values of a column in the IterableDataset","user":{"login":"TopCoder2K","id":47208659,"node_id":"MDQ6VXNlcjQ3MjA4NjU5","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/47208659?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/TopCoder2K","html_url":"https:\/\/github.com\/TopCoder2K","followers_url":"https:\/\/api.github.com\/users\/TopCoder2K\/followers","following_url":"https:\/\/api.github.com\/users\/TopCoder2K\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/TopCoder2K\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/TopCoder2K\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/TopCoder2K\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/TopCoder2K\/orgs","repos_url":"https:\/\/api.github.com\/users\/TopCoder2K\/repos","events_url":"https:\/\/api.github.com\/users\/TopCoder2K\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/TopCoder2K\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"closed","locked":false,"assignee":{"login":"TopCoder2K","id":47208659,"node_id":"MDQ6VXNlcjQ3MjA4NjU5","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/47208659?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/TopCoder2K","html_url":"https:\/\/github.com\/TopCoder2K","followers_url":"https:\/\/api.github.com\/users\/TopCoder2K\/followers","following_url":"https:\/\/api.github.com\/users\/TopCoder2K\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/TopCoder2K\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/TopCoder2K\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/TopCoder2K\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/TopCoder2K\/orgs","repos_url":"https:\/\/api.github.com\/users\/TopCoder2K\/repos","events_url":"https:\/\/api.github.com\/users\/TopCoder2K\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/TopCoder2K\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"TopCoder2K","id":47208659,"node_id":"MDQ6VXNlcjQ3MjA4NjU5","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/47208659?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/TopCoder2K","html_url":"https:\/\/github.com\/TopCoder2K","followers_url":"https:\/\/api.github.com\/users\/TopCoder2K\/followers","following_url":"https:\/\/api.github.com\/users\/TopCoder2K\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/TopCoder2K\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/TopCoder2K\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/TopCoder2K\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/TopCoder2K\/orgs","repos_url":"https:\/\/api.github.com\/users\/TopCoder2K\/repos","events_url":"https:\/\/api.github.com\/users\/TopCoder2K\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/TopCoder2K\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":11,"created_at":"2025-01-28T13:17:36Z","updated_at":"2025-05-22T18:00:04Z","closed_at":"2025-05-22T18:00:04Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nI would like to be able to iterate (and re-iterate if needed) over a column of an `IterableDataset` instance. The following example shows the supposed API:\n```python\ndef gen():\n yield {\"text\": \"Good\", \"label\": 0}\n yield {\"text\": \"Bad\", \"label\": 1}\n\nds = IterableDataset.from_generator(gen)\ntexts = ds[\"text\"]\n\nfor v in texts:\n print(v) # Prints \"Good\" and \"Bad\"\n\nfor v in texts:\n print(v) # Prints \"Good\" and \"Bad\" again\n```\n\n### Motivation\n\nIn the real world problems, huge NNs like Transformer are not always the best option, so there is a need to conduct experiments with different methods. While \ud83e\udd17Datasets is perfectly adapted to \ud83e\udd17Transformers, it may be inconvenient when being used with other libraries. The ability to retrieve a particular column is the case (e.g., gensim's FastText [requires](https:\/\/radimrehurek.com\/gensim\/models\/fasttext.html#gensim.models.fasttext.FastText.train) only lists of strings, not dictionaries).\nWhile there are ways to achieve the desired functionality, they are not good ([forum](https:\/\/discuss.huggingface.co\/t\/how-to-iterate-over-values-of-a-column-in-the-iterabledataset\/135649)). It would be great if there was a built-in solution.\n\n### Your contribution\n\nTheoretically, I can submit a PR, but I have very little knowledge of the internal structure of \ud83e\udd17Datasets, so some help may be needed.\nMoreover, I can only work on weekends, since I have a full-time job. However, the feature does not seem to be popular, so there is no need to implement it as fast as possible.","closed_by":{"login":"TopCoder2K","id":47208659,"node_id":"MDQ6VXNlcjQ3MjA4NjU5","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/47208659?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/TopCoder2K","html_url":"https:\/\/github.com\/TopCoder2K","followers_url":"https:\/\/api.github.com\/users\/TopCoder2K\/followers","following_url":"https:\/\/api.github.com\/users\/TopCoder2K\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/TopCoder2K\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/TopCoder2K\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/TopCoder2K\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/TopCoder2K\/orgs","repos_url":"https:\/\/api.github.com\/users\/TopCoder2K\/repos","events_url":"https:\/\/api.github.com\/users\/TopCoder2K\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/TopCoder2K\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7381\/reactions","total_count":1,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7381\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7380","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7380\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7380\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7380\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7380","id":2811566116,"node_id":"PR_kwDODunzps6JAkj5","number":7380,"title":"fix: dill default for version bigger 0.3.8","user":{"login":"sam-hey","id":40773225,"node_id":"MDQ6VXNlcjQwNzczMjI1","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/40773225?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/sam-hey","html_url":"https:\/\/github.com\/sam-hey","followers_url":"https:\/\/api.github.com\/users\/sam-hey\/followers","following_url":"https:\/\/api.github.com\/users\/sam-hey\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/sam-hey\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/sam-hey\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/sam-hey\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/sam-hey\/orgs","repos_url":"https:\/\/api.github.com\/users\/sam-hey\/repos","events_url":"https:\/\/api.github.com\/users\/sam-hey\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/sam-hey\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-01-26T13:37:16Z","updated_at":"2025-03-13T20:40:19Z","closed_at":"2025-03-13T20:40:19Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7380","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7380","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7380.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7380.patch","merged_at":null},"body":"Fixes def log for dill version >= 0.3.9 \r\nhttps:\/\/pypi.org\/project\/dill\/\r\n\r\nThis project uses dill with the release of version 0.3.9 the datasets lib. ","closed_by":{"login":"sam-hey","id":40773225,"node_id":"MDQ6VXNlcjQwNzczMjI1","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/40773225?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/sam-hey","html_url":"https:\/\/github.com\/sam-hey","followers_url":"https:\/\/api.github.com\/users\/sam-hey\/followers","following_url":"https:\/\/api.github.com\/users\/sam-hey\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/sam-hey\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/sam-hey\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/sam-hey\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/sam-hey\/orgs","repos_url":"https:\/\/api.github.com\/users\/sam-hey\/repos","events_url":"https:\/\/api.github.com\/users\/sam-hey\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/sam-hey\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7380\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7380\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7378","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7378\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7378\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7378\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7378","id":2802957388,"node_id":"I_kwDODunzps6nEbxM","number":7378,"title":"Allow pushing config version to hub","user":{"login":"momeara","id":129072,"node_id":"MDQ6VXNlcjEyOTA3Mg==","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/129072?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/momeara","html_url":"https:\/\/github.com\/momeara","followers_url":"https:\/\/api.github.com\/users\/momeara\/followers","following_url":"https:\/\/api.github.com\/users\/momeara\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/momeara\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/momeara\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/momeara\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/momeara\/orgs","repos_url":"https:\/\/api.github.com\/users\/momeara\/repos","events_url":"https:\/\/api.github.com\/users\/momeara\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/momeara\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-01-21T22:35:07Z","updated_at":"2025-01-30T13:56:56Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nCurrently, when datasets are created, they can be versioned by passing the `version` argument to `load_dataset(...)`. For example creating `outcomes.csv` on the command line\n\n```\necho \"id,value\\n1,0\\n2,0\\n3,1\\n4,1\\n\" > outcomes.csv\n```\nand creating it\n```\nimport datasets\ndataset = datasets.load_dataset(\n \"csv\",\n data_files =\"outcomes.csv\",\n keep_in_memory = True,\n version = '1.0.0')\n```\n\nThe version info is stored in the `info` and can be accessed e.g. by `next(iter(dataset.values())).info.version`\n\nThis dataset can be uploaded to the hub with `dataset.push_to_hub(repo_id = \"maomlab\/example_dataset\")`. This will create a dataset on the hub with the following in the `README.md`, but it doesn't upload the version information:\n\n```\n---\ndataset_info:\n features:\n - name: id\n dtype: int64\n - name: value\n dtype: int64\n splits:\n - name: train\n num_bytes: 64\n num_examples: 4\n download_size: 1332\n dataset_size: 64\nconfigs:\n- config_name: default\n data_files:\n - split: train\n path: data\/train-*\n---\n```\n\nHowever, when I download from the hub, the version information is missing:\n\n```\ndataset_from_hub_no_version = datasets.load_dataset(\"maomlab\/example_dataset\")\nnext(iter(dataset.values())).info.version\n```\n\nI can add the version information manually to the hub, by appending it to the end of config section:\n\n```\n...\nconfigs:\n- config_name: default\n data_files:\n - split: train\n path: data\/train-*\n version: 1.0.0\n---\n```\n\nAnd then when I download it, the version information is correct.\n\n\n\n\n\n### Motivation\n\n### Why adding version information for each config makes sense\n 1. The version information is already recorded in the dataset config info data structure and is able to parse it correctly, so it makes sense to sync it with `push_to_hub`. \n 2. Keeping the version info in at the config level is different from version info at the branch level. As the former relates to the version of the specific dataset the config refers to rather than the version of the dataset curation itself.\n\n## A explanation for the current behavior:\nIn [datasets\/src\/datasets\/info.py:159](https:\/\/github.com\/huggingface\/datasets\/blob\/fb91fd3c9ea91a818681a777faf8d0c46f14c680\/src\/datasets\/info.py#L159C1-L160C1\n), the `_INCLUDED_INFO_IN_YAML` variable doesn't include `\"version\"`.\n\nIf my reading of the code is right, adding `\"version\"` to `_INCLUDED_INFO_IN_YAML`, would allow the version information to be uploaded to the hub.\n\n### Your contribution\n\nRequest: add `\"version\"` to `_INCLUDE_INFO_IN_YAML` in [datasets\/src\/datasets\/info.py:159](https:\/\/github.com\/huggingface\/datasets\/blob\/fb91fd3c9ea91a818681a777faf8d0c46f14c680\/src\/datasets\/info.py#L159C1-L160C1\n)\n","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7378\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7378\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7377","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7377\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7377\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7377\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7377","id":2802723285,"node_id":"I_kwDODunzps6nDinV","number":7377,"title":"Support for sparse arrays with the Arrow Sparse Tensor format?","user":{"login":"JulesGM","id":3231217,"node_id":"MDQ6VXNlcjMyMzEyMTc=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/3231217?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/JulesGM","html_url":"https:\/\/github.com\/JulesGM","followers_url":"https:\/\/api.github.com\/users\/JulesGM\/followers","following_url":"https:\/\/api.github.com\/users\/JulesGM\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/JulesGM\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/JulesGM\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/JulesGM\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/JulesGM\/orgs","repos_url":"https:\/\/api.github.com\/users\/JulesGM\/repos","events_url":"https:\/\/api.github.com\/users\/JulesGM\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/JulesGM\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-01-21T20:14:35Z","updated_at":"2025-01-30T14:06:45Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nAI in biology is becoming a big thing. One thing that would be a huge benefit to the field that Huggingface Datasets doesn't currently have is native support for **sparse arrays**. \n\n\nArrow has support for sparse tensors. \nhttps:\/\/arrow.apache.org\/docs\/format\/Other.html#sparse-tensor\n\n\nIt would be a big deal if Hugging Face Datasets supported sparse tensors as a feature type, natively. \n\n\n### Motivation\n\nThis is important for example in the field of transcriptomics (modeling and understanding gene expression), because a large fraction of the genes are not expressed (zero). More generally, in science, sparse arrays are very common, so adding support for them would be very benefitial, it would make just using Hugging Face Dataset objects a lot more straightforward and clean.\n\n\n### Your contribution\n\nWe can discuss this further once the team comments of what they think about the feature, and if there were previous attempts at making it work, and understanding their evaluation of how hard it would be. My intuition is that it should be fairly straightforward, as the Arrow backend already supports it.","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7377\/reactions","total_count":4,"+1":2,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":2},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7377\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7376","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7376\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7376\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7376\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7376","id":2802621104,"node_id":"PR_kwDODunzps6IiO9j","number":7376,"title":"[docs] uv install","user":{"login":"stevhliu","id":59462357,"node_id":"MDQ6VXNlcjU5NDYyMzU3","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/59462357?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/stevhliu","html_url":"https:\/\/github.com\/stevhliu","followers_url":"https:\/\/api.github.com\/users\/stevhliu\/followers","following_url":"https:\/\/api.github.com\/users\/stevhliu\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/stevhliu\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/stevhliu\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/stevhliu\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/stevhliu\/orgs","repos_url":"https:\/\/api.github.com\/users\/stevhliu\/repos","events_url":"https:\/\/api.github.com\/users\/stevhliu\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/stevhliu\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-01-21T19:15:48Z","updated_at":"2025-03-14T20:16:35Z","closed_at":"2025-03-14T20:16:35Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7376","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7376","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7376.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7376.patch","merged_at":null},"body":"Proposes adding uv to installation docs (see Slack thread [here](https:\/\/huggingface.slack.com\/archives\/C01N44FJDHT\/p1737377177709279) for more context) if you're interested!","closed_by":{"login":"stevhliu","id":59462357,"node_id":"MDQ6VXNlcjU5NDYyMzU3","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/59462357?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/stevhliu","html_url":"https:\/\/github.com\/stevhliu","followers_url":"https:\/\/api.github.com\/users\/stevhliu\/followers","following_url":"https:\/\/api.github.com\/users\/stevhliu\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/stevhliu\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/stevhliu\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/stevhliu\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/stevhliu\/orgs","repos_url":"https:\/\/api.github.com\/users\/stevhliu\/repos","events_url":"https:\/\/api.github.com\/users\/stevhliu\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/stevhliu\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7376\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7376\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7375","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7375\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7375\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7375\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7375","id":2800609218,"node_id":"I_kwDODunzps6m7efC","number":7375,"title":"vllm\u6279\u91cf\u63a8\u7406\u62a5\u9519","user":{"login":"YuShengzuishuai","id":51228154,"node_id":"MDQ6VXNlcjUxMjI4MTU0","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/51228154?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/YuShengzuishuai","html_url":"https:\/\/github.com\/YuShengzuishuai","followers_url":"https:\/\/api.github.com\/users\/YuShengzuishuai\/followers","following_url":"https:\/\/api.github.com\/users\/YuShengzuishuai\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/YuShengzuishuai\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/YuShengzuishuai\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/YuShengzuishuai\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/YuShengzuishuai\/orgs","repos_url":"https:\/\/api.github.com\/users\/YuShengzuishuai\/repos","events_url":"https:\/\/api.github.com\/users\/YuShengzuishuai\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/YuShengzuishuai\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-01-21T03:22:23Z","updated_at":"2025-01-30T14:02:40Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\n![Image](https:\/\/github.com\/user-attachments\/assets\/3d958e43-28dc-4467-9333-5990c7af3b3f)\n\n### Steps to reproduce the bug\n\n![Image](https:\/\/github.com\/user-attachments\/assets\/3067eeca-a54d-4956-b0fd-3fc5ea93dabb)\n\n### Expected behavior\n\n![Image](https:\/\/github.com\/user-attachments\/assets\/77d32936-488f-4572-9365-bfb4170e555b)\n\n### Environment info\n\n![Image](https:\/\/github.com\/user-attachments\/assets\/230335c4-825f-4db1-b07d-4776ef63ead8)","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7375\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7375\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7374","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7374\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7374\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7374\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7374","id":2793442320,"node_id":"PR_kwDODunzps6IC66n","number":7374,"title":"Remove .h5 from imagefolder extensions","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-01-16T18:17:24Z","updated_at":"2025-01-16T18:26:40Z","closed_at":"2025-01-16T18:26:38Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7374","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7374","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7374.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7374.patch","merged_at":"2025-01-16T18:26:38Z"},"body":"the format is not relevant for imagefolder, and makes the viewer fail to process datasets on HF (so many that the viewer takes more time to process new datasets)","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7374\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7374\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7373","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7373\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7373\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7373\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7373","id":2793237139,"node_id":"I_kwDODunzps6mfWqT","number":7373,"title":"Excessive RAM Usage After Dataset Concatenation concatenate_datasets","user":{"login":"sam-hey","id":40773225,"node_id":"MDQ6VXNlcjQwNzczMjI1","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/40773225?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/sam-hey","html_url":"https:\/\/github.com\/sam-hey","followers_url":"https:\/\/api.github.com\/users\/sam-hey\/followers","following_url":"https:\/\/api.github.com\/users\/sam-hey\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/sam-hey\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/sam-hey\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/sam-hey\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/sam-hey\/orgs","repos_url":"https:\/\/api.github.com\/users\/sam-hey\/repos","events_url":"https:\/\/api.github.com\/users\/sam-hey\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/sam-hey\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2025-01-16T16:33:10Z","updated_at":"2025-03-27T17:40:59Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nWhen loading a dataset from disk, concatenating it, and starting the training process, the RAM usage progressively increases until the kernel terminates the process due to excessive memory consumption.\n\nhttps:\/\/github.com\/huggingface\/datasets\/issues\/2276\n\n### Steps to reproduce the bug\n\n```python\nfrom datasets import DatasetDict, concatenate_datasets\n\ndataset = DatasetDict.load_from_disk(\"data\")\n\n...\n...\n\ncombined_dataset = concatenate_datasets(\n [dataset[split] for split in dataset]\n )\n\n#start SentenceTransformer training\n```\n\n### Expected behavior\n\nI would not expect RAM utilization to increase after concatenation. Removing the concatenation step resolves the issue\n\n### Environment info\n\nsentence-transformers==3.1.1\ndatasets==3.2.0\n\npython3.10","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7373\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7373\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7372","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7372\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7372\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7372\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7372","id":2791760968,"node_id":"I_kwDODunzps6mZuRI","number":7372,"title":"Inconsistent Behavior Between `load_dataset` and `load_from_disk` When Loading Sharded Datasets","user":{"login":"gaohongkui","id":38203359,"node_id":"MDQ6VXNlcjM4MjAzMzU5","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/38203359?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/gaohongkui","html_url":"https:\/\/github.com\/gaohongkui","followers_url":"https:\/\/api.github.com\/users\/gaohongkui\/followers","following_url":"https:\/\/api.github.com\/users\/gaohongkui\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/gaohongkui\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/gaohongkui\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/gaohongkui\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/gaohongkui\/orgs","repos_url":"https:\/\/api.github.com\/users\/gaohongkui\/repos","events_url":"https:\/\/api.github.com\/users\/gaohongkui\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/gaohongkui\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-01-16T05:47:20Z","updated_at":"2025-01-16T05:47:20Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Description\n\nI encountered an inconsistency in behavior between `load_dataset` and `load_from_disk` when loading sharded datasets. Here is a minimal example to reproduce the issue:\n\n#### Code 1: Using `load_dataset`\n```python\nfrom datasets import Dataset, load_dataset\n\n# First save with max_shard_size=10\nDataset.from_dict({\"id\": range(1000)}).train_test_split(test_size=0.1).save_to_disk(\"my_sharded_datasetdict\", max_shard_size=10)\n\n# Second save with max_shard_size=10\nDataset.from_dict({\"id\": range(500)}).train_test_split(test_size=0.1).save_to_disk(\"my_sharded_datasetdict\", max_shard_size=10)\n\n# Load the DatasetDict\nloaded_datasetdict = load_dataset(\"my_sharded_datasetdict\")\nprint(loaded_datasetdict)\n```\n**Output**:\n- `train` has 1350 samples.\n- `test` has 150 samples.\n\n#### Code 2: Using `load_from_disk`\n```python\nfrom datasets import Dataset, load_from_disk\n\n# First save with max_shard_size=10\nDataset.from_dict({\"id\": range(1000)}).train_test_split(test_size=0.1).save_to_disk(\"my_sharded_datasetdict\", max_shard_size=10)\n\n# Second save with max_shard_size=10\nDataset.from_dict({\"id\": range(500)}).train_test_split(test_size=0.1).save_to_disk(\"my_sharded_datasetdict\", max_shard_size=10)\n\n# Load the DatasetDict\nloaded_datasetdict = load_from_disk(\"my_sharded_datasetdict\")\nprint(loaded_datasetdict)\n```\n**Output**:\n- `train` has 450 samples.\n- `test` has 50 samples.\n\n### Expected Behavior\nI expected both `load_dataset` and `load_from_disk` to load the same dataset, as they are pointing to the same directory. However, the results differ significantly:\n- `load_dataset` seems to merge all shards, resulting in a combined dataset.\n- `load_from_disk` only loads the last saved dataset, ignoring previous shards.\n\n### Questions\n1. Is this behavior intentional? If so, could you clarify the difference between `load_dataset` and `load_from_disk` in the documentation?\n2. If this is not intentional, could this be considered a bug?\n3. What is the recommended way to handle cases where multiple datasets are saved to the same directory?\n\n\nThank you for your time and effort in maintaining this great library! I look forward to your feedback.","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7372\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7372\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7371","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7371\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7371\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7371\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7371","id":2790549889,"node_id":"I_kwDODunzps6mVGmB","number":7371,"title":"500 Server error with pushing a dataset","user":{"login":"martinmatak","id":7677814,"node_id":"MDQ6VXNlcjc2Nzc4MTQ=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/7677814?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/martinmatak","html_url":"https:\/\/github.com\/martinmatak","followers_url":"https:\/\/api.github.com\/users\/martinmatak\/followers","following_url":"https:\/\/api.github.com\/users\/martinmatak\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/martinmatak\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/martinmatak\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/martinmatak\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/martinmatak\/orgs","repos_url":"https:\/\/api.github.com\/users\/martinmatak\/repos","events_url":"https:\/\/api.github.com\/users\/martinmatak\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/martinmatak\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-01-15T18:23:02Z","updated_at":"2025-01-15T20:06:05Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nSuddenly, I started getting this error message saying it was an internal error.\n\n`Error creating\/pushing dataset: 500 Server Error: Internal Server Error for url: https:\/\/huggingface.co\/api\/datasets\/ll4ma-lab\/grasp-dataset\/commit\/main (Request ID: Root=1-6787f0b7-66d5bd45413e481c4c2fb22d;670d04ff-65f5-4741-a353-2eacc47a3928)\n\nInternal Error - We're working hard to fix this as soon as possible!\nTraceback (most recent call last):\n File \"\/uufs\/chpc.utah.edu\/common\/home\/hermans-group1\/martin\/software\/pkg\/miniforge3\/envs\/myenv2\/lib\/python3.10\/site-packages\/huggingface_hub\/utils\/_http.py\", line 406, in hf_raise_for_status\n response.raise_for_status()\n File \"\/uufs\/chpc.utah.edu\/common\/home\/hermans-group1\/martin\/software\/pkg\/miniforge3\/envs\/myenv2\/lib\/python3.10\/site-packages\/requests\/models.py\", line 1024, in raise_for_status\n raise HTTPError(http_error_msg, response=self)\nrequests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: https:\/\/huggingface.co\/api\/datasets\/ll4ma-lab\/grasp-dataset\/commit\/main\n\nThe above exception was the direct cause of the following exception:\n\nTraceback (most recent call last):\n File \"\/uufs\/chpc.utah.edu\/common\/home\/u1295595\/grasp_dataset_converter\/src\/grasp_dataset_converter\/main.py\", line 142, in main\n subset_train.push_to_hub(dataset_name, split='train')\n File \"\/uufs\/chpc.utah.edu\/common\/home\/hermans-group1\/martin\/software\/pkg\/miniforge3\/envs\/myenv2\/lib\/python3.10\/site-packages\/datasets\/arrow_dataset.py\", line 5624, in push_to_hub\n commit_info = api.create_commit(\n File \"\/uufs\/chpc.utah.edu\/common\/home\/hermans-group1\/martin\/software\/pkg\/miniforge3\/envs\/myenv2\/lib\/python3.10\/site-packages\/huggingface_hub\/utils\/_validators.py\", line 114, in _inner_fn\n return fn(*args, **kwargs)\n File \"\/uufs\/chpc.utah.edu\/common\/home\/hermans-group1\/martin\/software\/pkg\/miniforge3\/envs\/myenv2\/lib\/python3.10\/site-packages\/huggingface_hub\/hf_api.py\", line 1518, in _inner\n return fn(self, *args, **kwargs)\n File \"\/uufs\/chpc.utah.edu\/common\/home\/hermans-group1\/martin\/software\/pkg\/miniforge3\/envs\/myenv2\/lib\/python3.10\/site-packages\/huggingface_hub\/hf_api.py\", line 4087, in create_commit\n hf_raise_for_status(commit_resp, endpoint_name=\"commit\")\n File \"\/uufs\/chpc.utah.edu\/common\/home\/hermans-group1\/martin\/software\/pkg\/miniforge3\/envs\/myenv2\/lib\/python3.10\/site-packages\/huggingface_hub\/utils\/_http.py\", line 477, in hf_raise_for_status\n raise _format(HfHubHTTPError, str(e), response) from e\nhuggingface_hub.errors.HfHubHTTPError: 500 Server Error: Internal Server Error for url: https:\/\/huggingface.co\/api\/datasets\/ll4ma-lab\/grasp-dataset\/commit\/main (Request ID: Root=1-6787f0b7-66d5bd45413e481c4c2fb22d;670d04ff-65f5-4741-a353-2eacc47a3928)\n\nInternal Error - We're working hard to fix this as soon as possible!`\n\n### Steps to reproduce the bug\n\nI am pushing a Dataset in a loop via push_to_hub API\n\n### Expected behavior\n\nIt worked fine until it stopped working suddenly.\nExpected behavior: It should start working again\n\n### Environment info\n\n- `datasets` version: 3.2.0\n- Platform: Linux-4.18.0-477.15.1.el8_8.x86_64-x86_64-with-glibc2.28\n- Python version: 3.10.0\n- `huggingface_hub` version: 0.27.1\n- PyArrow version: 18.1.0\n- Pandas version: 2.2.3\n- `fsspec` version: 2024.9.0\n","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7371\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7371\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7370","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7370\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7370\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7370\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7370","id":2787972786,"node_id":"PR_kwDODunzps6HwAu7","number":7370,"title":"Support faster processing using pandas or polars functions in `IterableDataset.map()`","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-01-14T18:14:13Z","updated_at":"2025-01-31T11:08:15Z","closed_at":"2025-01-30T13:30:57Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7370","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7370","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7370.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7370.patch","merged_at":"2025-01-30T13:30:57Z"},"body":"Following the polars integration :)\r\n\r\nAllow super fast processing using pandas or polars functions in `IterableDataset.map()` by adding support to pandas and polars formatting in `IterableDataset`\r\n\r\n```python\r\nimport polars as pl\r\nfrom datasets import Dataset\r\n\r\nds = Dataset.from_dict({\"i\": range(10)}).to_iterable_dataset()\r\nds = ds.with_format(\"polars\")\r\nds = ds.map(lambda df: df.with_columns(pl.col(\"i\").add(1).alias(\"i+1\")), batched=True)\r\nds = ds.with_format(None)\r\nprint(next(iter(ds)))\r\n# {'i': 0, 'i+1': 1}\r\n```\r\n\r\nIt leverages arrow's zero-copy features from\/to pandas and polars.\r\n\r\nrelated to https:\/\/github.com\/huggingface\/datasets\/issues\/3444 #6762 ","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7370\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7370\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7369","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7369\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7369\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7369\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7369","id":2787193238,"node_id":"I_kwDODunzps6mITGW","number":7369,"title":"Importing dataset gives unhelpful error message when filenames in metadata.csv are not found in the directory","user":{"login":"svencornetsdegroot","id":38278139,"node_id":"MDQ6VXNlcjM4Mjc4MTM5","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/38278139?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/svencornetsdegroot","html_url":"https:\/\/github.com\/svencornetsdegroot","followers_url":"https:\/\/api.github.com\/users\/svencornetsdegroot\/followers","following_url":"https:\/\/api.github.com\/users\/svencornetsdegroot\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/svencornetsdegroot\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/svencornetsdegroot\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/svencornetsdegroot\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/svencornetsdegroot\/orgs","repos_url":"https:\/\/api.github.com\/users\/svencornetsdegroot\/repos","events_url":"https:\/\/api.github.com\/users\/svencornetsdegroot\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/svencornetsdegroot\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-01-14T13:53:21Z","updated_at":"2025-01-14T15:05:51Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nWhile importing an audiofolder dataset, where the names of the audiofiles don't correspond to the filenames in the metadata.csv, we get an unclear error message that is not helpful for the debugging, i.e. \n```\nValueError: Instruction \"train\" corresponds to no data!\n```\n\n### Steps to reproduce the bug\n\nAssume an audiofolder with audiofiles, filename1.mp3, filename2.mp3 etc and a file metadata.csv which contains the columns file_name and sentence. The file_names are formatted like filename1.mp3, filename2.mp3 etc. \n\nLoad the audio\n```\nfrom datasets import load_dataset\nload_dataset(\"audiofolder\", data_dir='\/path\/to\/audiofolder')\n```\nWhen the file_names in the csv are not in sync with the filenames in the audiofolder, then we get an Error message:\n```\nFile \/opt\/conda\/lib\/python3.12\/site-packages\/datasets\/arrow_reader.py:251, in BaseReader.read(self, name, instructions, split_infos, in_memory)\n 249 if not files:\n 250 msg = f'Instruction \"{instructions}\" corresponds to no data!'\n--> 251 raise ValueError(msg)\n 252 return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory)\n\nValueError: Instruction \"train\" corresponds to no data!\n```\nload_dataset has a default value for the argument split = 'train'. \n\n\n### Expected behavior\n\nIt would be better to get an error report something like:\n```\nThe metadata.csv file has different filenames than the files in the datadirectory. \n```\nIt would have saved me 4 hours of debugging. \n\n### Environment info\n\n- `datasets` version: 3.2.0\n- Platform: Linux-5.14.0-427.40.1.el9_4.x86_64-x86_64-with-glibc2.39\n- Python version: 3.12.8\n- `huggingface_hub` version: 0.27.0\n- PyArrow version: 18.1.0\n- Pandas version: 2.2.3\n- `fsspec` version: 2024.9.0","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7369\/reactions","total_count":1,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7369\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7368","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7368\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7368\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7368\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7368","id":2784272477,"node_id":"PR_kwDODunzps6HjE97","number":7368,"title":"Add with_split to DatasetDict.map","user":{"login":"jp1924","id":93233241,"node_id":"U_kgDOBY6gWQ","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/93233241?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/jp1924","html_url":"https:\/\/github.com\/jp1924","followers_url":"https:\/\/api.github.com\/users\/jp1924\/followers","following_url":"https:\/\/api.github.com\/users\/jp1924\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/jp1924\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/jp1924\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/jp1924\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/jp1924\/orgs","repos_url":"https:\/\/api.github.com\/users\/jp1924\/repos","events_url":"https:\/\/api.github.com\/users\/jp1924\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/jp1924\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2025-01-13T15:09:56Z","updated_at":"2025-03-08T05:45:02Z","closed_at":"2025-03-07T14:09:52Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7368","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7368","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7368.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7368.patch","merged_at":"2025-03-07T14:09:52Z"},"body":"#7356","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7368\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7368\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7366","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7366\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7366\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7366\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7366","id":2781522894,"node_id":"I_kwDODunzps6lyqvO","number":7366,"title":"Dataset.from_dict() can't handle large dict","user":{"login":"CSU-OSS","id":164967134,"node_id":"U_kgDOCdUy3g","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/164967134?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/CSU-OSS","html_url":"https:\/\/github.com\/CSU-OSS","followers_url":"https:\/\/api.github.com\/users\/CSU-OSS\/followers","following_url":"https:\/\/api.github.com\/users\/CSU-OSS\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/CSU-OSS\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/CSU-OSS\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/CSU-OSS\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/CSU-OSS\/orgs","repos_url":"https:\/\/api.github.com\/users\/CSU-OSS\/repos","events_url":"https:\/\/api.github.com\/users\/CSU-OSS\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/CSU-OSS\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-01-11T02:05:21Z","updated_at":"2025-01-11T02:05:21Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI have 26,000,000 3-tuples. When I use Dataset.from_dict() to load, neither. py nor Jupiter notebook can run successfully. This is my code:\r\n```\r\n # len(example_data) is 26,000,000, 'diff' is a text\r\n diff1_list = [example_data[i].texts[0] for i in range(len(example_data))]\r\n diff2_list = [example_data[i].texts[1] for i in range(len(example_data))]\r\n label_list = [example_data[i].label for i in range(len(example_data))]\r\n\r\n embedding_dataset = Dataset.from_dict({\r\n \"diff1\": diff1_list,\r\n \"diff2\": diff2_list,\r\n \"label\": label_list\r\n })\r\n```\n\n### Steps to reproduce the bug\n\n1. Initialize a large 3-tuple, e.g. 26,000,000\r\n2. Use Dataset.from_dict() to load\n\n### Expected behavior\n\nDataset.from_dict() run successfully\n\n### Environment info\n\nsentence-transformers 3.3.1","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7366\/reactions","total_count":1,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7366\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7365","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7365\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7365\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7365\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7365","id":2780216199,"node_id":"I_kwDODunzps6ltruH","number":7365,"title":"A parameter is specified but not used in datasets.arrow_dataset.Dataset.from_pandas()","user":{"login":"NourOM02","id":69003192,"node_id":"MDQ6VXNlcjY5MDAzMTky","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/69003192?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/NourOM02","html_url":"https:\/\/github.com\/NourOM02","followers_url":"https:\/\/api.github.com\/users\/NourOM02\/followers","following_url":"https:\/\/api.github.com\/users\/NourOM02\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/NourOM02\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/NourOM02\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/NourOM02\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/NourOM02\/orgs","repos_url":"https:\/\/api.github.com\/users\/NourOM02\/repos","events_url":"https:\/\/api.github.com\/users\/NourOM02\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/NourOM02\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-01-10T13:39:33Z","updated_at":"2025-01-10T13:39:33Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI am interested in creating train, test and eval splits from a pandas Dataframe, therefore I was looking at the possibilities I can follow. I noticed the split parameter and was hopeful to use it in order to generate the 3 at once, however, while trying to understand the code, i noticed that it has no added value (correct me if I am wrong or misunderstood the code). \r\n\r\n\r\nfrom_pandas function code :\r\n\r\n```python\r\n if info is not None and features is not None and info.features != features:\r\n raise ValueError(\r\n f\"Features specified in `features` and `info.features` can't be different:\\n{features}\\n{info.features}\"\r\n )\r\n features = features if features is not None else info.features if info is not None else None\r\n if info is None:\r\n info = DatasetInfo()\r\n info.features = features\r\n table = InMemoryTable.from_pandas(\r\n df=df,\r\n preserve_index=preserve_index,\r\n )\r\n if features is not None:\r\n # more expensive cast than InMemoryTable.from_pandas(..., schema=features.arrow_schema)\r\n # needed to support the str to Audio conversion for instance\r\n table = table.cast(features.arrow_schema)\r\n return cls(table, info=info, split=split)\r\n```\n\n### Steps to reproduce the bug\n\n```python\r\nfrom datasets import Dataset\r\n# Filling the split parameter with whatever causes no harm at all\r\ndata = Dataset.from_pandas(self.raw_data, split='egiojegoierjgoiejgrefiergiuorenvuirgurthgi')\r\n```\n\n### Expected behavior\n\nWould be great if there is no split parameter (if it isn't working), or to add a concrete example of how it can be used.\n\n### Environment info\n\n- `datasets` version: 3.2.0\r\n- Platform: Linux-5.15.0-127-generic-x86_64-with-glibc2.35\r\n- Python version: 3.10.12\r\n- `huggingface_hub` version: 0.27.1\r\n- PyArrow version: 18.1.0\r\n- Pandas version: 2.2.3\r\n- `fsspec` version: 2024.9.0","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7365\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7365\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7364","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7364\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7364\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7364\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7364","id":2776929268,"node_id":"I_kwDODunzps6lhJP0","number":7364,"title":"API endpoints for gated dataset access requests","user":{"login":"jerome-white","id":6140840,"node_id":"MDQ6VXNlcjYxNDA4NDA=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/6140840?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/jerome-white","html_url":"https:\/\/github.com\/jerome-white","followers_url":"https:\/\/api.github.com\/users\/jerome-white\/followers","following_url":"https:\/\/api.github.com\/users\/jerome-white\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/jerome-white\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/jerome-white\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/jerome-white\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/jerome-white\/orgs","repos_url":"https:\/\/api.github.com\/users\/jerome-white\/repos","events_url":"https:\/\/api.github.com\/users\/jerome-white\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/jerome-white\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2025-01-09T06:21:20Z","updated_at":"2025-01-09T11:17:40Z","closed_at":"2025-01-09T11:17:20Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nI would like a programatic way of requesting access to gated datasets. The current solution to gain access forces me to visit a website and physically click an \"agreement\" button (as per the [documentation](https:\/\/huggingface.co\/docs\/hub\/en\/datasets-gated#access-gated-datasets-as-a-user)).\r\n\r\nAn ideal approach would be HF API download methods that negotiate access on my behalf based on information from my CLI login and\/or token. I realise that may be naive given the various types of access semantics available to dataset authors (automatic versus manual approval, for example) and complexities it might add to existing methods, but something along those lines would be nice.\r\n\r\nPerhaps using the `*_access_request` methods available to dataset authors can be a precedent; see [`reject_access_request`](https:\/\/huggingface.co\/docs\/huggingface_hub\/main\/en\/package_reference\/hf_api#huggingface_hub.HfApi.reject_access_request) for example.\n\n### Motivation\n\nWhen trying to download files from a gated dataset, I'm met with a `GatedRepoError` and instructed to visit the repository's website to gain access:\r\n\r\n```\r\nCannot access gated repo for url https:\/\/huggingface.co\/datasets\/open-llm-leaderboard\/meta-llama__Meta-Llama-3.1-70B-Instruct-details\/resolve\/main\/meta-llama__Meta-Llama-3.1-70B-Instruct\/samples_leaderboard_math_precalculus_hard_2024-07-19T18-47-29.522341.jsonl.\r\nAccess to dataset open-llm-leaderboard\/meta-llama__Meta-Llama-3.1-70B-Instruct-details is restricted and you are not in the authorized list. Visit https:\/\/huggingface.co\/datasets\/open-llm-leaderboard\/meta-llama__Meta-Llama-3.1-70B-Instruct-details to ask for access.\r\n```\r\n\r\nThis makes task automation extremely difficult. For example, I'm interested in studying sample-level responses of models on the LLM leaderboard -- how they answered particular questions on a given evaluation framework. As I come across more and more participants that gate their data, it's becoming unwieldy to continue my work (there over 2,000 participants, so in the worst case that's the number of website visits I'd need to manually undertake).\r\n\r\nOne approach is use Selenium to react to the `GatedRepoError`, but that seems like overkill; and a potential violation HF terms of service (?).\r\n\r\nAs mentioned in the previous section, there seems to be an [API for gated dataset owners](https:\/\/huggingface.co\/docs\/hub\/en\/datasets-gated#via-the-api) to managed access requests, and thus some appetite for allowing automated management of gating. This feature request is to extend that to dataset users.\n\n### Your contribution\n\nWhether I can help depends on a few things; one being the complexity of the underlying gated access design. If this feature request is accepted I am open to being involved in discussions and testing, and even development under the right time-outcome tradeoff.","closed_by":{"login":"jerome-white","id":6140840,"node_id":"MDQ6VXNlcjYxNDA4NDA=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/6140840?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/jerome-white","html_url":"https:\/\/github.com\/jerome-white","followers_url":"https:\/\/api.github.com\/users\/jerome-white\/followers","following_url":"https:\/\/api.github.com\/users\/jerome-white\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/jerome-white\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/jerome-white\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/jerome-white\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/jerome-white\/orgs","repos_url":"https:\/\/api.github.com\/users\/jerome-white\/repos","events_url":"https:\/\/api.github.com\/users\/jerome-white\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/jerome-white\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7364\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7364\/timeline","performed_via_github_app":null,"state_reason":"not_planned","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7363","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7363\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7363\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7363\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7363","id":2774090012,"node_id":"I_kwDODunzps6lWUEc","number":7363,"title":"ImportError: To support decoding images, please install 'Pillow'.","user":{"login":"jamessdixon","id":1394644,"node_id":"MDQ6VXNlcjEzOTQ2NDQ=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/1394644?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/jamessdixon","html_url":"https:\/\/github.com\/jamessdixon","followers_url":"https:\/\/api.github.com\/users\/jamessdixon\/followers","following_url":"https:\/\/api.github.com\/users\/jamessdixon\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/jamessdixon\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/jamessdixon\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/jamessdixon\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/jamessdixon\/orgs","repos_url":"https:\/\/api.github.com\/users\/jamessdixon\/repos","events_url":"https:\/\/api.github.com\/users\/jamessdixon\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/jamessdixon\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2025-01-08T02:22:57Z","updated_at":"2025-05-28T14:56:53Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nFollowing this tutorial locally using a macboko and VSCode: https:\/\/huggingface.co\/docs\/diffusers\/en\/tutorials\/basic_training\r\nThis line of code: for i, image in enumerate(dataset[:4][\"image\"]):\r\nthrows: ImportError: To support decoding images, please install 'Pillow'.\r\n\r\nPillow is installed.\n\n### Steps to reproduce the bug\n\nRun the tutorial\r\n\n\n### Expected behavior\n\nImages should be rendered\n\n### Environment info\n\nMacBook, VSCode","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7363\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7363\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7362","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7362\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7362\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7362\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7362","id":2773731829,"node_id":"I_kwDODunzps6lU8n1","number":7362,"title":"HuggingFace CLI dataset download raises error","user":{"login":"ajayvohra2005","id":3870355,"node_id":"MDQ6VXNlcjM4NzAzNTU=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/3870355?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ajayvohra2005","html_url":"https:\/\/github.com\/ajayvohra2005","followers_url":"https:\/\/api.github.com\/users\/ajayvohra2005\/followers","following_url":"https:\/\/api.github.com\/users\/ajayvohra2005\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ajayvohra2005\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ajayvohra2005\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ajayvohra2005\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ajayvohra2005\/orgs","repos_url":"https:\/\/api.github.com\/users\/ajayvohra2005\/repos","events_url":"https:\/\/api.github.com\/users\/ajayvohra2005\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ajayvohra2005\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2025-01-07T21:03:30Z","updated_at":"2025-01-08T15:00:37Z","closed_at":"2025-01-08T14:35:52Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\r\n\r\nTrying to download Hugging Face datasets using Hugging Face CLI raises error. This error only started after December 27th, 2024. For example:\r\n```\r\nhuggingface-cli download --repo-type dataset gboleda\/wikicorpus\r\nTraceback (most recent call last):\r\n File \"\/home\/ubuntu\/test_venv\/bin\/huggingface-cli\", line 8, in \r\n sys.exit(main())\r\n File \"\/home\/ubuntu\/test_venv\/lib\/python3.10\/site-packages\/huggingface_hub\/commands\/huggingface_cli.py\", line 51, in main\r\n service.run()\r\n File \"\/home\/ubuntu\/test_venv\/lib\/python3.10\/site-packages\/huggingface_hub\/commands\/download.py\", line 146, in run\r\n print(self._download()) # Print path to downloaded files\r\n File \"\/home\/ubuntu\/test_venv\/lib\/python3.10\/site-packages\/huggingface_hub\/commands\/download.py\", line 180, in _download\r\n return snapshot_download(\r\n File \"\/home\/ubuntu\/test_venv\/lib\/python3.10\/site-packages\/huggingface_hub\/utils\/_validators.py\", line 114, in _inner_fn\r\n return fn(*args, **kwargs)\r\n File \"\/home\/ubuntu\/test_venv\/lib\/python3.10\/site-packages\/huggingface_hub\/_snapshot_download.py\", line 164, in snapshot_download\r\n repo_info = api.repo_info(repo_id=repo_id, repo_type=repo_type, revision=revision, token=token)\r\n File \"\/home\/ubuntu\/test_venv\/lib\/python3.10\/site-packages\/huggingface_hub\/utils\/_validators.py\", line 114, in _inner_fn\r\n return fn(*args, **kwargs)\r\n File \"\/home\/ubuntu\/test_venv\/lib\/python3.10\/site-packages\/huggingface_hub\/hf_api.py\", line 2491, in repo_info\r\n return method(\r\n File \"\/home\/ubuntu\/test_venv\/lib\/python3.10\/site-packages\/huggingface_hub\/utils\/_validators.py\", line 114, in _inner_fn\r\n return fn(*args, **kwargs)\r\n File \"\/home\/ubuntu\/test_venv\/lib\/python3.10\/site-packages\/huggingface_hub\/hf_api.py\", line 2366, in dataset_info\r\n return DatasetInfo(**data)\r\n File \"\/home\/ubuntu\/test_venv\/lib\/python3.10\/site-packages\/huggingface_hub\/hf_api.py\", line 799, in __init__\r\n self.tags = kwargs.pop(\"tags\")\r\nKeyError: 'tags'\r\n```\r\n\r\n### Steps to reproduce the bug\r\n\r\n```\r\n1. huggingface-cli download --repo-type dataset gboleda\/wikicorpus\r\n```\r\n\r\n\r\n### Expected behavior\r\n\r\nThere should be no error.\r\n\r\n### Environment info\r\n\r\n\r\n- `datasets` version: 2.19.1\r\n- Platform: Linux-6.8.0-1015-aws-x86_64-with-glibc2.35\r\n- Python version: 3.10.12\r\n- `huggingface_hub` version: 0.23.5\r\n- PyArrow version: 18.1.0\r\n- Pandas version: 2.2.3\r\n- `fsspec` version: 2024.3.1","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7362\/reactions","total_count":3,"+1":3,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7362\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7361","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7361\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7361\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7361\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7361","id":2771859244,"node_id":"PR_kwDODunzps6G4t2p","number":7361,"title":"Fix lock permission","user":{"login":"cih9088","id":11530592,"node_id":"MDQ6VXNlcjExNTMwNTky","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/11530592?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/cih9088","html_url":"https:\/\/github.com\/cih9088","followers_url":"https:\/\/api.github.com\/users\/cih9088\/followers","following_url":"https:\/\/api.github.com\/users\/cih9088\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/cih9088\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/cih9088\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/cih9088\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/cih9088\/orgs","repos_url":"https:\/\/api.github.com\/users\/cih9088\/repos","events_url":"https:\/\/api.github.com\/users\/cih9088\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/cih9088\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2025-01-07T04:15:53Z","updated_at":"2025-01-07T04:49:46Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7361","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7361","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7361.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7361.patch","merged_at":null},"body":"All files except lock file have proper permission obeying `ACL` property if it is set.\r\n\r\nIf the cache directory has `ACL` property, it should be respected instead of just using `umask` for permission.\r\nTo fix it, just create a lock file and pass the created `mode`.\r\n\r\nBy creating a lock file with `touch()` before `FileLock` create it with `mode`,\r\n- if `ACL` is not set, same as before\r\n- if `ACL` is set, `ACL` is respected\r\n\r\nIf it is acceptable, it should be also applied to [`huggingface_hub`](https:\/\/github.com\/huggingface\/huggingface_hub\/blob\/2702ec2a2bd0124cc1fddfd72ccb1297b2478148\/src\/huggingface_hub\/utils\/_fixes.py#L95) I guess.","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7361\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7361\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7360","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7360\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7360\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7360\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7360","id":2771751406,"node_id":"I_kwDODunzps6lNZHu","number":7360,"title":"error when loading dataset in Hugging Face: NoneType error is not callable","user":{"login":"nanu23333","id":189343338,"node_id":"U_kgDOC0kmag","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/189343338?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/nanu23333","html_url":"https:\/\/github.com\/nanu23333","followers_url":"https:\/\/api.github.com\/users\/nanu23333\/followers","following_url":"https:\/\/api.github.com\/users\/nanu23333\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/nanu23333\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/nanu23333\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/nanu23333\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/nanu23333\/orgs","repos_url":"https:\/\/api.github.com\/users\/nanu23333\/repos","events_url":"https:\/\/api.github.com\/users\/nanu23333\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/nanu23333\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2025-01-07T02:11:36Z","updated_at":"2025-02-24T13:32:52Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI met an error when running a notebook provide by Hugging Face, and met the error.\r\n\r\n```\r\n---------------------------------------------------------------------------\r\nTypeError Traceback (most recent call last)\r\nCell In[2], line 5\r\n 3 # Load the enhancers dataset from the InstaDeep Hugging Face ressources\r\n 4 dataset_name = \"enhancers_types\"\r\n----> 5 train_dataset_enhancers = load_dataset(\r\n 6 \"InstaDeepAI\/nucleotide_transformer_downstream_tasks_revised\",\r\n 7 dataset_name,\r\n 8 split=\"train\",\r\n 9 streaming= False,\r\n 10 )\r\n 11 test_dataset_enhancers = load_dataset(\r\n 12 \"InstaDeepAI\/nucleotide_transformer_downstream_tasks_revised\",\r\n 13 dataset_name,\r\n 14 split=\"test\",\r\n 15 streaming= False,\r\n 16 )\r\n\r\nFile \/public\/home\/hhl\/miniconda3\/envs\/transformer\/lib\/python3.9\/site-packages\/datasets\/load.py:2129, in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, verification_mode, keep_in_memory, save_infos, revision, token, streaming, num_proc, storage_options, trust_remote_code, **config_kwargs)\r\n 2124 verification_mode = VerificationMode(\r\n 2125 (verification_mode or VerificationMode.BASIC_CHECKS) if not save_infos else VerificationMode.ALL_CHECKS\r\n 2126 )\r\n 2128 # Create a dataset builder\r\n-> 2129 builder_instance = load_dataset_builder(\r\n 2130 path=path,\r\n 2131 name=name,\r\n 2132 data_dir=data_dir,\r\n 2133 data_files=data_files,\r\n 2134 cache_dir=cache_dir,\r\n 2135 features=features,\r\n 2136 download_config=download_config,\r\n 2137 download_mode=download_mode,\r\n 2138 revision=revision,\r\n 2139 token=token,\r\n 2140 storage_options=storage_options,\r\n 2141 trust_remote_code=trust_remote_code,\r\n 2142 _require_default_config_name=name is None,\r\n 2143 **config_kwargs,\r\n 2144 )\r\n 2146 # Return iterable dataset in case of streaming\r\n 2147 if streaming:\r\n\r\nFile \/public\/home\/hhl\/miniconda3\/envs\/transformer\/lib\/python3.9\/site-packages\/datasets\/load.py:1886, in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, token, storage_options, trust_remote_code, _require_default_config_name, **config_kwargs)\r\n 1884 builder_cls = get_dataset_builder_class(dataset_module, dataset_name=dataset_name)\r\n 1885 # Instantiate the dataset builder\r\n-> 1886 builder_instance: DatasetBuilder = builder_cls(\r\n 1887 cache_dir=cache_dir,\r\n 1888 dataset_name=dataset_name,\r\n 1889 config_name=config_name,\r\n 1890 data_dir=data_dir,\r\n 1891 data_files=data_files,\r\n 1892 hash=dataset_module.hash,\r\n 1893 info=info,\r\n 1894 features=features,\r\n 1895 token=token,\r\n 1896 storage_options=storage_options,\r\n 1897 **builder_kwargs,\r\n 1898 **config_kwargs,\r\n 1899 )\r\n 1900 builder_instance._use_legacy_cache_dir_if_possible(dataset_module)\r\n 1902 return builder_instance\r\n\r\nTypeError: 'NoneType' object is not callable\r\n```\r\n\r\nI have checked my internet, it worked well. And the dataset name was just copied from the Hugging Face. \r\nTotally no idea what is wrong! \n\n### Steps to reproduce the bug\n\nTo reproduce the bug you may run\r\n\r\n```\r\nfrom datasets import load_dataset, Dataset\r\n\r\n# Load the enhancers dataset from the InstaDeep Hugging Face ressources\r\ndataset_name = \"enhancers_types\"\r\ntrain_dataset_enhancers = load_dataset(\r\n \"InstaDeepAI\/nucleotide_transformer_downstream_tasks_revised\",\r\n dataset_name,\r\n split=\"train\",\r\n streaming= False,\r\n )\r\ntest_dataset_enhancers = load_dataset(\r\n \"InstaDeepAI\/nucleotide_transformer_downstream_tasks_revised\",\r\n dataset_name,\r\n split=\"test\",\r\n streaming= False,\r\n )\r\n```\n\n### Expected behavior\n\n1. what may be the reasons of the error\r\n2. how can I fine which reason lead to the error\r\n3. how can I save the problem\n\n### Environment info\n\n```\r\n- `datasets` version: 3.2.0\r\n- Platform: Linux-5.15.0-117-generic-x86_64-with-glibc2.31\r\n- Python version: 3.9.21\r\n- `huggingface_hub` version: 0.27.0\r\n- PyArrow version: 18.1.0\r\n- Pandas version: 2.2.3\r\n- `fsspec` version: 2024.9.0\r\n```","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7360\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7360\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7359","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7359\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7359\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7359\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7359","id":2771137842,"node_id":"I_kwDODunzps6lLDUy","number":7359,"title":"There are multiple 'mteb\/arguana' configurations in the cache: default, corpus, queries with HF_HUB_OFFLINE=1","user":{"login":"Bhavya6187","id":723146,"node_id":"MDQ6VXNlcjcyMzE0Ng==","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/723146?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Bhavya6187","html_url":"https:\/\/github.com\/Bhavya6187","followers_url":"https:\/\/api.github.com\/users\/Bhavya6187\/followers","following_url":"https:\/\/api.github.com\/users\/Bhavya6187\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Bhavya6187\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Bhavya6187\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Bhavya6187\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Bhavya6187\/orgs","repos_url":"https:\/\/api.github.com\/users\/Bhavya6187\/repos","events_url":"https:\/\/api.github.com\/users\/Bhavya6187\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Bhavya6187\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-01-06T17:42:49Z","updated_at":"2025-01-06T17:43:31Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nHey folks,\r\n\r\nI am trying to run this code -\r\n\r\n```python\r\nfrom datasets import load_dataset, get_dataset_config_names\r\nds = load_dataset(\"mteb\/arguana\")\r\n```\r\nwith HF_HUB_OFFLINE=1\r\n\r\nBut I get the following error -\r\n\r\n\r\n```python\r\nUsing the latest cached version of the dataset since mteb\/arguana couldn't be found on the Hugging Face Hub (offline mode is enabled).\r\n---------------------------------------------------------------------------\r\nValueError Traceback (most recent call last)\r\nCell In[2], line 1\r\n----> 1 ds = load_dataset(\"mteb\/arguana\")\r\n\r\nFile ~\/env\/lib\/python3.10\/site-packages\/datasets\/load.py:2129, in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, verification_mode, keep_in_memory, save_infos, revision, token, streaming, num_proc, storage_options, trust_remote_code, **config_kwargs)\r\n 2124 verification_mode = VerificationMode(\r\n 2125 (verification_mode or VerificationMode.BASIC_CHECKS) if not save_infos else VerificationMode.ALL_CHECKS\r\n 2126 )\r\n 2128 # Create a dataset builder\r\n-> 2129 builder_instance = load_dataset_builder(\r\n 2130 path=path,\r\n 2131 name=name,\r\n 2132 data_dir=data_dir,\r\n 2133 data_files=data_files,\r\n 2134 cache_dir=cache_dir,\r\n 2135 features=features,\r\n 2136 download_config=download_config,\r\n 2137 download_mode=download_mode,\r\n 2138 revision=revision,\r\n 2139 token=token,\r\n 2140 storage_options=storage_options,\r\n 2141 trust_remote_code=trust_remote_code,\r\n 2142 _require_default_config_name=name is None,\r\n 2143 **config_kwargs,\r\n 2144 )\r\n 2146 # Return iterable dataset in case of streaming\r\n 2147 if streaming:\r\n\r\nFile ~\/env\/lib\/python3.10\/site-packages\/datasets\/load.py:1886, in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, token, storage_options, trust_remote_code, _require_default_config_name, **config_kwargs)\r\n 1884 builder_cls = get_dataset_builder_class(dataset_module, dataset_name=dataset_name)\r\n 1885 # Instantiate the dataset builder\r\n-> 1886 builder_instance: DatasetBuilder = builder_cls(\r\n 1887 cache_dir=cache_dir,\r\n 1888 dataset_name=dataset_name,\r\n 1889 config_name=config_name,\r\n 1890 data_dir=data_dir,\r\n 1891 data_files=data_files,\r\n 1892 hash=dataset_module.hash,\r\n 1893 info=info,\r\n 1894 features=features,\r\n 1895 token=token,\r\n 1896 storage_options=storage_options,\r\n 1897 **builder_kwargs,\r\n 1898 **config_kwargs,\r\n 1899 )\r\n 1900 builder_instance._use_legacy_cache_dir_if_possible(dataset_module)\r\n 1902 return builder_instance\r\n\r\nFile ~\/env\/lib\/python3.10\/site-packages\/datasets\/packaged_modules\/cache\/cache.py:124, in Cache.__init__(self, cache_dir, dataset_name, config_name, version, hash, base_path, info, features, token, repo_id, data_files, data_dir, storage_options, writer_batch_size, **config_kwargs)\r\n 122 config_kwargs[\"data_dir\"] = data_dir\r\n 123 if hash == \"auto\" and version == \"auto\":\r\n--> 124 config_name, version, hash = _find_hash_in_cache(\r\n 125 dataset_name=repo_id or dataset_name,\r\n 126 config_name=config_name,\r\n 127 cache_dir=cache_dir,\r\n 128 config_kwargs=config_kwargs,\r\n 129 custom_features=features,\r\n 130 )\r\n 131 elif hash == \"auto\" or version == \"auto\":\r\n 132 raise NotImplementedError(\"Pass both hash='auto' and version='auto' instead\")\r\n\r\nFile ~\/env\/lib\/python3.10\/site-packages\/datasets\/packaged_modules\/cache\/cache.py:84, in _find_hash_in_cache(dataset_name, config_name, cache_dir, config_kwargs, custom_features)\r\n 72 other_configs = [\r\n 73 Path(_cached_directory_path).parts[-3]\r\n 74 for _cached_directory_path in glob.glob(os.path.join(cached_datasets_directory_path_root, \"*\", version, hash))\r\n (...)\r\n 81 )\r\n 82 ]\r\n 83 if not config_id and len(other_configs) > 1:\r\n---> 84 raise ValueError(\r\n 85 f\"There are multiple '{dataset_name}' configurations in the cache: {', '.join(other_configs)}\"\r\n 86 f\"\\nPlease specify which configuration to reload from the cache, e.g.\"\r\n 87 f\"\\n\\tload_dataset('{dataset_name}', '{other_configs[0]}')\"\r\n 88 )\r\n 89 config_name = cached_directory_path.parts[-3]\r\n 90 warning_msg = (\r\n 91 f\"Found the latest cached dataset configuration '{config_name}' at {cached_directory_path} \"\r\n 92 f\"(last modified on {time.ctime(_get_modification_time(cached_directory_path))}).\"\r\n 93 )\r\n\r\nValueError: There are multiple 'mteb\/arguana' configurations in the cache: queries, corpus, default\r\nPlease specify which configuration to reload from the cache, e.g.\r\n load_dataset('mteb\/arguana', 'queries')\r\n```\r\n\r\nIt works when I run the same code with HF_HUB_OFFLINE=0, but after the data is downloaded, I turn off the HF hub cache with HF_HUB_OFFLINE=1, and then this error appears.\r\n\r\nAre there some files I am missing with hub disabled?\n\n### Steps to reproduce the bug\n\nfrom datasets import load_dataset, get_dataset_config_names\r\nds = load_dataset(\"mteb\/arguana\")\r\n\r\nwith HF_HUB_OFFLINE=1\r\n(after already running it with HF_HUB_OFFLINE=0 and populating the datasets cache)\n\n### Expected behavior\n\nDataset loaded successfully as it does with HF_HUB_OFFLINE=1\n\n### Environment info\n\n- `datasets` version: 3.2.0\r\n- Platform: Linux-5.15.148.2-2.cm2-x86_64-with-glibc2.35\r\n- Python version: 3.10.14\r\n- `huggingface_hub` version: 0.27.0\r\n- PyArrow version: 17.0.0\r\n- Pandas version: 2.2.3\r\n- `fsspec` version: 2024.6.1","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7359\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7359\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7358","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7358\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7358\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7358\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7358","id":2770927769,"node_id":"PR_kwDODunzps6G1kka","number":7358,"title":"Fix remove_columns in the formatted case","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-01-06T15:44:23Z","updated_at":"2025-01-06T15:46:46Z","closed_at":null,"author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7358","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7358","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7358.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7358.patch","merged_at":null},"body":"`remove_columns` had no effect when running a function in `.map()` on dataset that is formatted\r\n\r\nThis aligns the logic of `map()` with the non formatted case and also with with https:\/\/github.com\/huggingface\/datasets\/pull\/7353","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7358\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7358\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7357","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7357\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7357\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7357\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7357","id":2770456127,"node_id":"I_kwDODunzps6lIc4_","number":7357,"title":"Python process aborded with GIL issue when using image dataset","user":{"login":"AlexKoff88","id":25342812,"node_id":"MDQ6VXNlcjI1MzQyODEy","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/25342812?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/AlexKoff88","html_url":"https:\/\/github.com\/AlexKoff88","followers_url":"https:\/\/api.github.com\/users\/AlexKoff88\/followers","following_url":"https:\/\/api.github.com\/users\/AlexKoff88\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/AlexKoff88\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/AlexKoff88\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/AlexKoff88\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/AlexKoff88\/orgs","repos_url":"https:\/\/api.github.com\/users\/AlexKoff88\/repos","events_url":"https:\/\/api.github.com\/users\/AlexKoff88\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/AlexKoff88\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-01-06T11:29:30Z","updated_at":"2025-03-08T15:59:36Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nThe issue is visible only with the latest `datasets==3.2.0`.\r\n\r\nWhen using image dataset the Python process gets aborted right before the exit with the following error:\r\n```\r\nFatal Python error: PyGILState_Release: thread state 0x7fa1f409ade0 must be current when releasing\r\nPython runtime state: finalizing (tstate=0x0000000000ad2958)\r\n\r\nThread 0x00007fa33d157740 (most recent call first):\r\n \r\n\r\nExtension modules: numpy.core._multiarray_umath, numpy.core._multiarray_tests, numpy.linalg._umath_linalg, numpy.fft._pocketfft_internal, numpy.random._common, numpy.random.bit_generator, numpy.random._boun\r\nded_integers, numpy.random._mt19937, numpy.random.mtrand, numpy.random._philox, numpy.random._pcg64, numpy.random._sfc64, numpy.random._generator, pyarrow.lib, pandas._libs.tslibs.ccalendar, pandas._libs.ts\r\nlibs.np_datetime, pandas._libs.tslibs.dtypes, pandas._libs.tslibs.base, pandas._libs.tslibs.nattype, pandas._libs.tslibs.timezones, pandas._libs.tslibs.fields, pandas._libs.tslibs.timedeltas, pandas._libs.t\r\nslibs.tzconversion, pandas._libs.tslibs.timestamps, pandas._libs.properties, pandas._libs.tslibs.offsets, pandas._libs.tslibs.strptime, pandas._libs.tslibs.parsing, pandas._libs.tslibs.conversion, pandas._l\r\nibs.tslibs.period, pandas._libs.tslibs.vectorized, pandas._libs.ops_dispatch, pandas._libs.missing, pandas._libs.hashtable, pandas._libs.algos, pandas._libs.interval, pandas._libs.lib, pyarrow._compute, pan\r\ndas._libs.ops, pandas._libs.hashing, pandas._libs.arrays, pandas._libs.tslib, pandas._libs.sparse, pandas._libs.internals, pandas._libs.indexing, pandas._libs.index, pandas._libs.writers, pandas._libs.join,\r\n pandas._libs.window.aggregations, pandas._libs.window.indexers, pandas._libs.reshape, pandas._libs.groupby, pandas._libs.json, pandas._libs.parsers, pandas._libs.testing, charset_normalizer.md, requests.pa\r\nckages.charset_normalizer.md, requests.packages.chardet.md, yaml._yaml, markupsafe._speedups, PIL._imaging, torch._C, torch._C._dynamo.autograd_compiler, torch._C._dynamo.eval_frame, torch._C._dynamo.guards\r\n, torch._C._dynamo.utils, torch._C._fft, torch._C._linalg, torch._C._nested, torch._C._nn, torch._C._sparse, torch._C._special, sentencepiece._sentencepiece, sklearn.__check_build._check_build, psutil._psut\r\nil_linux, psutil._psutil_posix, scipy._lib._ccallback_c, scipy.sparse._sparsetools, _csparsetools, scipy.sparse._csparsetools, scipy.linalg._fblas, scipy.linalg._flapack, scipy.linalg.cython_lapack, scipy.l\r\ninalg._cythonized_array_utils, scipy.linalg._solve_toeplitz, scipy.linalg._decomp_lu_cython, scipy.linalg._matfuncs_sqrtm_triu, scipy.linalg.cython_blas, scipy.linalg._matfuncs_expm, scipy.linalg._decomp_up\r\ndate, scipy.sparse.linalg._dsolve._superlu, scipy.sparse.linalg._eigen.arpack._arpack, scipy.sparse.linalg._propack._spropack, scipy.sparse.linalg._propack._dpropack, scipy.sparse.linalg._propack._cpropack,\r\n scipy.sparse.linalg._propack._zpropack, scipy.sparse.csgraph._tools, scipy.sparse.csgraph._shortest_path, scipy.sparse.csgraph._traversal, scipy.sparse.csgraph._min_spanning_tree, scipy.sparse.csgraph._flo\r\nw, scipy.sparse.csgraph._matching, scipy.sparse.csgraph._reordering, scipy.special._ufuncs_cxx, scipy.special._ufuncs, scipy.special._specfun, scipy.special._comb, scipy.special._ellip_harm_2, scipy.spatial\r\n._ckdtree, scipy._lib.messagestream, scipy.spatial._qhull, scipy.spatial._voronoi, scipy.spatial._distance_wrap, scipy.spatial._hausdorff, scipy.spatial.transform._rotation, scipy.optimize._group_columns, s\r\ncipy.optimize._trlib._trlib, scipy.optimize._lbfgsb, _moduleTNC, scipy.optimize._moduleTNC, scipy.optimize._cobyla, scipy.optimize._slsqp, scipy.optimize._minpack, scipy.optimize._lsq.givens_elimination, sc\r\nipy.optimize._zeros, scipy.optimize._highs.cython.src._highs_wrapper, scipy.optimize._highs._highs_wrapper, scipy.optimize._highs.cython.src._highs_constants, scipy.optimize._highs._highs_constants, scipy.l\r\ninalg._interpolative, scipy.optimize._bglu_dense, scipy.optimize._lsap, scipy.optimize._direct, scipy.integrate._odepack, scipy.integrate._quadpack, scipy.integrate._vode, scipy.integrate._dop, scipy.integr\r\nate._lsoda, scipy.interpolate._fitpack, scipy.interpolate._dfitpack, scipy.interpolate._bspl, scipy.interpolate._ppoly, scipy.interpolate.interpnd, scipy.interpolate._rbfinterp_pythran, scipy.interpolate._r\r\ngi_cython, scipy.special.cython_special, scipy.stats._stats, scipy.stats._biasedurn, scipy.stats._levy_stable.levyst, scipy.stats._stats_pythran, scipy._lib._uarray._uarray, scipy.stats._ansari_swilk_statis\r\ntics, scipy.stats._sobol, scipy.stats._qmc_cy, scipy.stats._mvn, scipy.stats._rcont.rcont, scipy.stats._unuran.unuran_wrapper, scipy.ndimage._nd_image, _ni_label, scipy.ndimage._ni_label, sklearn.utils._isf\r\ninite, sklearn.utils.sparsefuncs_fast, sklearn.utils.murmurhash, sklearn.utils._openmp_helpers, sklearn.metrics.cluster._expected_mutual_info_fast, sklearn.preprocessing._csr_polynomial_expansion, sklearn.p\r\nreprocessing._target_encoder_fast, sklearn.metrics._dist_metrics, sklearn.metrics._pairwise_distances_reduction._datasets_pair, sklearn.utils._cython_blas, sklearn.metrics._pairwise_distances_reduction._bas\r\ne, sklearn.metrics._pairwise_distances_reduction._middle_term_computer, sklearn.utils._heap, sklearn.utils._sorting, sklearn.metrics._pairwise_distances_reduction._argkmin, sklearn.metrics._pairwise_distanc\r\nes_reduction._argkmin_classmode, sklearn.utils._vector_sentinel, sklearn.metrics._pairwise_distances_reduction._radius_neighbors, sklearn.metrics._pairwise_distances_reduction._radius_neighbors_classmode, s\r\nklearn.metrics._pairwise_fast, PIL._imagingft, google._upb._message, h5py._errors, h5py.defs, h5py._objects, h5py.h5, h5py.utils, h5py.h5t, h5py.h5s, h5py.h5ac, h5py.h5p, h5py.h5r, h5py._proxy, h5py._conv,\r\nh5py.h5z, h5py.h5a, h5py.h5d, h5py.h5ds, h5py.h5g, h5py.h5i, h5py.h5o, h5py.h5f, h5py.h5fd, h5py.h5pl, h5py.h5l, h5py._selector, _cffi_backend, pyarrow._parquet, pyarrow._fs, pyarrow._azurefs, pyarrow._hdfs\r\n, pyarrow._gcsfs, pyarrow._s3fs, multidict._multidict, propcache._helpers_c, yarl._quoting_c, aiohttp._helpers, aiohttp._http_writer, aiohttp._http_parser, aiohttp._websocket, frozenlist._frozenlist, xxhash\r\n._xxhash, pyarrow._json, pyarrow._acero, pyarrow._csv, pyarrow._dataset, pyarrow._dataset_orc, pyarrow._parquet_encryption, pyarrow._dataset_parquet_encryption, pyarrow._dataset_parquet, regex._regex, scipy\r\n.io.matlab._mio_utils, scipy.io.matlab._streams, scipy.io.matlab._mio5_utils, PIL._imagingmath, PIL._webp (total: 236)\r\nAborted (core dumped)\r\n```an \n\n### Steps to reproduce the bug\n\nInstall `datasets==3.2.0`\r\n\r\nRun the following script:\r\n```python\r\nimport datasets\r\n\r\n\r\nDATASET_NAME = \"phiyodr\/InpaintCOCO\"\r\nNUM_SAMPLES = 10\r\n\r\n\r\ndef preprocess_fn(example):\r\n return {\r\n \"prompts\": example[\"inpaint_caption\"],\r\n \"images\": example[\"coco_image\"],\r\n \"masks\": example[\"mask\"],\r\n }\r\n\r\n\r\ndefault_dataset = datasets.load_dataset(\r\n DATASET_NAME, split=\"test\", streaming=True\r\n).filter(lambda example: example[\"inpaint_caption\"] != \"\").take(NUM_SAMPLES)\r\ntest_data = default_dataset.map(\r\n lambda x: preprocess_fn(x), remove_columns=default_dataset.column_names\r\n)\r\n\r\nfor data in test_data:\r\n print(data[\"prompts\"])\r\n\r\n``\n\n### Expected behavior\n\nThe script should not hang or crash.\n\n### Environment info\n\n- `datasets` version: 3.2.0\r\n- Platform: Linux-5.15.0-50-generic-x86_64-with-glibc2.31\r\n- Python version: 3.11.0\r\n- `huggingface_hub` version: 0.25.1\r\n- PyArrow version: 17.0.0\r\n- Pandas version: 2.2.3\r\n- `fsspec` version: 2024.2.0","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7357\/reactions","total_count":3,"+1":3,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7357\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7356","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7356\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7356\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7356\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7356","id":2770095103,"node_id":"I_kwDODunzps6lHEv_","number":7356,"title":"How about adding a feature to pass the key when performing map on DatasetDict?","user":{"login":"jp1924","id":93233241,"node_id":"U_kgDOBY6gWQ","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/93233241?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/jp1924","html_url":"https:\/\/github.com\/jp1924","followers_url":"https:\/\/api.github.com\/users\/jp1924\/followers","following_url":"https:\/\/api.github.com\/users\/jp1924\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/jp1924\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/jp1924\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/jp1924\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/jp1924\/orgs","repos_url":"https:\/\/api.github.com\/users\/jp1924\/repos","events_url":"https:\/\/api.github.com\/users\/jp1924\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/jp1924\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2025-01-06T08:13:52Z","updated_at":"2025-03-24T10:57:47Z","closed_at":"2025-03-24T10:57:47Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nAdd a feature to pass the key of the DatasetDict when performing map\n\n### Motivation\n\nI often preprocess using map on DatasetDict. \r\nSometimes, I need to preprocess train and valid data differently depending on the task. \r\nSo, I thought it would be nice to pass the key (like train, valid) when performing map on DatasetDict. \r\n\r\nWhat do you think?\n\n### Your contribution\n\nI can submit a pull request to add the feature to pass the key of the DatasetDict when performing map.","closed_by":{"login":"jp1924","id":93233241,"node_id":"U_kgDOBY6gWQ","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/93233241?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/jp1924","html_url":"https:\/\/github.com\/jp1924","followers_url":"https:\/\/api.github.com\/users\/jp1924\/followers","following_url":"https:\/\/api.github.com\/users\/jp1924\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/jp1924\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/jp1924\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/jp1924\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/jp1924\/orgs","repos_url":"https:\/\/api.github.com\/users\/jp1924\/repos","events_url":"https:\/\/api.github.com\/users\/jp1924\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/jp1924\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7356\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7356\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7355","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7355\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7355\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7355\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7355","id":2768958211,"node_id":"I_kwDODunzps6lCvMD","number":7355,"title":"Not available datasets[audio] on python 3.13","user":{"login":"sergiosinlimites","id":70306948,"node_id":"MDQ6VXNlcjcwMzA2OTQ4","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/70306948?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/sergiosinlimites","html_url":"https:\/\/github.com\/sergiosinlimites","followers_url":"https:\/\/api.github.com\/users\/sergiosinlimites\/followers","following_url":"https:\/\/api.github.com\/users\/sergiosinlimites\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/sergiosinlimites\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/sergiosinlimites\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/sergiosinlimites\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/sergiosinlimites\/orgs","repos_url":"https:\/\/api.github.com\/users\/sergiosinlimites\/repos","events_url":"https:\/\/api.github.com\/users\/sergiosinlimites\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/sergiosinlimites\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2025-01-04T18:37:08Z","updated_at":"2025-06-28T00:26:19Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nThis is the error I got, it seems numba package does not support python 3.13\r\n\r\nPS C:\\Users\\sergi\\Documents> pip install datasets[audio]\r\nDefaulting to user installation because normal site-packages is not writeable\r\nCollecting datasets[audio]\r\n Using cached datasets-3.2.0-py3-none-any.whl.metadata (20 kB)\r\n... (OTHER PACKAGES)\r\nCollecting numba>=0.51.0 (from librosa->datasets[audio])\r\n Downloading numba-0.60.0.tar.gz (2.7 MB)\r\n \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 2.7\/2.7 MB 44.1 MB\/s eta 0:00:00\r\n Installing build dependencies ... done\r\n Getting requirements to build wheel ... error\r\n error: subprocess-exited-with-error\r\n\r\n \u00d7 Getting requirements to build wheel did not run successfully.\r\n \u2502 exit code: 1\r\n \u2570\u2500> [24 lines of output]\r\n Traceback (most recent call last):\r\n File \"C:\\Program Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.13_3.13.496.0_x64__qbz5n2kfra8p0\\Lib\\site-packages\\pip\\_vendor\\pyproject_hooks\\_in_process\\_in_process.py\", line 353, in \r\n main()\r\n ~~~~^^\r\n File \"C:\\Program Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.13_3.13.496.0_x64__qbz5n2kfra8p0\\Lib\\site-packages\\pip\\_vendor\\pyproject_hooks\\_in_process\\_in_process.py\", line 335, in main\r\n json_out['return_val'] = hook(**hook_input['kwargs'])\r\n ~~~~^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Program Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.13_3.13.496.0_x64__qbz5n2kfra8p0\\Lib\\site-packages\\pip\\_vendor\\pyproject_hooks\\_in_process\\_in_process.py\", line 118, in get_requires_for_build_wheel\r\n return hook(config_settings)\r\n File \"C:\\Users\\sergi\\AppData\\Local\\Temp\\pip-build-env-yauns_qh\\overlay\\Lib\\site-packages\\setuptools\\build_meta.py\", line 334, in get_requires_for_build_wheel\r\n return self._get_build_requires(config_settings, requirements=[])\r\n ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\sergi\\AppData\\Local\\Temp\\pip-build-env-yauns_qh\\overlay\\Lib\\site-packages\\setuptools\\build_meta.py\", line 304, in _get_build_requires\r\n self.run_setup()\r\n ~~~~~~~~~~~~~~^^\r\n RuntimeError: Cannot install on Python version 3.13.1; only versions >=3.9,<3.13 are supported.\r\n [end of output]\r\n\r\n note: This error originates from a subprocess, and is likely not a problem with pip.\r\nerror: subprocess-exited-with-error\r\n\r\n\u00d7 Getting requirements to build wheel did not run successfully.\r\n\u2502 exit code: 1\r\n\u2570\u2500> See above for output.\n\n### Steps to reproduce the bug\n\n1. install python >=3.13\r\n2. !pip install datasets[audio]\n\n### Expected behavior\n\nI needed datasets[audio] in the python 3.13\n\n### Environment info\n\npython 3.13.1","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7355\/reactions","total_count":1,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7355\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7354","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7354\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7354\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7354\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7354","id":2768955917,"node_id":"I_kwDODunzps6lCuoN","number":7354,"title":"A module that was compiled using NumPy 1.x cannot be run in NumPy 2.0.2 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.","user":{"login":"jamessdixon","id":1394644,"node_id":"MDQ6VXNlcjEzOTQ2NDQ=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/1394644?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/jamessdixon","html_url":"https:\/\/github.com\/jamessdixon","followers_url":"https:\/\/api.github.com\/users\/jamessdixon\/followers","following_url":"https:\/\/api.github.com\/users\/jamessdixon\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/jamessdixon\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/jamessdixon\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/jamessdixon\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/jamessdixon\/orgs","repos_url":"https:\/\/api.github.com\/users\/jamessdixon\/repos","events_url":"https:\/\/api.github.com\/users\/jamessdixon\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/jamessdixon\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-01-04T18:30:17Z","updated_at":"2025-01-08T02:20:58Z","closed_at":"2025-01-08T02:20:58Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nFollowing this tutorial: https:\/\/huggingface.co\/docs\/diffusers\/en\/tutorials\/basic_training and running it locally using VSCode on my MacBook. The first line in the tutorial fails: from datasets import load_dataset\r\ndataset = load_dataset('huggan\/smithsonian_butterflies_subset', split=\"train\"). with this error: \r\nA module that was compiled using NumPy 1.x cannot be run in\r\nNumPy 2.0.2 as it may crash. To support both 1.x and 2.x\r\nversions of NumPy, modules must be compiled with NumPy 2.0.\r\nSome module may need to rebuild instead e.g. with 'pybind11>=2.12'.\r\nIf you are a user of the module, the easiest solution will be to\r\ndowngrade to 'numpy<2' or try to upgrade the affected module.\r\nWe expect that some modules will need time to support NumPy 2. and ImportError: numpy.core.multiarray failed to import. \r\n\r\nDoes from datasets import load_dataset really use NumPy 1.x? \n\n### Steps to reproduce the bug\n\nOpen VSCode. create a new venv. Create a new ipynb file. Import pip install diffusers[training] try to run this line of code: from datasets import load_dataset\n\n### Expected behavior\n\ndata is loaded\n\n### Environment info\n\nran this: datasets-cli env\r\nand got A module that was compiled using NumPy 1.x cannot be run in\r\nNumPy 2.0.2 as it may crash. To support both 1.x and 2.x\r\nversions of NumPy, modules must be compiled with NumPy 2.0.\r\nSome module may need to rebuild instead e.g. with 'pybind11>=2.12'.\r\n\r\nIf you are a user of the module, the easiest solution will be to\r\ndowngrade to 'numpy<2' or try to upgrade the affected module.\r\nWe expect that some modules will need time to support NumPy 2.","closed_by":{"login":"jamessdixon","id":1394644,"node_id":"MDQ6VXNlcjEzOTQ2NDQ=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/1394644?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/jamessdixon","html_url":"https:\/\/github.com\/jamessdixon","followers_url":"https:\/\/api.github.com\/users\/jamessdixon\/followers","following_url":"https:\/\/api.github.com\/users\/jamessdixon\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/jamessdixon\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/jamessdixon\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/jamessdixon\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/jamessdixon\/orgs","repos_url":"https:\/\/api.github.com\/users\/jamessdixon\/repos","events_url":"https:\/\/api.github.com\/users\/jamessdixon\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/jamessdixon\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7354\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7354\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7353","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7353\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7353\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7353\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7353","id":2768484726,"node_id":"PR_kwDODunzps6Gtd6K","number":7353,"title":"changes to MappedExamplesIterable to resolve #7345","user":{"login":"vttrifonov","id":12157034,"node_id":"MDQ6VXNlcjEyMTU3MDM0","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/12157034?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/vttrifonov","html_url":"https:\/\/github.com\/vttrifonov","followers_url":"https:\/\/api.github.com\/users\/vttrifonov\/followers","following_url":"https:\/\/api.github.com\/users\/vttrifonov\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/vttrifonov\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/vttrifonov\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/vttrifonov\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/vttrifonov\/orgs","repos_url":"https:\/\/api.github.com\/users\/vttrifonov\/repos","events_url":"https:\/\/api.github.com\/users\/vttrifonov\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/vttrifonov\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2025-01-04T06:01:15Z","updated_at":"2025-01-07T11:56:41Z","closed_at":"2025-01-07T11:56:41Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7353","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7353","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7353.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7353.patch","merged_at":"2025-01-07T11:56:41Z"},"body":"modified `MappedExamplesIterable` and `test_iterable_dataset.py::test_mapped_examples_iterable_with_indices`\r\n\r\nfix #7345\r\n\r\n@lhoestq ","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7353\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7353\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7352","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7352\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7352\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7352\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7352","id":2767763850,"node_id":"PR_kwDODunzps6GrBB5","number":7352,"title":"fsspec 2024.12.0","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-01-03T15:32:25Z","updated_at":"2025-01-03T15:34:54Z","closed_at":"2025-01-03T15:34:11Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7352","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7352","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7352.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7352.patch","merged_at":"2025-01-03T15:34:11Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7352\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7352\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7350","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7350\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7350\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7350\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7350","id":2767731707,"node_id":"PR_kwDODunzps6Gq6Bf","number":7350,"title":"Bump hfh to 0.24 to fix ci","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-01-03T15:09:40Z","updated_at":"2025-01-03T15:12:17Z","closed_at":"2025-01-03T15:10:27Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7350","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7350","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7350.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7350.patch","merged_at":"2025-01-03T15:10:27Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7350\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7350\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7349","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7349\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7349\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7349\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7349","id":2767670454,"node_id":"PR_kwDODunzps6GqseO","number":7349,"title":"Webdataset special columns in last position","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-01-03T14:32:15Z","updated_at":"2025-01-03T14:34:39Z","closed_at":"2025-01-03T14:32:30Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7349","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7349","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7349.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7349.patch","merged_at":"2025-01-03T14:32:30Z"},"body":"Place columns \"__key__\" and \"__url__\" in last position in the Dataset Viewer since they are not the main content\r\n\r\nbefore:\r\n\r\n\"image\"\r\n","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7349\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7349\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7348","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7348\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7348\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7348\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7348","id":2766128230,"node_id":"PR_kwDODunzps6Gldcy","number":7348,"title":"Catch OSError for arrow","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2025-01-02T14:30:00Z","updated_at":"2025-01-09T14:25:06Z","closed_at":"2025-01-09T14:25:04Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7348","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7348","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7348.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7348.patch","merged_at":"2025-01-09T14:25:04Z"},"body":"fixes https:\/\/github.com\/huggingface\/datasets\/issues\/7346\r\n\r\n(also updated `ruff` and appleid style changes)","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7348\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7348\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7347","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7347\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7347\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7347\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7347","id":2760282339,"node_id":"I_kwDODunzps6khpDj","number":7347,"title":"Converting Arrow to WebDataset TAR Format for Offline Use","user":{"login":"katie312","id":91370128,"node_id":"MDQ6VXNlcjkxMzcwMTI4","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/91370128?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/katie312","html_url":"https:\/\/github.com\/katie312","followers_url":"https:\/\/api.github.com\/users\/katie312\/followers","following_url":"https:\/\/api.github.com\/users\/katie312\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/katie312\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/katie312\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/katie312\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/katie312\/orgs","repos_url":"https:\/\/api.github.com\/users\/katie312\/repos","events_url":"https:\/\/api.github.com\/users\/katie312\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/katie312\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2024-12-27T01:40:44Z","updated_at":"2024-12-31T17:38:00Z","closed_at":"2024-12-28T15:38:03Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nHi, \r\n\r\nI've downloaded an Arrow-formatted dataset offline using the hugggingface's datasets library by:\r\n\r\n```\r\nimport json\r\nfrom datasets import load_dataset\r\n\r\ndataset = load_dataset(\"pixparse\/cc3m-wds\")\r\ndataset.save_to_disk(\".\/cc3m_1\") \r\n```\r\n\r\nnow I need to convert it to WebDataset's TAR format for offline data ingestion. \r\nIs there a straightforward method to achieve this conversion without an internet connection? Can I simply convert it by \r\n```\r\ntar -cvf \r\n```\r\n\r\nbtw, when I tried:\r\n```\r\nimport webdataset as wds\r\nfrom huggingface_hub import get_token\r\nfrom torch.utils.data import DataLoader\r\n\r\nhf_token = get_token()\r\nurl = \"https:\/\/huggingface.co\/datasets\/timm\/imagenet-12k-wds\/resolve\/main\/imagenet12k-train-{{0000..1023}}.tar\"\r\nurl = f\"pipe:curl -s -L {url} -H 'Authorization:Bearer {hf_token}'\"\r\ndataset = wds.WebDataset(url).decode()\r\ndataset.save_to_disk(\".\/cc3m_webdataset\") \r\n```\r\nerror occured:\r\n```\r\nAttributeError: 'WebDataset' object has no attribute 'save_to_disk'\r\n```\r\n\r\nThanks a lot!\n\n### Motivation\n\nConverting Arrow to WebDataset TAR Format\n\n### Your contribution\n\nNo clue yet","closed_by":{"login":"katie312","id":91370128,"node_id":"MDQ6VXNlcjkxMzcwMTI4","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/91370128?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/katie312","html_url":"https:\/\/github.com\/katie312","followers_url":"https:\/\/api.github.com\/users\/katie312\/followers","following_url":"https:\/\/api.github.com\/users\/katie312\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/katie312\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/katie312\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/katie312\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/katie312\/orgs","repos_url":"https:\/\/api.github.com\/users\/katie312\/repos","events_url":"https:\/\/api.github.com\/users\/katie312\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/katie312\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7347\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7347\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7346","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7346\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7346\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7346\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7346","id":2758752118,"node_id":"I_kwDODunzps6kbzd2","number":7346,"title":"OSError: Invalid flatbuffers message.","user":{"login":"antecede","id":46232487,"node_id":"MDQ6VXNlcjQ2MjMyNDg3","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/46232487?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/antecede","html_url":"https:\/\/github.com\/antecede","followers_url":"https:\/\/api.github.com\/users\/antecede\/followers","following_url":"https:\/\/api.github.com\/users\/antecede\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/antecede\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/antecede\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/antecede\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/antecede\/orgs","repos_url":"https:\/\/api.github.com\/users\/antecede\/repos","events_url":"https:\/\/api.github.com\/users\/antecede\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/antecede\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2024-12-25T11:38:52Z","updated_at":"2025-01-09T14:25:29Z","closed_at":"2025-01-09T14:25:05Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\r\n\r\nWhen loading a large 2D data (1000 \u00d7 1152) with a large number of (2,000 data in this case) in `load_dataset`, the error message `OSError: Invalid flatbuffers message` is reported. \r\n\r\nWhen only 300 pieces of data of this size (1000 \u00d7 1152) are stored, they can be loaded correctly. \r\n\r\nWhen 2,000 2D arrays are stored in each file, about 100 files are generated, each with a file size of about 5-6GB. But when 300 2D arrays are stored in each file, **about 600 files are generated, which is too many files**.\r\n\r\n### Steps to reproduce the bug\r\n\r\nerror\uff1a\r\n```python\r\n---------------------------------------------------------------------------\r\nOSError Traceback (most recent call last)\r\nCell In[2], line 4\r\n 1 from datasets import Dataset\r\n 2 from datasets import load_dataset\r\n----> 4 real_dataset = load_dataset(\"arrow\", data_files='tensorData\/real_ResidueTensor\/*', split=\"train\")#.with_format(\"torch\") # , split=\"train\"\r\n 5 # sim_dataset = load_dataset(\"arrow\", data_files='tensorData\/sim_ResidueTensor\/*', split=\"train\").with_format(\"torch\")\r\n 6 real_dataset\r\n\r\nFile [~\/miniforge3\/envs\/esmIne3\/lib\/python3.12\/site-packages\/datasets\/load.py:2151](http:\/\/localhost:8899\/lab\/tree\/RTC%3Anew_world\/esm3\/~\/miniforge3\/envs\/esmIne3\/lib\/python3.12\/site-packages\/datasets\/load.py#line=2150), in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, verification_mode, keep_in_memory, save_infos, revision, token, streaming, num_proc, storage_options, trust_remote_code, **config_kwargs)\r\n 2148 return builder_instance.as_streaming_dataset(split=split)\r\n 2150 # Download and prepare data\r\n-> 2151 builder_instance.download_and_prepare(\r\n 2152 download_config=download_config,\r\n 2153 download_mode=download_mode,\r\n 2154 verification_mode=verification_mode,\r\n 2155 num_proc=num_proc,\r\n 2156 storage_options=storage_options,\r\n 2157 )\r\n 2159 # Build dataset for splits\r\n 2160 keep_in_memory = (\r\n 2161 keep_in_memory if keep_in_memory is not None else is_small_dataset(builder_instance.info.dataset_size)\r\n 2162 )\r\n\r\nFile [~\/miniforge3\/envs\/esmIne3\/lib\/python3.12\/site-packages\/datasets\/builder.py:924](http:\/\/localhost:8899\/lab\/tree\/RTC%3Anew_world\/esm3\/~\/miniforge3\/envs\/esmIne3\/lib\/python3.12\/site-packages\/datasets\/builder.py#line=923), in DatasetBuilder.download_and_prepare(self, output_dir, download_config, download_mode, verification_mode, dl_manager, base_path, file_format, max_shard_size, num_proc, storage_options, **download_and_prepare_kwargs)\r\n 922 if num_proc is not None:\r\n 923 prepare_split_kwargs[\"num_proc\"] = num_proc\r\n--> 924 self._download_and_prepare(\r\n 925 dl_manager=dl_manager,\r\n 926 verification_mode=verification_mode,\r\n 927 **prepare_split_kwargs,\r\n 928 **download_and_prepare_kwargs,\r\n 929 )\r\n 930 # Sync info\r\n 931 self.info.dataset_size = sum(split.num_bytes for split in self.info.splits.values())\r\n\r\nFile [~\/miniforge3\/envs\/esmIne3\/lib\/python3.12\/site-packages\/datasets\/builder.py:978](http:\/\/localhost:8899\/lab\/tree\/RTC%3Anew_world\/esm3\/~\/miniforge3\/envs\/esmIne3\/lib\/python3.12\/site-packages\/datasets\/builder.py#line=977), in DatasetBuilder._download_and_prepare(self, dl_manager, verification_mode, **prepare_split_kwargs)\r\n 976 split_dict = SplitDict(dataset_name=self.dataset_name)\r\n 977 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)\r\n--> 978 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)\r\n 980 # Checksums verification\r\n 981 if verification_mode == VerificationMode.ALL_CHECKS and dl_manager.record_checksums:\r\n\r\nFile [~\/miniforge3\/envs\/esmIne3\/lib\/python3.12\/site-packages\/datasets\/packaged_modules\/arrow\/arrow.py:47](http:\/\/localhost:8899\/lab\/tree\/RTC%3Anew_world\/esm3\/~\/miniforge3\/envs\/esmIne3\/lib\/python3.12\/site-packages\/datasets\/packaged_modules\/arrow\/arrow.py#line=46), in Arrow._split_generators(self, dl_manager)\r\n 45 with open(file, \"rb\") as f:\r\n 46 try:\r\n---> 47 reader = pa.ipc.open_stream(f)\r\n 48 except pa.lib.ArrowInvalid:\r\n 49 reader = pa.ipc.open_file(f)\r\n\r\nFile [~\/miniforge3\/envs\/esmIne3\/lib\/python3.12\/site-packages\/pyarrow\/ipc.py:190](http:\/\/localhost:8899\/lab\/tree\/RTC%3Anew_world\/esm3\/~\/miniforge3\/envs\/esmIne3\/lib\/python3.12\/site-packages\/pyarrow\/ipc.py#line=189), in open_stream(source, options, memory_pool)\r\n 171 def open_stream(source, *, options=None, memory_pool=None):\r\n 172 \"\"\"\r\n 173 Create reader for Arrow streaming format.\r\n 174 \r\n (...)\r\n 188 A reader for the given source\r\n 189 \"\"\"\r\n--> 190 return RecordBatchStreamReader(source, options=options,\r\n 191 memory_pool=memory_pool)\r\n\r\nFile [~\/miniforge3\/envs\/esmIne3\/lib\/python3.12\/site-packages\/pyarrow\/ipc.py:52](http:\/\/localhost:8899\/lab\/tree\/RTC%3Anew_world\/esm3\/~\/miniforge3\/envs\/esmIne3\/lib\/python3.12\/site-packages\/pyarrow\/ipc.py#line=51), in RecordBatchStreamReader.__init__(self, source, options, memory_pool)\r\n 50 def __init__(self, source, *, options=None, memory_pool=None):\r\n 51 options = _ensure_default_ipc_read_options(options)\r\n---> 52 self._open(source, options=options, memory_pool=memory_pool)\r\n\r\nFile [~\/miniforge3\/envs\/esmIne3\/lib\/python3.12\/site-packages\/pyarrow\/ipc.pxi:1006](http:\/\/localhost:8899\/lab\/tree\/RTC%3Anew_world\/esm3\/~\/miniforge3\/envs\/esmIne3\/lib\/python3.12\/site-packages\/pyarrow\/ipc.pxi#line=1005), in pyarrow.lib._RecordBatchStreamReader._open()\r\n\r\nFile [~\/miniforge3\/envs\/esmIne3\/lib\/python3.12\/site-packages\/pyarrow\/error.pxi:155](http:\/\/localhost:8899\/lab\/tree\/RTC%3Anew_world\/esm3\/~\/miniforge3\/envs\/esmIne3\/lib\/python3.12\/site-packages\/pyarrow\/error.pxi#line=154), in pyarrow.lib.pyarrow_internal_check_status()\r\n\r\nFile [~\/miniforge3\/envs\/esmIne3\/lib\/python3.12\/site-packages\/pyarrow\/error.pxi:92](http:\/\/localhost:8899\/lab\/tree\/RTC%3Anew_world\/esm3\/~\/miniforge3\/envs\/esmIne3\/lib\/python3.12\/site-packages\/pyarrow\/error.pxi#line=91), in pyarrow.lib.check_status()\r\n\r\nOSError: Invalid flatbuffers message.\r\n```\r\n\r\nreproduce\uff1aHere is just an example result, the real 2D matrix is the output of the ESM large model, and the matrix size is approximate\r\n```python\r\nimport numpy as np\r\nimport pyarrow as pa\r\n\r\nrandom_arrays_list = [np.random.rand(1000, 1152) for _ in range(2000)]\r\ntable = pa.Table.from_pydict({\r\n 'tensor': [tensor.tolist() for tensor in random_arrays_list]\r\n})\r\n\r\nimport pyarrow.feather as feather\r\nfeather.write_feather(table, 'test.arrow')\r\n\r\nfrom datasets import load_dataset\r\ndataset = load_dataset(\"arrow\", data_files='test.arrow', split=\"train\")\r\n```\r\n\r\n### Expected behavior\r\n\r\n`load_dataset` load the dataset as normal as `feather.read_feather`\r\n```python\r\nimport pyarrow.feather as feather\r\nfeather.read_feather('tensorData\/real_ResidueTensor\/real_tensor_1.arrow')\r\n```\r\n\r\nPlus `load_dataset(\"parquet\", data_files='test.arrow', split=\"train\")` works fine\r\n\r\n### Environment info\r\n\r\n- `datasets` version: 3.2.0\r\n- Platform: Linux-6.8.0-49-generic-x86_64-with-glibc2.39\r\n- Python version: 3.12.3\r\n- `huggingface_hub` version: 0.26.5\r\n- PyArrow version: 18.1.0\r\n- Pandas version: 2.2.3\r\n- `fsspec` version: 2024.9.0\r\n","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7346\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7346\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7345","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7345\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7345\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7345\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7345","id":2758585709,"node_id":"I_kwDODunzps6kbK1t","number":7345,"title":"Different behaviour of IterableDataset.map vs Dataset.map with remove_columns","user":{"login":"vttrifonov","id":12157034,"node_id":"MDQ6VXNlcjEyMTU3MDM0","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/12157034?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/vttrifonov","html_url":"https:\/\/github.com\/vttrifonov","followers_url":"https:\/\/api.github.com\/users\/vttrifonov\/followers","following_url":"https:\/\/api.github.com\/users\/vttrifonov\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/vttrifonov\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/vttrifonov\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/vttrifonov\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/vttrifonov\/orgs","repos_url":"https:\/\/api.github.com\/users\/vttrifonov\/repos","events_url":"https:\/\/api.github.com\/users\/vttrifonov\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/vttrifonov\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-12-25T07:36:48Z","updated_at":"2025-01-07T11:56:42Z","closed_at":"2025-01-07T11:56:42Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nThe following code\r\n\r\n```python\r\nimport datasets as hf\r\nds1 = hf.Dataset.from_list([{'i': i} for i in [0,1]])\r\n#ds1 = ds1.to_iterable_dataset()\r\nds2 = ds1.map(\r\n lambda i: {'i': i+1},\r\n input_columns = ['i'],\r\n remove_columns = ['i']\r\n) \r\nlist(ds2)\r\n```\r\n\r\nproduces\r\n\r\n```python\r\n[{'i': 1}, {'i': 2}]\r\n```\r\n\r\nas expected. If the line that converts `ds1` to iterable is uncommented so that the `ds2` is a map of an `IterableDataset`, the result is \r\n\r\n```python\r\n[{},{}]\r\n```\r\n\r\nI expected the output to be the same as before. It seems that in the second case the removed column is not added back into the output.\r\n\r\nThe issue seems to be [here](https:\/\/github.com\/huggingface\/datasets\/blob\/6c6a82a573f946c4a81069f56446caed15cee9c2\/src\/datasets\/iterable_dataset.py#L1093): the columns are removed after the mapping which is not what we want (or what the [documentation says](https:\/\/github.com\/huggingface\/datasets\/blob\/6c6a82a573f946c4a81069f56446caed15cee9c2\/src\/datasets\/iterable_dataset.py#L2370)) because we want the columns removed from the transformed example but then added if the map produced them.\r\n\r\nThis is `datasets==3.2.0` and `python==3.10`\r\n\r\n\n\n### Steps to reproduce the bug\n\nsee above\n\n### Expected behavior\n\nsee above\n\n### Environment info\n\nsee above","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7345\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7345\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7344","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7344\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7344\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7344\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7344","id":2754735951,"node_id":"I_kwDODunzps6kMe9P","number":7344,"title":"HfHubHTTPError: 429 Client Error: Too Many Requests for URL when trying to access SlimPajama-627B or c4 on TPUs","user":{"login":"clankur","id":9397233,"node_id":"MDQ6VXNlcjkzOTcyMzM=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/9397233?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/clankur","html_url":"https:\/\/github.com\/clankur","followers_url":"https:\/\/api.github.com\/users\/clankur\/followers","following_url":"https:\/\/api.github.com\/users\/clankur\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/clankur\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/clankur\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/clankur\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/clankur\/orgs","repos_url":"https:\/\/api.github.com\/users\/clankur\/repos","events_url":"https:\/\/api.github.com\/users\/clankur\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/clankur\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-12-22T16:30:07Z","updated_at":"2025-01-15T05:32:00Z","closed_at":"2025-01-15T05:31:58Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI am trying to run some trainings on Google's TPUs using Huggingface's DataLoader on [SlimPajama-627B](https:\/\/huggingface.co\/datasets\/cerebras\/SlimPajama-627B) and [c4](https:\/\/huggingface.co\/datasets\/allenai\/c4), but I end up running into `429 Client Error: Too Many Requests for URL` error when I call `load_dataset`. The even odder part is that I am able to sucessfully run trainings with the [wikitext dataset](https:\/\/huggingface.co\/datasets\/Salesforce\/wikitext). Is there something I need to setup to specifically train with SlimPajama or C4 with TPUs because I am not clear why I am getting these errors.\r\n\r\n\n\n### Steps to reproduce the bug\n\nThese are the commands you could run to produce the error below but you will require a ClearML account (you can create one [here](https:\/\/app.clear.ml\/login?redirect=%2Fdashboard)) with a queue setup to run on Google TPUs\r\n```bash\r\ngit clone https:\/\/github.com\/clankur\/muGPT.git\r\ncd muGPT\r\npython -m train --config-name=slim_v4-32_84m.yaml +training.queue={NAME_OF_CLEARML_QUEUE}\r\n```\r\n\r\nThe error I see:\r\n```\r\nTraceback (most recent call last):\r\n File \"\/home\/clankur\/conda\/envs\/jax\/lib\/python3.10\/site-packages\/clearml\/binding\/hydra_bind.py\", line 230, in _patched_task_function\r\n return task_function(a_config, *a_args, **a_kwargs)\r\n File \"\/home\/clankur\/.clearml\/venvs-builds\/3.10\/task_repository\/muGPT.git\/train.py\", line 1037, in main\r\n main_contained(config, logger)\r\n File \"\/home\/clankur\/.clearml\/venvs-builds\/3.10\/task_repository\/muGPT.git\/train.py\", line 840, in main_contained\r\n loader = get_loader(\"train\", config.training_data, config.training.tokens)\r\n File \"\/home\/clankur\/.clearml\/venvs-builds\/3.10\/task_repository\/muGPT.git\/input_loader.py\", line 549, in get_loader\r\n return HuggingFaceDataLoader(split, config, token_batch_params)\r\n File \"\/home\/clankur\/.clearml\/venvs-builds\/3.10\/task_repository\/muGPT.git\/input_loader.py\", line 395, in __init__\r\n self.dataset = load_dataset(\r\n File \"\/home\/clankur\/conda\/envs\/jax\/lib\/python3.10\/site-packages\/datasets\/load.py\", line 2112, in load_dataset\r\n builder_instance = load_dataset_builder(\r\n File \"\/home\/clankur\/conda\/envs\/jax\/lib\/python3.10\/site-packages\/datasets\/load.py\", line 1798, in load_dataset_builder\r\n dataset_module = dataset_module_factory(\r\n File \"\/home\/clankur\/conda\/envs\/jax\/lib\/python3.10\/site-packages\/datasets\/load.py\", line 1495, in dataset_module_factory\r\n raise e1 from None\r\n File \"\/home\/clankur\/conda\/envs\/jax\/lib\/python3.10\/site-packages\/datasets\/load.py\", line 1479, in dataset_module_factory\r\n ).get_module()\r\n File \"\/home\/clankur\/conda\/envs\/jax\/lib\/python3.10\/site-packages\/datasets\/load.py\", line 1034, in get_module\r\n else get_data_patterns(base_path, download_config=self.download_config)\r\n File \"\/home\/clankur\/conda\/envs\/jax\/lib\/python3.10\/site-packages\/datasets\/data_files.py\", line 457, in get_data_patterns\r\n return _get_data_files_patterns(resolver)\r\n File \"\/home\/clankur\/conda\/envs\/jax\/lib\/python3.10\/site-packages\/datasets\/data_files.py\", line 248, in _get_data_files_patterns\r\n data_files = pattern_resolver(pattern)\r\n File \"\/home\/clankur\/conda\/envs\/jax\/lib\/python3.10\/site-packages\/datasets\/data_files.py\", line 340, in resolve_pattern\r\n for filepath, info in fs.glob(pattern, detail=True).items()\r\n File \"\/home\/clankur\/conda\/envs\/jax\/lib\/python3.10\/site-packages\/huggingface_hub\/hf_file_system.py\", line 409, in glob\r\n return super().glob(path, **kwargs)\r\n File \"\/home\/clankur\/.clearml\/venvs-builds\/3.10\/lib\/python3.10\/site-packages\/fsspec\/spec.py\", line 602, in glob\r\n allpaths = self.find(root, maxdepth=depth, withdirs=True, detail=True, **kwargs)\r\n File \"\/home\/clankur\/conda\/envs\/jax\/lib\/python3.10\/site-packages\/huggingface_hub\/hf_file_system.py\", line 429, in find\r\n out = self._ls_tree(path, recursive=True, refresh=refresh, revision=resolved_path.revision, **kwargs)\r\n File \"\/home\/clankur\/conda\/envs\/jax\/lib\/python3.10\/site-packages\/huggingface_hub\/hf_file_system.py\", line 358, in _ls_tree\r\n self._ls_tree(\r\n File \"\/home\/clankur\/conda\/envs\/jax\/lib\/python3.10\/site-packages\/huggingface_hub\/hf_file_system.py\", line 375, in _ls_tree\r\n for path_info in tree:\r\n File \"\/home\/clankur\/conda\/envs\/jax\/lib\/python3.10\/site-packages\/huggingface_hub\/hf_api.py\", line 3080, in list_repo_tree\r\n for path_info in paginate(path=tree_url, headers=headers, params={\"recursive\": recursive, \"expand\": expand}):\r\n File \"\/home\/clankur\/conda\/envs\/jax\/lib\/python3.10\/site-packages\/huggingface_hub\/utils\/_pagination.py\", line 46, in paginate\r\n hf_raise_for_status(r)\r\n File \"\/home\/clankur\/conda\/envs\/jax\/lib\/python3.10\/site-packages\/huggingface_hub\/utils\/_http.py\", line 477, in hf_raise_for_status\r\n raise _format(HfHubHTTPError, str(e), response) from e\r\nhuggingface_hub.errors.HfHubHTTPError: 429 Client Error: Too Many Requests for url: https:\/\/huggingface.co\/api\/datasets\/cerebras\/SlimPajama-627B\/tree\/2d0accdd58c5d5511943ca1f5ff0e3eb5e293543?recursive=True&expand=True&cursor=ZXlKbWFXeGxYMjVoYldVaU9pSjBaWE4wTDJOb2RXNXJNUzlsZUdGdGNHeGxYMmh2YkdSdmRYUmZPVFEzTG1wemIyNXNMbnB6ZENKOTo2MjUw (Request ID: Root=1-67673de9-1413900606ede7712b08ef2c;1304c09c-3e69-4222-be14-f10ee709d49c)\r\nmaximum queue size reached\r\nSet the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.\r\n```\n\n### Expected behavior\n\nI'd expect the DataLoader to load from the SlimPajama-627B and c4 dataset without issue.\n\n### Environment info\n\n- `datasets` version: 2.14.4\r\n- Platform: Linux-5.8.0-1035-gcp-x86_64-with-glibc2.31\r\n- Python version: 3.10.16\r\n- Huggingface_hub version: 0.26.5\r\n- PyArrow version: 18.1.0\r\n- Pandas version: 2.2.3","closed_by":{"login":"clankur","id":9397233,"node_id":"MDQ6VXNlcjkzOTcyMzM=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/9397233?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/clankur","html_url":"https:\/\/github.com\/clankur","followers_url":"https:\/\/api.github.com\/users\/clankur\/followers","following_url":"https:\/\/api.github.com\/users\/clankur\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/clankur\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/clankur\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/clankur\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/clankur\/orgs","repos_url":"https:\/\/api.github.com\/users\/clankur\/repos","events_url":"https:\/\/api.github.com\/users\/clankur\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/clankur\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7344\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7344\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7343","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7343\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7343\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7343\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7343","id":2750525823,"node_id":"I_kwDODunzps6j8bF_","number":7343,"title":"[Bug] Inconsistent behavior of data_files and data_dir in load_dataset method.","user":{"login":"JasonCZH4","id":74161960,"node_id":"MDQ6VXNlcjc0MTYxOTYw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/74161960?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/JasonCZH4","html_url":"https:\/\/github.com\/JasonCZH4","followers_url":"https:\/\/api.github.com\/users\/JasonCZH4\/followers","following_url":"https:\/\/api.github.com\/users\/JasonCZH4\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/JasonCZH4\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/JasonCZH4\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/JasonCZH4\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/JasonCZH4\/orgs","repos_url":"https:\/\/api.github.com\/users\/JasonCZH4\/repos","events_url":"https:\/\/api.github.com\/users\/JasonCZH4\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/JasonCZH4\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2024-12-19T14:31:27Z","updated_at":"2025-01-03T15:54:09Z","closed_at":"2025-01-03T15:54:09Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nInconsistent operation of data_files and data_dir in load_dataset method.\r\n\n\n### Steps to reproduce the bug\n\n# First\r\nI have three files, named 'train.json', 'val.json', 'test.json'.\r\nEach one has a simple dict `{text:'aaa'}`.\r\nTheir path are `\/data\/train.json`, `\/data\/val.json`, `\/data\/test.json`\r\nI load dataset with `data_files` argument:\r\n```py\r\nfiles = [os.path.join('.\/data',file) for file in os.listdir('.\/data')]\r\nds = load_dataset(\r\n path='json',\r\n data_files=files,)\r\n```\r\nAnd I get:\r\n```py\r\nDatasetDict({\r\n train: Dataset({\r\n features: ['text'],\r\n num_rows: 3\r\n })\r\n})\r\n```\r\nHowever, If I load dataset with `data_dir` argument:\r\n```py\r\nds = load_dataset(\r\n path='json',\r\n data_dir='.\/data',)\r\n```\r\nAnd I get:\r\n```py\r\nDatasetDict({\r\n train: Dataset({\r\n features: ['text'],\r\n num_rows: 1\r\n })\r\n validation: Dataset({\r\n features: ['text'],\r\n num_rows: 1\r\n })\r\n test: Dataset({\r\n features: ['text'],\r\n num_rows: 1\r\n })\r\n})\r\n```\r\nTwo results are not the same. Their behaviors are not equal, even if the statement [here](https:\/\/github.com\/huggingface\/datasets\/blob\/d0c152a979d91cc34b605c0298aebc650ab7dd27\/src\/datasets\/load.py#L1790) said that their behaviors are equal. \r\n\r\n\r\n# Second\r\nIf some filename include 'test' while others do not, `load_dataset` only return `test` dataset and others files are **abandoned**.\r\nGiven two files named `test.json` and `1.json`\r\nEach one has a simple dict `{text:'aaa'}`.\r\nI load the dataset using:\r\n```py\r\nds = load_dataset(\r\n path='json',\r\n data_dir='.\/data',)\r\n```\r\nOnly `test` is returned, `1.json` is missing:\r\n```py\r\nDatasetDict({\r\n test: Dataset({\r\n features: ['text'],\r\n num_rows: 1\r\n })\r\n})\r\n```\r\nThings do not change even I manually set `split='train'`\r\n\r\n \r\n\r\n\n\n### Expected behavior\n\n1. Fix the above bugs.\r\n2. Although the document says that load_dataset method will `Find which file goes into which split (e.g. train\/test) based on file and directory names or on the YAML configuration`, I hope I can manually decide whether to do so. Sometimes users may accidentally put a `test` string in the filename but they just want a single `train` dataset. If the number of files in `data_dir` is huge, it's not easy to find out what cause the second situation metioned above.\n\n### Environment info\n\ndatasets==3.2.0\r\nUbuntu18.84","closed_by":{"login":"JasonCZH4","id":74161960,"node_id":"MDQ6VXNlcjc0MTYxOTYw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/74161960?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/JasonCZH4","html_url":"https:\/\/github.com\/JasonCZH4","followers_url":"https:\/\/api.github.com\/users\/JasonCZH4\/followers","following_url":"https:\/\/api.github.com\/users\/JasonCZH4\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/JasonCZH4\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/JasonCZH4\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/JasonCZH4\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/JasonCZH4\/orgs","repos_url":"https:\/\/api.github.com\/users\/JasonCZH4\/repos","events_url":"https:\/\/api.github.com\/users\/JasonCZH4\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/JasonCZH4\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7343\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7343\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7342","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7342\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7342\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7342\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7342","id":2749572310,"node_id":"PR_kwDODunzps6FvgcK","number":7342,"title":"Update LICENSE","user":{"login":"eliebak","id":97572401,"node_id":"U_kgDOBdDWMQ","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/97572401?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/eliebak","html_url":"https:\/\/github.com\/eliebak","followers_url":"https:\/\/api.github.com\/users\/eliebak\/followers","following_url":"https:\/\/api.github.com\/users\/eliebak\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/eliebak\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/eliebak\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/eliebak\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/eliebak\/orgs","repos_url":"https:\/\/api.github.com\/users\/eliebak\/repos","events_url":"https:\/\/api.github.com\/users\/eliebak\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/eliebak\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-12-19T08:17:50Z","updated_at":"2024-12-19T08:44:08Z","closed_at":"2024-12-19T08:44:08Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7342","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7342","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7342.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7342.patch","merged_at":null},"body":null,"closed_by":{"login":"eliebak","id":97572401,"node_id":"U_kgDOBdDWMQ","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/97572401?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/eliebak","html_url":"https:\/\/github.com\/eliebak","followers_url":"https:\/\/api.github.com\/users\/eliebak\/followers","following_url":"https:\/\/api.github.com\/users\/eliebak\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/eliebak\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/eliebak\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/eliebak\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/eliebak\/orgs","repos_url":"https:\/\/api.github.com\/users\/eliebak\/repos","events_url":"https:\/\/api.github.com\/users\/eliebak\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/eliebak\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7342\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7342\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7341","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7341\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7341\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7341\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7341","id":2745658561,"node_id":"PR_kwDODunzps6FiGlt","number":7341,"title":"minor video docs on how to install","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-12-17T18:06:17Z","updated_at":"2024-12-17T18:11:17Z","closed_at":"2024-12-17T18:11:15Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7341","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7341","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7341.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7341.patch","merged_at":"2024-12-17T18:11:14Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7341\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7341\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7340","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7340\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7340\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7340\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7340","id":2745473274,"node_id":"PR_kwDODunzps6FhdR2","number":7340,"title":"don't import soundfile in tests","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-12-17T16:49:55Z","updated_at":"2024-12-17T16:54:04Z","closed_at":"2024-12-17T16:50:24Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7340","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7340","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7340.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7340.patch","merged_at":"2024-12-17T16:50:24Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7340\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7340\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7339","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7339\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7339\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7339\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7339","id":2745460060,"node_id":"PR_kwDODunzps6FhaTl","number":7339,"title":"Update CONTRIBUTING.md","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-12-17T16:45:25Z","updated_at":"2024-12-17T16:51:36Z","closed_at":"2024-12-17T16:46:30Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7339","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7339","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7339.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7339.patch","merged_at":"2024-12-17T16:46:30Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7339\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7339\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7337","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7337\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7337\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7337\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7337","id":2744877569,"node_id":"I_kwDODunzps6jm4IB","number":7337,"title":"One or several metadata.jsonl were found, but not in the same directory or in a parent directory of","user":{"login":"mst272","id":67250532,"node_id":"MDQ6VXNlcjY3MjUwNTMy","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/67250532?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/mst272","html_url":"https:\/\/github.com\/mst272","followers_url":"https:\/\/api.github.com\/users\/mst272\/followers","following_url":"https:\/\/api.github.com\/users\/mst272\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/mst272\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/mst272\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/mst272\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/mst272\/orgs","repos_url":"https:\/\/api.github.com\/users\/mst272\/repos","events_url":"https:\/\/api.github.com\/users\/mst272\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/mst272\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-12-17T12:58:43Z","updated_at":"2025-01-03T15:28:13Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nImageFolder with metadata.jsonl error. I downloaded liuhaotian\/LLaVA-CC3M-Pretrain-595K locally from Hugging Face. According to the tutorial in https:\/\/huggingface.co\/docs\/datasets\/image_dataset#image-captioning, only put images.zip and metadata.jsonl containing information in the same folder. However, after loading, an error was reported: One or several metadata.jsonl were found, but not in the same directory or in a parent directory of.\r\n\r\nThe data in my jsonl file is as follows:\r\n\r\n> {\"id\": \"GCC_train_002448550\", \"file_name\": \"GCC_train_002448550.jpg\", \"conversations\": [{\"from\": \"human\", \"value\": \"\\nProvide a brief description of the given image.\"}, {\"from\": \"gpt\", \"value\": \"a view of a city , where the flyover was proposed to reduce the increasing traffic on thursday .\"}]}\r\n\n\n### Steps to reproduce the bug\n\nfrom datasets import load_dataset\r\nimage = load_dataset(\"imagefolder\",data_dir='data\/opensource_data')\n\n### Expected behavior\n\nsuccess\n\n### Environment info\n\ndatasets==3.2.0","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7337\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7337\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7336","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7336\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7336\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7336\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7336","id":2744746456,"node_id":"I_kwDODunzps6jmYHY","number":7336,"title":"Clarify documentation or Create DatasetCard","user":{"login":"August-murr","id":145011209,"node_id":"U_kgDOCKSyCQ","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/145011209?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/August-murr","html_url":"https:\/\/github.com\/August-murr","followers_url":"https:\/\/api.github.com\/users\/August-murr\/followers","following_url":"https:\/\/api.github.com\/users\/August-murr\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/August-murr\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/August-murr\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/August-murr\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/August-murr\/orgs","repos_url":"https:\/\/api.github.com\/users\/August-murr\/repos","events_url":"https:\/\/api.github.com\/users\/August-murr\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/August-murr\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-12-17T12:01:00Z","updated_at":"2024-12-17T12:01:00Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nI noticed that you can use a Model Card instead of a Dataset Card when pushing a dataset to the Hub, but this isn\u2019t clearly mentioned in [the docs.](https:\/\/huggingface.co\/docs\/datasets\/dataset_card)\r\n\r\n- Update the docs to clarify that a Model Card can work for datasets too.\r\n- It might be worth creating a dedicated DatasetCard module, similar to the ModelCard module, for consistency and better support.\r\n\r\nNot sure if this belongs here or on the [Hub repo](https:\/\/github.com\/huggingface\/huggingface_hub), but thought I\u2019d bring it up!\n\n### Motivation\n\nI just spent an hour like on [this issue](https:\/\/github.com\/huggingface\/trl\/pull\/2491) trying to create a `DatasetCard` for a script.\n\n### Your contribution\n\nmight later","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7336\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7336\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7335","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7335\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7335\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7335\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7335","id":2743437260,"node_id":"I_kwDODunzps6jhYfM","number":7335,"title":"Too many open files: '\/root\/.cache\/huggingface\/token'","user":{"login":"kopyl","id":17604849,"node_id":"MDQ6VXNlcjE3NjA0ODQ5","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/17604849?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/kopyl","html_url":"https:\/\/github.com\/kopyl","followers_url":"https:\/\/api.github.com\/users\/kopyl\/followers","following_url":"https:\/\/api.github.com\/users\/kopyl\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/kopyl\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/kopyl\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/kopyl\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/kopyl\/orgs","repos_url":"https:\/\/api.github.com\/users\/kopyl\/repos","events_url":"https:\/\/api.github.com\/users\/kopyl\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/kopyl\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-12-16T21:30:24Z","updated_at":"2024-12-16T21:30:24Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI ran this code:\r\n```\r\nfrom datasets import load_dataset\r\ndataset = load_dataset(\"common-canvas\/commoncatalog-cc-by\", cache_dir=\"\/datadrive\/datasets\/cc\", num_proc=1000)\r\n```\r\n\r\nAnd got this error.\r\nBefore it was some other file though (lie something...incomplete)\r\n\r\nrunnting\r\n```\r\nulimit -n 8192\r\n```\r\ndid not help at all.\n\n### Steps to reproduce the bug\n\nRun the code i sent\n\n### Expected behavior\n\nShould be no errors \n\n### Environment info\n\nlinux, jupyter lab.","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7335\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7335\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7334","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7334\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7334\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7334\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7334","id":2740266503,"node_id":"I_kwDODunzps6jVSYH","number":7334,"title":"TypeError: Value.__init__() missing 1 required positional argument: 'dtype'","user":{"login":"ghost","id":10137,"node_id":"MDQ6VXNlcjEwMTM3","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/10137?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ghost","html_url":"https:\/\/github.com\/ghost","followers_url":"https:\/\/api.github.com\/users\/ghost\/followers","following_url":"https:\/\/api.github.com\/users\/ghost\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ghost\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ghost\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ghost\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ghost\/orgs","repos_url":"https:\/\/api.github.com\/users\/ghost\/repos","events_url":"https:\/\/api.github.com\/users\/ghost\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ghost\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2024-12-15T04:08:46Z","updated_at":"2025-07-10T03:32:36Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nds = load_dataset(\r\n \".\/xxx.py\",\r\n name=\"default\",\r\n split=\"train\",\r\n)\r\n\r\nThe datasets does not support debugging locally anymore...\n\n### Steps to reproduce the bug\n\n```\r\nfrom datasets import load_dataset\r\n\r\nds = load_dataset(\r\n \".\/repo.py\",\r\n name=\"default\",\r\n split=\"train\",\r\n)\r\n\r\nfor item in ds:\r\n print(item)\r\n```\r\n\r\nIt works fine for \"username\/repo\", but it does not work for \".\/repo.py\" when debugging locally...\r\nRunning above code template will report TypeError: Value.__init__() missing 1 required positional argument: 'dtype'\n\n### Expected behavior\n\nfix this bug\n\n### Environment info\n\npython 3.10 datasets==2.21","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7334\/reactions","total_count":1,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7334\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7328","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7328\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7328\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7328\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7328","id":2738626593,"node_id":"PR_kwDODunzps6FKK13","number":7328,"title":"Fix typo in arrow_dataset","user":{"login":"AndreaFrancis","id":5564745,"node_id":"MDQ6VXNlcjU1NjQ3NDU=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/5564745?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/AndreaFrancis","html_url":"https:\/\/github.com\/AndreaFrancis","followers_url":"https:\/\/api.github.com\/users\/AndreaFrancis\/followers","following_url":"https:\/\/api.github.com\/users\/AndreaFrancis\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/AndreaFrancis\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/AndreaFrancis\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/AndreaFrancis\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/AndreaFrancis\/orgs","repos_url":"https:\/\/api.github.com\/users\/AndreaFrancis\/repos","events_url":"https:\/\/api.github.com\/users\/AndreaFrancis\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/AndreaFrancis\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-12-13T15:17:09Z","updated_at":"2024-12-19T17:10:27Z","closed_at":"2024-12-19T17:10:25Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7328","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7328","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7328.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7328.patch","merged_at":"2024-12-19T17:10:25Z"},"body":null,"closed_by":{"login":"AndreaFrancis","id":5564745,"node_id":"MDQ6VXNlcjU1NjQ3NDU=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/5564745?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/AndreaFrancis","html_url":"https:\/\/github.com\/AndreaFrancis","followers_url":"https:\/\/api.github.com\/users\/AndreaFrancis\/followers","following_url":"https:\/\/api.github.com\/users\/AndreaFrancis\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/AndreaFrancis\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/AndreaFrancis\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/AndreaFrancis\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/AndreaFrancis\/orgs","repos_url":"https:\/\/api.github.com\/users\/AndreaFrancis\/repos","events_url":"https:\/\/api.github.com\/users\/AndreaFrancis\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/AndreaFrancis\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7328\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7328\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7327","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7327\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7327\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7327\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7327","id":2738514909,"node_id":"I_kwDODunzps6jOmvd","number":7327,"title":".map() is not caching and ram goes OOM","user":{"login":"simeneide","id":7136076,"node_id":"MDQ6VXNlcjcxMzYwNzY=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/7136076?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/simeneide","html_url":"https:\/\/github.com\/simeneide","followers_url":"https:\/\/api.github.com\/users\/simeneide\/followers","following_url":"https:\/\/api.github.com\/users\/simeneide\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/simeneide\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/simeneide\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/simeneide\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/simeneide\/orgs","repos_url":"https:\/\/api.github.com\/users\/simeneide\/repos","events_url":"https:\/\/api.github.com\/users\/simeneide\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/simeneide\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-12-13T14:22:56Z","updated_at":"2025-02-10T10:42:38Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nIm trying to run a fairly simple map that is converting a dataset into numpy arrays. however, it just piles up on memory and doesnt write to disk. Ive tried multiple cache techniques such as specifying the cache dir, setting max mem, +++ but none seem to work. What am I missing here?\n\n### Steps to reproduce the bug\n\n```\r\nfrom pydub import AudioSegment\r\nimport io\r\nimport base64\r\nimport numpy as np\r\nimport os\r\nCACHE_PATH = \"\/mnt\/extdisk\/cache\" # \"\/root\/.cache\/huggingface\/\"# \r\nos.environ[\"HF_HOME\"] = CACHE_PATH\r\nimport datasets\r\nimport logging\r\nlogger = logging.getLogger()\r\nlogger.setLevel(logging.INFO)\r\n# Create a handler for Jupyter notebook\r\nhandler = logging.StreamHandler()\r\nformatter = logging.Formatter('%(asctime)s - %(levelname)s - %(message)s')\r\nhandler.setFormatter(formatter)\r\nlogger.addHandler(handler)\r\n\r\n#datasets.config.IN_MEMORY_MAX_SIZE= 1000#*(2**30) #50 gb\r\nprint(datasets.config.HF_CACHE_HOME)\r\nprint(datasets.config.HF_DATASETS_CACHE)\r\n# Decode the base64 string into bytes\r\ndef convert_mp3_to_audio_segment(example):\r\n \"\"\"\r\n example = ds['train'][0]\r\n \"\"\"\r\n try:\r\n audio_data_bytes = base64.b64decode(example['audio'])\r\n # Use pydub to load the MP3 audio from the decoded bytes\r\n audio_segment = AudioSegment.from_file(io.BytesIO(audio_data_bytes), format=\"mp3\")\r\n # Resample to 24_000\r\n audio_segment = audio_segment.set_frame_rate(24_000)\r\n audio = {'sampling_rate' : audio_segment.frame_rate,\r\n 'array' : np.array(audio_segment.get_array_of_samples(), dtype=\"float\")}\r\n del audio_segment\r\n duration = len(audio['array']) \/ audio['sampling_rate']\r\n except Exception as e:\r\n logger.warning(f\"Failed to convert audio for {example['id']}. Error: {e}\")\r\n audio = {'sampling_rate' : 0,\r\n 'array' : np.array([]), duration : 0}\r\n return {'audio' : audio, 'duration' : duration}\r\n\r\nds = datasets.load_dataset(\"NbAiLab\/nb_distil_speech_noconcat_stortinget\", cache_dir=CACHE_PATH, keep_in_memory=False)\r\n\r\n#%%\r\nnum_proc=32\r\nds_processed = (\r\n ds\r\n #.select(range(10))\r\n .map(convert_mp3_to_audio_segment, num_proc=num_proc, desc=\"Converting mp3 to audio segment\") #, cache_file_name=f\"{CACHE_PATH}\/stortinget_audio\" # , cache_file_name=\"test\"\r\n)\r\n```\n\n### Expected behavior\n\nthe map should write to disk\n\n### Environment info\n\n- `datasets` version: 3.2.0\r\n- Platform: Linux-6.8.0-45-generic-x86_64-with-glibc2.39\r\n- Python version: 3.12.7\r\n- `huggingface_hub` version: 0.26.3\r\n- PyArrow version: 18.1.0\r\n- Pandas version: 2.2.3\r\n- `fsspec` version: 2024.9.0","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7327\/reactions","total_count":3,"+1":3,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7327\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7326","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7326\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7326\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7326\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7326","id":2738188902,"node_id":"I_kwDODunzps6jNXJm","number":7326,"title":"Remove upper bound for fsspec","user":{"login":"fellhorn","id":26092524,"node_id":"MDQ6VXNlcjI2MDkyNTI0","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/26092524?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/fellhorn","html_url":"https:\/\/github.com\/fellhorn","followers_url":"https:\/\/api.github.com\/users\/fellhorn\/followers","following_url":"https:\/\/api.github.com\/users\/fellhorn\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/fellhorn\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/fellhorn\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/fellhorn\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/fellhorn\/orgs","repos_url":"https:\/\/api.github.com\/users\/fellhorn\/repos","events_url":"https:\/\/api.github.com\/users\/fellhorn\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/fellhorn\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-12-13T11:35:12Z","updated_at":"2025-01-03T15:34:37Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\r\n\r\nAs also raised by @cyyever in https:\/\/github.com\/huggingface\/datasets\/pull\/7296 and @NeilGirdhar in https:\/\/github.com\/huggingface\/datasets\/commit\/d5468836fe94e8be1ae093397dd43d4a2503b926#commitcomment-140952162 , `datasets` has a problematic version constraint on `fsspec`.\r\n\r\nIn our case this causes (unnecessary?) troubles due to a race condition bug in that version of the corresponding `gcsfs` plugin, that causes deadlocks: https:\/\/github.com\/fsspec\/gcsfs\/pull\/643\r\n\r\nWe just use a version override to ignore the constraint from `datasets`, but imho the version constraint could just be removed in the first place?\r\n\r\nThe last few PRs bumping the upper bound were basically uneventful:\r\n\r\n* https:\/\/github.com\/huggingface\/datasets\/pull\/7219\r\n* https:\/\/github.com\/huggingface\/datasets\/pull\/6921\r\n* https:\/\/github.com\/huggingface\/datasets\/pull\/6747\r\n\r\n### Steps to reproduce the bug\r\n\r\n-\r\n\r\n### Expected behavior\r\n\r\nInstalling `fsspec>=2024.10.0` along `datasets` should be possible without overwriting constraints.\r\n\r\n### Environment info\r\n\r\nAll recent datasets versions","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7326\/reactions","total_count":3,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":3,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7326\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7325","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7325\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7325\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7325\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7325","id":2736618054,"node_id":"PR_kwDODunzps6FDpMp","number":7325,"title":"Introduce pdf support (#7318)","user":{"login":"yabramuvdi","id":4812761,"node_id":"MDQ6VXNlcjQ4MTI3NjE=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/4812761?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/yabramuvdi","html_url":"https:\/\/github.com\/yabramuvdi","followers_url":"https:\/\/api.github.com\/users\/yabramuvdi\/followers","following_url":"https:\/\/api.github.com\/users\/yabramuvdi\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/yabramuvdi\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/yabramuvdi\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/yabramuvdi\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/yabramuvdi\/orgs","repos_url":"https:\/\/api.github.com\/users\/yabramuvdi\/repos","events_url":"https:\/\/api.github.com\/users\/yabramuvdi\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/yabramuvdi\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2024-12-12T18:31:18Z","updated_at":"2025-03-18T14:00:36Z","closed_at":"2025-03-18T14:00:36Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7325","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7325","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7325.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7325.patch","merged_at":"2025-03-18T14:00:36Z"},"body":"First implementation of the Pdf feature to support pdfs (#7318) . Using [pdfplumber](https:\/\/github.com\/jsvine\/pdfplumber?tab=readme-ov-file#python-library) as the default library to work with pdfs. \r\n@lhoestq and @AndreaFrancis ","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7325\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7325\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7323","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7323\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7323\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7323\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7323","id":2736008698,"node_id":"I_kwDODunzps6jFC36","number":7323,"title":"Unexpected cache behaviour using load_dataset","user":{"login":"Moritz-Wirth","id":74349080,"node_id":"MDQ6VXNlcjc0MzQ5MDgw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/74349080?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Moritz-Wirth","html_url":"https:\/\/github.com\/Moritz-Wirth","followers_url":"https:\/\/api.github.com\/users\/Moritz-Wirth\/followers","following_url":"https:\/\/api.github.com\/users\/Moritz-Wirth\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Moritz-Wirth\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Moritz-Wirth\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Moritz-Wirth\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Moritz-Wirth\/orgs","repos_url":"https:\/\/api.github.com\/users\/Moritz-Wirth\/repos","events_url":"https:\/\/api.github.com\/users\/Moritz-Wirth\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Moritz-Wirth\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-12-12T14:03:00Z","updated_at":"2025-01-31T11:34:24Z","closed_at":"2025-01-31T11:34:24Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\r\n\r\nFollowing the (Cache management)[https:\/\/huggingface.co\/docs\/datasets\/en\/cache] docu and previous behaviour from datasets version 2.18.0, one is able to change the cache directory. Previously, all downloaded\/extracted\/etc files were found in this folder. As i have recently update to the latest version this is not the case anymore. Downloaded files are stored in `~\/.cache\/huggingface\/hub`.\r\nProviding the `cache_dir` argument in `load_dataset` the cache directory is created and there are some files but the bulk is still in `~\/.cache\/huggingface\/hub`.\r\n\r\nI believe this could be solved by adding the cache_dir argument [here](https:\/\/github.com\/huggingface\/datasets\/blob\/fdda5585ab18ea1292547f36c969d12c408ab842\/src\/datasets\/utils\/file_utils.py#L188)\r\n\r\n\r\n### Steps to reproduce the bug\r\n\r\nFor example using https:\/\/huggingface.co\/datasets\/ashraq\/esc50:\r\n```python\r\nfrom datasets import load_dataset\r\nds = load_dataset(\"ashraq\/esc50\", \"default\", cache_dir=\"~\/custom\/cache\/path\/esc50\")\r\n```\r\n\r\n\r\n### Expected behavior\r\n\r\nI would expect the bulk of files related to the dataset to be stored somewhere in `~\/custom\/cache\/path\/esc50`, but it seems they are in `~\/.cache\/huggingface\/hub\/datasets--ashraq--esc50`. \r\n\r\n### Environment info\r\n\r\n- `datasets` version: 3.2.0\r\n- Platform: Linux-5.14.0-503.15.1.el9_5.x86_64-x86_64-with-glibc2.34\r\n- Python version: 3.10.14\r\n- `huggingface_hub` version: 0.26.5\r\n- PyArrow version: 17.0.0\r\n- Pandas version: 2.2.2\r\n- `fsspec` version: 2024.6.1","closed_by":{"login":"Moritz-Wirth","id":74349080,"node_id":"MDQ6VXNlcjc0MzQ5MDgw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/74349080?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Moritz-Wirth","html_url":"https:\/\/github.com\/Moritz-Wirth","followers_url":"https:\/\/api.github.com\/users\/Moritz-Wirth\/followers","following_url":"https:\/\/api.github.com\/users\/Moritz-Wirth\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Moritz-Wirth\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Moritz-Wirth\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Moritz-Wirth\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Moritz-Wirth\/orgs","repos_url":"https:\/\/api.github.com\/users\/Moritz-Wirth\/repos","events_url":"https:\/\/api.github.com\/users\/Moritz-Wirth\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Moritz-Wirth\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7323\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7323\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7322","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7322\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7322\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7322\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7322","id":2732254868,"node_id":"I_kwDODunzps6i2uaU","number":7322,"title":"ArrowInvalid: JSON parse error: Column() changed from object to array in row 0","user":{"login":"Polarisamoon","id":41767521,"node_id":"MDQ6VXNlcjQxNzY3NTIx","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/41767521?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Polarisamoon","html_url":"https:\/\/github.com\/Polarisamoon","followers_url":"https:\/\/api.github.com\/users\/Polarisamoon\/followers","following_url":"https:\/\/api.github.com\/users\/Polarisamoon\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Polarisamoon\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Polarisamoon\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Polarisamoon\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Polarisamoon\/orgs","repos_url":"https:\/\/api.github.com\/users\/Polarisamoon\/repos","events_url":"https:\/\/api.github.com\/users\/Polarisamoon\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Polarisamoon\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2024-12-11T08:41:39Z","updated_at":"2025-07-15T13:06:55Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\r\n\r\nEncountering an error while loading the ```liuhaotian\/LLaVA-Instruct-150K dataset```.\r\n\r\n### Steps to reproduce the bug\r\n\r\n```\r\nfrom datasets import load_dataset\r\nfw =load_dataset(\"liuhaotian\/LLaVA-Instruct-150K\")\r\n```\r\nError:\r\n```\r\nArrowInvalid Traceback (most recent call last)\r\n[\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/packaged_modules\/json\/json.py](https:\/\/localhost:8080\/#) in _generate_tables(self, files)\r\n 136 try:\r\n--> 137 pa_table = paj.read_json(\r\n 138 io.BytesIO(batch), read_options=paj.ReadOptions(block_size=block_size)\r\n\r\n20 frames\r\nArrowInvalid: JSON parse error: Column() changed from object to array in row 0\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nArrowTypeError Traceback (most recent call last)\r\nArrowTypeError: (\"Expected bytes, got a 'int' object\", 'Conversion failed for column id with type object')\r\n\r\nThe above exception was the direct cause of the following exception:\r\n\r\nDatasetGenerationError Traceback (most recent call last)\r\n[\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/builder.py](https:\/\/localhost:8080\/#) in _prepare_split_single(self, gen_kwargs, fpath, file_format, max_shard_size, job_id)\r\n 1895 if isinstance(e, DatasetGenerationError):\r\n 1896 raise\r\n-> 1897 raise DatasetGenerationError(\"An error occurred while generating the dataset\") from e\r\n 1898 \r\n 1899 yield job_id, True, (total_num_examples, total_num_bytes, writer._features, num_shards, shard_lengths)\r\n\r\nDatasetGenerationError: An error occurred while generating the dataset\r\n```\r\n### Expected behavior\r\n\r\nI have tried loading the dataset both on my own server and on Colab, and encountered errors in both instances.\r\n\r\n### Environment info\r\n\r\n```\r\n- `datasets` version: 3.2.0\r\n- Platform: Linux-6.1.85+-x86_64-with-glibc2.35\r\n- Python version: 3.10.12\r\n- `huggingface_hub` version: 0.26.3\r\n- PyArrow version: 17.0.0\r\n- Pandas version: 2.2.2\r\n- `fsspec` version: 2024.9.0\r\n```\r\n","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7322\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7322\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7321","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7321\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7321\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7321\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7321","id":2731626760,"node_id":"I_kwDODunzps6i0VEI","number":7321,"title":"ImportError: cannot import name 'set_caching_enabled' from 'datasets' ","user":{"login":"sankexin","id":33318353,"node_id":"MDQ6VXNlcjMzMzE4MzUz","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/33318353?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/sankexin","html_url":"https:\/\/github.com\/sankexin","followers_url":"https:\/\/api.github.com\/users\/sankexin\/followers","following_url":"https:\/\/api.github.com\/users\/sankexin\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/sankexin\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/sankexin\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/sankexin\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/sankexin\/orgs","repos_url":"https:\/\/api.github.com\/users\/sankexin\/repos","events_url":"https:\/\/api.github.com\/users\/sankexin\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/sankexin\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-12-11T01:58:46Z","updated_at":"2024-12-11T13:32:15Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nTraceback (most recent call last):\r\n File \"\/usr\/local\/lib\/python3.10\/runpy.py\", line 187, in _run_module_as_main\r\n mod_name, mod_spec, code = _get_module_details(mod_name, _Error)\r\n File \"\/usr\/local\/lib\/python3.10\/runpy.py\", line 110, in _get_module_details\r\n __import__(pkg_name)\r\n File \"\/home\/Medusa\/axolotl\/src\/axolotl\/cli\/__init__.py\", line 23, in \r\n from axolotl.train import TrainDatasetMeta\r\n File \"\/home\/Medusa\/axolotl\/src\/axolotl\/train.py\", line 23, in \r\n from axolotl.utils.trainer import setup_trainer\r\n File \"\/home\/Medusa\/axolotl\/src\/axolotl\/utils\/trainer.py\", line 13, in \r\n from datasets import set_caching_enabled\r\nImportError: cannot import name 'set_caching_enabled' from 'datasets' (\/usr\/local\/lib\/python3.10\/site-packages\/datasets\/__init__.py)\n\n### Steps to reproduce the bug\n\n1\u3001axolotl\r\n2\u3001accelerate launch -m axolotl.cli.train examples\/medusa\/qwen_lora_stage1.yml\n\n### Expected behavior\n\nenable datasets\n\n### Environment info\n\npython3.10","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7321\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7321\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7320","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7320\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7320\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7320\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7320","id":2731112100,"node_id":"I_kwDODunzps6iyXak","number":7320,"title":"ValueError: You should supply an encoding or a list of encodings to this method that includes input_ids, but you provided ['label']","user":{"login":"atrompeterog","id":38381084,"node_id":"MDQ6VXNlcjM4MzgxMDg0","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/38381084?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/atrompeterog","html_url":"https:\/\/github.com\/atrompeterog","followers_url":"https:\/\/api.github.com\/users\/atrompeterog\/followers","following_url":"https:\/\/api.github.com\/users\/atrompeterog\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/atrompeterog\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/atrompeterog\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/atrompeterog\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/atrompeterog\/orgs","repos_url":"https:\/\/api.github.com\/users\/atrompeterog\/repos","events_url":"https:\/\/api.github.com\/users\/atrompeterog\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/atrompeterog\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-12-10T20:23:11Z","updated_at":"2024-12-10T23:22:23Z","closed_at":"2024-12-10T23:22:23Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\r\n\r\nI am trying to create a PEFT model from DISTILBERT model, and run a training loop. However, the trainer.train() is giving me this error: ValueError: You should supply an encoding or a list of encodings to this method that includes input_ids, but you provided ['label']\r\nHere is my code:\r\n\r\n### Steps to reproduce the bug\r\n\r\n#Creating a PEFT Config \r\nfrom peft import LoraConfig\r\nfrom transformers import AutoTokenizer, AutoModelForSequenceClassification\r\nfrom peft import get_peft_model\r\n\r\nlora_config = LoraConfig(\r\n task_type=\"SEQ_CLASS\",\r\n r=8,\r\n lora_alpha=32,\r\n target_modules=[\"q_lin\", \"k_lin\", \"v_lin\"],\r\n lora_dropout=0.01,\r\n)\r\n\r\n#Converting a Transformers Model into a PEFT Model\r\nmodel = AutoModelForSequenceClassification.from_pretrained(\r\n \"distilbert-base-uncased\",\r\n num_labels=2, #Binary classification, 1 = positive, 0 = negative\r\n \r\n\r\n)\r\nlora_model = get_peft_model(model, lora_config)\r\n\r\nprint(lora_model)\r\n\r\nTokenize data set\r\nfrom datasets import load_dataset\r\nfrom transformers import AutoTokenizer, AutoModelForSequenceClassification\r\n\r\ntokenizer = AutoTokenizer.from_pretrained(\"distilbert-base-uncased\")\r\n\r\n# Load the train and test splits dataset\r\ndataset = load_dataset(\"fancyzhx\/amazon_polarity\")\r\n\r\n#create a smaller subset for train and test\r\nsubset_size = 5000\r\nsmall_train_dataset = dataset[\"train\"].shuffle(seed=42).select(range(subset_size))\r\nsmall_test_dataset = dataset[\"test\"].shuffle(seed=42).select(range(subset_size))\r\n\r\n#Tokenize data\r\ndef tokenize_function(example):\r\n return tokenizer(example[\"content\"], padding=\"max_length\", truncation=True)\r\n\r\ntokenized_train_dataset = small_train_dataset.map(tokenize_function, batched=True)\r\ntokenized_test_dataset = small_test_dataset.map(tokenize_function, batched=True)\r\n\r\ntrain_lora = tokenized_train_dataset.rename_column('label', 'labels')\r\ntest_lora = tokenized_test_dataset.rename_column('label', 'labels')\r\n\r\nprint(tokenized_train_dataset.column_names)\r\nprint(tokenized_test_dataset.column_names)\r\n\r\n#Train the PEFT model\r\n\r\nimport numpy as np\r\nfrom transformers import Trainer, TrainingArguments, default_data_collator, DataCollatorWithPadding\r\nfrom datasets import load_dataset\r\nfrom transformers import AutoTokenizer, AutoModelForSequenceClassification\r\n\r\ndef compute_metrics(eval_pred):\r\n predictions, labels = eval_pred\r\n predictions = np.argmax(predictions, axis=1)\r\n return {\"accuracy\": (predictions == labels).mean()}\r\n\r\ntrainer = Trainer(\r\n model=lora_model,\r\n args=TrainingArguments(\r\n output_dir=\".\",\r\n learning_rate=2e-3,\r\n # Reduce the batch size if you don't have enough memory\r\n per_device_train_batch_size=1,\r\n per_device_eval_batch_size=1,\r\n num_train_epochs=3,\r\n weight_decay=0.01,\r\n evaluation_strategy=\"epoch\",\r\n save_strategy=\"epoch\",\r\n load_best_model_at_end=True,\r\n ),\r\n train_dataset=tokenized_train_dataset,\r\n eval_dataset=tokenized_test_dataset,\r\n tokenizer=tokenizer,\r\n data_collator=DataCollatorWithPadding(tokenizer=tokenizer, return_tensors=\"pt\"),\r\n compute_metrics=compute_metrics,\r\n)\r\n\r\n\r\ntrainer.train()\r\n \r\n\r\n\r\n### Expected behavior\r\n\r\nExample of output:\r\n [558\/558 01:04, Epoch XX]\r\n\r\nEpoch | Training Loss | Validation Loss | Accuracy\r\n-- | -- | -- | --\r\n1 | No log | 0.046478 | 0.988341\r\n2 | 0.052800 | 0.048840 | 0.988341\r\n\r\n\r\n### Environment info\r\n\r\nUsing python and jupyter notbook","closed_by":{"login":"atrompeterog","id":38381084,"node_id":"MDQ6VXNlcjM4MzgxMDg0","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/38381084?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/atrompeterog","html_url":"https:\/\/github.com\/atrompeterog","followers_url":"https:\/\/api.github.com\/users\/atrompeterog\/followers","following_url":"https:\/\/api.github.com\/users\/atrompeterog\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/atrompeterog\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/atrompeterog\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/atrompeterog\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/atrompeterog\/orgs","repos_url":"https:\/\/api.github.com\/users\/atrompeterog\/repos","events_url":"https:\/\/api.github.com\/users\/atrompeterog\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/atrompeterog\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7320\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7320\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7319","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7319\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7319\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7319\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7319","id":2730679980,"node_id":"PR_kwDODunzps6EvHBp","number":7319,"title":"set dev version","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-12-10T17:01:34Z","updated_at":"2024-12-10T17:04:04Z","closed_at":"2024-12-10T17:01:45Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7319","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7319","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7319.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7319.patch","merged_at":"2024-12-10T17:01:45Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7319\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7319\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7318","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7318\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7318\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7318\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7318","id":2730676278,"node_id":"I_kwDODunzps6iwtA2","number":7318,"title":"Introduce support for PDFs","user":{"login":"yabramuvdi","id":4812761,"node_id":"MDQ6VXNlcjQ4MTI3NjE=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/4812761?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/yabramuvdi","html_url":"https:\/\/github.com\/yabramuvdi","followers_url":"https:\/\/api.github.com\/users\/yabramuvdi\/followers","following_url":"https:\/\/api.github.com\/users\/yabramuvdi\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/yabramuvdi\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/yabramuvdi\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/yabramuvdi\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/yabramuvdi\/orgs","repos_url":"https:\/\/api.github.com\/users\/yabramuvdi\/repos","events_url":"https:\/\/api.github.com\/users\/yabramuvdi\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/yabramuvdi\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2024-12-10T16:59:48Z","updated_at":"2024-12-12T18:38:13Z","closed_at":null,"author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nThe idea (discussed in the Discord server with @lhoestq ) is to have a Pdf type like Image\/Audio\/Video. For example [Video](https:\/\/github.com\/huggingface\/datasets\/blob\/main\/src\/datasets\/features\/video.py) was recently added and contains how to decode a video file encoded in a dictionary like {\"path\": ..., \"bytes\": ...} as a VideoReader using decord. We want to do the same with pdf and get a [pypdfium2.PdfDocument](https:\/\/pypdfium2.readthedocs.io\/en\/stable\/_modules\/pypdfium2\/_helpers\/document.html#PdfDocument).\n\n### Motivation\n\nIn many cases PDFs contain very valuable information beyond text (e.g. images, figures). Support for PDFs would help create datasets where all the information is preserved.\n\n### Your contribution\n\nI can start the implementation of the Pdf type :)","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7318\/reactions","total_count":1,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":1,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7318\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7317","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7317\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7317\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7317\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7317","id":2730661237,"node_id":"PR_kwDODunzps6EvC5Q","number":7317,"title":"Release: 3.2.0","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-12-10T16:53:20Z","updated_at":"2024-12-10T16:56:58Z","closed_at":"2024-12-10T16:56:56Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7317","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7317","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7317.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7317.patch","merged_at":"2024-12-10T16:56:56Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7317\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7317\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7316","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7316\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7316\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7316\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7316","id":2730196085,"node_id":"PR_kwDODunzps6Etc0U","number":7316,"title":"More docs to from_dict to mention that the result lives in RAM","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-12-10T13:56:01Z","updated_at":"2024-12-10T13:58:32Z","closed_at":"2024-12-10T13:57:02Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7316","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7316","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7316.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7316.patch","merged_at":"2024-12-10T13:57:02Z"},"body":"following discussions at https:\/\/discuss.huggingface.co\/t\/how-to-load-this-simple-audio-data-set-and-use-dataset-map-without-memory-issues\/17722\/14","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7316\/reactions","total_count":1,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":1,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7316\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7314","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7314\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7314\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7314\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7314","id":2727502630,"node_id":"PR_kwDODunzps6EkCi5","number":7314,"title":"Resolved for empty datafiles","user":{"login":"sahillihas","id":20582290,"node_id":"MDQ6VXNlcjIwNTgyMjkw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/20582290?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/sahillihas","html_url":"https:\/\/github.com\/sahillihas","followers_url":"https:\/\/api.github.com\/users\/sahillihas\/followers","following_url":"https:\/\/api.github.com\/users\/sahillihas\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/sahillihas\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/sahillihas\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/sahillihas\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/sahillihas\/orgs","repos_url":"https:\/\/api.github.com\/users\/sahillihas\/repos","events_url":"https:\/\/api.github.com\/users\/sahillihas\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/sahillihas\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-12-09T15:47:22Z","updated_at":"2024-12-27T18:20:21Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7314","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7314","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7314.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7314.patch","merged_at":null},"body":"Resolved for Issue#6152","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7314\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7314\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7313","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7313\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7313\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7313\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7313","id":2726240634,"node_id":"I_kwDODunzps6ifyF6","number":7313,"title":"Cannot create a dataset with relative audio path","user":{"login":"sedol1339","id":5188731,"node_id":"MDQ6VXNlcjUxODg3MzE=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/5188731?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/sedol1339","html_url":"https:\/\/github.com\/sedol1339","followers_url":"https:\/\/api.github.com\/users\/sedol1339\/followers","following_url":"https:\/\/api.github.com\/users\/sedol1339\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/sedol1339\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/sedol1339\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/sedol1339\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/sedol1339\/orgs","repos_url":"https:\/\/api.github.com\/users\/sedol1339\/repos","events_url":"https:\/\/api.github.com\/users\/sedol1339\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/sedol1339\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2024-12-09T07:34:20Z","updated_at":"2025-04-19T07:13:08Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\r\n\r\nHello! I want to create a dataset of parquet files, with audios stored as separate .mp3 files. However, it says \"No such file or directory\" (see the reproducing code).\r\n\r\n### Steps to reproduce the bug\r\n\r\nCreating a dataset\r\n```\r\nfrom pathlib import Path\r\nfrom datasets import Dataset, load_dataset, Audio\r\n\r\nPath('my_dataset\/audio').mkdir(parents=True, exist_ok=True)\r\nPath('my_dataset\/audio\/file.mp3').touch(exist_ok=True)\r\nDataset.from_list(\r\n [{'audio': {'path': 'audio\/file.mp3'}}]\r\n).to_parquet('my_dataset\/data.parquet')\r\n```\r\n\r\nResult:\r\n```\r\n# my_dataset\r\n# \u251c\u2500\u2500 audio\r\n# \u2502 \u2514\u2500\u2500 file.mp3\r\n# \u2514\u2500\u2500 data.parquet\r\n```\r\n\r\nTrying to load the dataset\r\n```\r\ndataset = (\r\n load_dataset('my_dataset', split='train')\r\n .cast_column('audio', Audio(sampling_rate=16_000))\r\n)\r\ndataset[0]\r\n\r\n>>> FileNotFoundError: [Errno 2] No such file or directory: 'audio\/file.mp3'\r\n```\r\n\r\n### Expected behavior\r\n\r\nI expect the dataset to load correctly.\r\n\r\nI've found 2 workarounds, but they are not very good:\r\n1. I can specify an absolute path to the audio, however, when I move the folder or upload to HF it will stop working.\r\n2. I can set `'path': 'file.mp3'`, and load with `load_dataset('my_dataset', data_dir='audio')` - it seems to work, but does this mean that anyone from Hugging Face who wants to use this dataset should also pass the `data_dir` argument, otherwise it won't work?\r\n\r\n### Environment info\r\n\r\ndatasets 3.1.0, Ubuntu 24.04.1","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7313\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7313\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7312","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7312\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7312\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7312\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7312","id":2725103094,"node_id":"PR_kwDODunzps6EbwNN","number":7312,"title":"[Audio Features - DO NOT MERGE] PoC for adding an offset+sliced reading to audio file.","user":{"login":"TParcollet","id":11910731,"node_id":"MDQ6VXNlcjExOTEwNzMx","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/11910731?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/TParcollet","html_url":"https:\/\/github.com\/TParcollet","followers_url":"https:\/\/api.github.com\/users\/TParcollet\/followers","following_url":"https:\/\/api.github.com\/users\/TParcollet\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/TParcollet\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/TParcollet\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/TParcollet\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/TParcollet\/orgs","repos_url":"https:\/\/api.github.com\/users\/TParcollet\/repos","events_url":"https:\/\/api.github.com\/users\/TParcollet\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/TParcollet\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-12-08T10:27:31Z","updated_at":"2024-12-08T10:27:31Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7312","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7312","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7312.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7312.patch","merged_at":null},"body":"This is a proof of concept for #7310 . The idea is to enable the access to others column of the dataset row when loading an audio file into a table. This is to allow sliced reading. As stated in the issue, many people have very long audio files and use start and stop slicing in this audio file.\r\n\r\nRight now, this code work as a PoC on my dataset. However, this is **just to illustrate** the idea. Many things are messed up, the first being that the shards have wildly varying sizes. \r\n\r\nCould be of interest to @lhoestq and @sanchit-gandhi ? \r\n\r\nHappy to test better ideas locally. ","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7312\/reactions","total_count":1,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":1,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7312\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7311","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7311\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7311\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7311\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7311","id":2725002630,"node_id":"I_kwDODunzps6ibD2G","number":7311,"title":"How to get the original dataset name with username?","user":{"login":"npuichigo","id":11533479,"node_id":"MDQ6VXNlcjExNTMzNDc5","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/11533479?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/npuichigo","html_url":"https:\/\/github.com\/npuichigo","followers_url":"https:\/\/api.github.com\/users\/npuichigo\/followers","following_url":"https:\/\/api.github.com\/users\/npuichigo\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/npuichigo\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/npuichigo\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/npuichigo\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/npuichigo\/orgs","repos_url":"https:\/\/api.github.com\/users\/npuichigo\/repos","events_url":"https:\/\/api.github.com\/users\/npuichigo\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/npuichigo\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-12-08T07:18:14Z","updated_at":"2025-01-09T10:48:02Z","closed_at":null,"author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\r\n\r\nThe issue is related to ray data https:\/\/github.com\/ray-project\/ray\/issues\/49008 which it requires to check if the dataset is the original one just after `load_dataset` and parquet files are already available on hf hub.\r\n\r\nThe solution used now is to get the dataset name, config and split, then `load_dataset` again and check the fingerprint. But it's unable to get the correct dataset name if it contains username. So how to get the dataset name with username prefix, or is there another way to query if a dataset is the original one with parquet available?\r\n\r\n@lhoestq \r\n\r\n### Motivation\r\n\r\nhttps:\/\/github.com\/ray-project\/ray\/issues\/49008\r\n\r\n### Your contribution\r\n\r\nWould like to fix that.","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7311\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7311\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7310","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7310\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7310\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7310\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7310","id":2724830603,"node_id":"I_kwDODunzps6iaZ2L","number":7310,"title":"Enable the Audio Feature to decode \/ read with an offset + duration","user":{"login":"TParcollet","id":11910731,"node_id":"MDQ6VXNlcjExOTEwNzMx","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/11910731?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/TParcollet","html_url":"https:\/\/github.com\/TParcollet","followers_url":"https:\/\/api.github.com\/users\/TParcollet\/followers","following_url":"https:\/\/api.github.com\/users\/TParcollet\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/TParcollet\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/TParcollet\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/TParcollet\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/TParcollet\/orgs","repos_url":"https:\/\/api.github.com\/users\/TParcollet\/repos","events_url":"https:\/\/api.github.com\/users\/TParcollet\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/TParcollet\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-12-07T22:01:44Z","updated_at":"2024-12-09T21:09:46Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nFor most large speech dataset, we do not wish to generate hundreds of millions of small audio samples. Instead, it is quite common to provide larger audio files with frame offset (soundfile start and stop arguments). We should be able to pass these arguments to Audio() (column ID corresponding in the dataset row).\n\n### Motivation\n\nI am currently generating a fairly big dataset to .parquet(). Unfortunately, it does not work because all existing functions load the whole .wav file corresponding to the row. All my attempts at bypassing this failed. We should be able to put in the Table only the bytes corresponding to what soundfile reads with an offset (and subset of the audio file). \n\n### Your contribution\n\nI can totally test whatever code on my large dataset creation script. ","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7310\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7310\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7315","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7315\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7315\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7315\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7315","id":2729738963,"node_id":"I_kwDODunzps6itILT","number":7315,"title":"Allow manual configuration of Dataset Viewer for datasets not created with the `datasets` library","user":{"login":"diarray-hub","id":114512099,"node_id":"U_kgDOBtNQ4w","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/114512099?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/diarray-hub","html_url":"https:\/\/github.com\/diarray-hub","followers_url":"https:\/\/api.github.com\/users\/diarray-hub\/followers","following_url":"https:\/\/api.github.com\/users\/diarray-hub\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/diarray-hub\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/diarray-hub\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/diarray-hub\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/diarray-hub\/orgs","repos_url":"https:\/\/api.github.com\/users\/diarray-hub\/repos","events_url":"https:\/\/api.github.com\/users\/diarray-hub\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/diarray-hub\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2024-12-07T16:37:12Z","updated_at":"2024-12-11T11:05:22Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"#### **Problem Description**\r\nCurrently, the Hugging Face Dataset Viewer automatically interprets dataset fields for datasets created with the `datasets` library. However, for datasets pushed directly via `git`, the Viewer:\r\n- Defaults to generic columns like `label` with `null` values if no explicit mapping is provided.\r\n- Does not allow dataset creators to configure field mappings or suppress default fields unless the dataset is recreated and pushed using the `datasets` library.\r\n\r\nThis creates a limitation for creators who:\r\n- Use custom workflows to prepare datasets (e.g., manifest files with audio-transcription mappings).\r\n- Push large datasets directly via `git` and cannot easily restructure them to conform to the `datasets` library format.\r\n\r\n#### **Proposed Solution**\r\nIntroduce a feature that allows dataset creators to manually configure the Dataset Viewer behavior for datasets not created with the `datasets` library. This could be achieved by:\r\n1. **Using the YAML Metadata in `README.md`:**\r\n - Add support for defining the dataset's field mappings directly in the `README.md` YAML section.\r\n - Example:\r\n \r\n ```yaml\r\n viewer:\r\n fields:\r\n - name: \"audio\"\r\n type: \"audio_path\" \/ \"text\"\r\n source: \"manifest['audio']\"\r\n - name: \"bambara_transcription\"\r\n type: \"text\"\r\n source: \"manifest['bambara']\"\r\n - name: \"french_translation\"\r\n type: \"text\"\r\n source: \"manifest['french']\"\r\n ```\r\nWith manifest being a csv or json like format file in the repository so that the viewer understands that it should look for the values of each field in that file. \r\n\r\n#### **Benefits**\r\n- Improves flexibility for dataset creators who push datasets via `git`.\r\n- Enhances dataset discoverability and usability on the Hugging Face Hub by allowing creators to present meaningful field mappings without restructuring their data.\r\n- Reduces overhead for creators of large or complex datasets.\r\n\r\n#### **Examples of Use Case**\r\n- An audio dataset with transcriptions in multiple languages stored in a `manifest.json` file, where the user wants the Viewer to:\r\n - Display the `audio` column and Explicitly map features that he defined such as `bambara_transcription` and `french_translation` from the manifest.","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7315\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7315\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7309","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7309\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7309\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7309\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7309","id":2723636931,"node_id":"PR_kwDODunzps6EW77b","number":7309,"title":"Faster parquet streaming + filters with predicate pushdown","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-12-06T18:01:54Z","updated_at":"2024-12-07T23:32:30Z","closed_at":"2024-12-07T23:32:28Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7309","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7309","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7309.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7309.patch","merged_at":"2024-12-07T23:32:28Z"},"body":"ParquetFragment.to_batches uses a buffered stream to read parquet data, which makes streaming faster (x2 on my laptop).\r\n\r\nI also added the `filters` config parameter to support filtering with predicate pushdown, e.g.\r\n\r\n```python\r\nfrom datasets import load_dataset\r\n\r\nfilters = [('problem_source', '==', 'math')]\r\nds = load_dataset(\"nvidia\/OpenMathInstruct-2\", streaming=True, filters=filters)\r\nfirst_example = next(iter(ds[\"train\"]))\r\nprint(first_example[\"problem_source\"])\r\n# 'math'\r\n```\r\n\r\ncc @allisonwang-db this is a nice plus for usage in spark","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7309\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7309\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7307","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7307\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7307\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7307\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7307","id":2720244889,"node_id":"PR_kwDODunzps6ELKcR","number":7307,"title":"refactor: remove unnecessary else","user":{"login":"HarikrishnanBalagopal","id":20921177,"node_id":"MDQ6VXNlcjIwOTIxMTc3","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/20921177?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/HarikrishnanBalagopal","html_url":"https:\/\/github.com\/HarikrishnanBalagopal","followers_url":"https:\/\/api.github.com\/users\/HarikrishnanBalagopal\/followers","following_url":"https:\/\/api.github.com\/users\/HarikrishnanBalagopal\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/HarikrishnanBalagopal\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/HarikrishnanBalagopal\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/HarikrishnanBalagopal\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/HarikrishnanBalagopal\/orgs","repos_url":"https:\/\/api.github.com\/users\/HarikrishnanBalagopal\/repos","events_url":"https:\/\/api.github.com\/users\/HarikrishnanBalagopal\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/HarikrishnanBalagopal\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-12-05T12:11:09Z","updated_at":"2024-12-06T15:11:33Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7307","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7307","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7307.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7307.patch","merged_at":null},"body":null,"closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7307\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7307\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7306","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7306\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7306\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7306\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7306","id":2719807464,"node_id":"I_kwDODunzps6iHPfo","number":7306,"title":"Creating new dataset from list loses information. (Audio Information Lost - either Datatype or Values).","user":{"login":"ai-nikolai","id":9797804,"node_id":"MDQ6VXNlcjk3OTc4MDQ=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/9797804?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ai-nikolai","html_url":"https:\/\/github.com\/ai-nikolai","followers_url":"https:\/\/api.github.com\/users\/ai-nikolai\/followers","following_url":"https:\/\/api.github.com\/users\/ai-nikolai\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ai-nikolai\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ai-nikolai\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ai-nikolai\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ai-nikolai\/orgs","repos_url":"https:\/\/api.github.com\/users\/ai-nikolai\/repos","events_url":"https:\/\/api.github.com\/users\/ai-nikolai\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ai-nikolai\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-12-05T09:07:53Z","updated_at":"2024-12-05T09:09:38Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\r\n\r\nWhen creating a dataset from a list of datapoints, information is lost of the individual items.\r\n\r\nSpecifically, when creating a dataset from a list of datapoints (from another dataset). Either the datatype is lost or the values are lost. See examples below. \r\n\r\n-> What is the best way to create a dataset from a list of datapoints?\r\n\r\n---\r\ne.g.:\r\n**When running this code:**\r\n```python\r\nfrom datasets import load_dataset, Dataset\r\ncommonvoice_data = load_dataset(\"mozilla-foundation\/common_voice_17_0\", \"it\", split=\"test\", streaming=True)\r\ndatapoint = next(iter(commonvoice_data))\r\nout = [datapoint]\r\nnew_data = Dataset.from_list(out) #this loses datatype information\r\nnew_data2= Dataset.from_list(out,features=commonvoice_data.features) #this loses value information\r\n```\r\n\r\n**We get the following**:\r\n---\r\n1. `datapoint`: (the original datapoint)\r\n```\r\n'audio': {'path': 'it_test_0\/common_voice_it_23606167.mp3', 'array': array([0.00000000e+00, 0.00000000e+00, 0.00000000e+00, ...,\r\n 2.21619011e-05, 2.72628222e-05, 0.00000000e+00]), 'sampling_rate': 48000}\r\n ```\r\nOriginal Dataset Features:\r\n```\r\n>>> commonvoice_data.features\r\n'audio': Audio(sampling_rate=48000, mono=True, decode=True, id=None)\r\n```\r\n - Here we see column \"audio\", has the proper values (both `path` & and `array`) and has the correct datatype (Audio).\r\n\r\n \r\n ----\r\n 2. new_data[0]:\r\n```\r\n# Cannot be printed (as it prints the entire array).\r\n```\r\nNew Dataset 1 Features:\r\n```\r\n>>> new_data.features\r\n'audio': {'array': Sequence(feature=Value(dtype='float64', id=None), length=-1, id=None), 'path': Value(dtype='string', id=None), 'sampling_rate': Value(dtype='int64', id=None)}\r\n```\r\n - Here we see that the column \"audio\", has the correct values, but is not the Audio datatype anymore.\r\n\r\n---\r\n3. new_data2[0]:\r\n```\r\n'audio': {'path': None, 'array': array([0., 0., 0., ..., 0., 0., 0.]), 'sampling_rate': 48000},\r\n```\r\nNew Dataset 2 Features:\r\n```\r\n>>> new_data2.features\r\n'audio': Audio(sampling_rate=48000, mono=True, decode=True, id=None),\r\n```\r\n - Here we see that the column \"audio\", has the correct datatype, but all the array & path values were lost!\r\n\r\n\r\n\r\n### Steps to reproduce the bug\r\n\r\n## Run:\r\n```python\r\nfrom datasets import load_dataset, Dataset\r\ncommonvoice_data = load_dataset(\"mozilla-foundation\/common_voice_17_0\", \"it\", split=\"test\", streaming=True)\r\ndatapoint = next(iter(commonvoice_data))\r\nout = [datapoint]\r\nnew_data = Dataset.from_list(out) #this loses datatype information\r\nnew_data2= Dataset.from_list(out,features=commonvoice_data.features) #this loses value information\r\n```\r\n\r\n\r\n\r\n\r\n\r\n### Expected behavior\r\n\r\n## Expected:\r\n```datapoint == new_data[0]```\r\n\r\nAND\r\n\r\n```datapoint == new_data2[0]```\r\n\r\n### Environment info\r\n\r\n- `datasets` version: 3.1.0\r\n- Platform: Linux-6.2.0-37-generic-x86_64-with-glibc2.35\r\n- Python version: 3.10.12\r\n- `huggingface_hub` version: 0.26.2\r\n- PyArrow version: 15.0.2\r\n- Pandas version: 2.2.2\r\n- `fsspec` version: 2024.3.1","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7306\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7306\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7305","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7305\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7305\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7305\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7305","id":2715907267,"node_id":"I_kwDODunzps6h4XTD","number":7305,"title":" Build Documentation Test Fails Due to \"Bad Credentials\" Error","user":{"login":"ruidazeng","id":31152346,"node_id":"MDQ6VXNlcjMxMTUyMzQ2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/31152346?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ruidazeng","html_url":"https:\/\/github.com\/ruidazeng","followers_url":"https:\/\/api.github.com\/users\/ruidazeng\/followers","following_url":"https:\/\/api.github.com\/users\/ruidazeng\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ruidazeng\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ruidazeng\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ruidazeng\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ruidazeng\/orgs","repos_url":"https:\/\/api.github.com\/users\/ruidazeng\/repos","events_url":"https:\/\/api.github.com\/users\/ruidazeng\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ruidazeng\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-12-03T20:22:54Z","updated_at":"2025-01-08T22:38:14Z","closed_at":null,"author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nThe `Build documentation \/ build \/ build_main_documentation (push)` job is consistently failing during the \"Syncing repository\" step. The error occurs when attempting to determine the default branch name, resulting in \"Bad credentials\" errors.\n\n### Steps to reproduce the bug\n\n1. Trigger the `build_main_documentation` job.\r\n2. Observe the logs during the \"Syncing repository\" step.\n\n### Expected behavior\n\nThe workflow should be able to retrieve the default branch name without encountering credential issues.\n\n### Environment info\n\n```plaintext\r\nSyncing repository: huggingface\/notebooks\r\nGetting Git version info\r\nTemporarily overriding HOME='\/home\/runner\/work\/_temp\/00e62748-9940-4a4f-bbbc-eb2cda6d7ed6' before making global git config changes\r\nAdding repository directory to the temporary git global config as a safe directory\r\n\/usr\/bin\/git config --global --add safe.directory \/home\/runner\/work\/datasets\/datasets\/notebooks\r\nInitializing the repository\r\nDisabling automatic garbage collection\r\nSetting up auth\r\nDetermining the default branch\r\n Retrieving the default branch name\r\n Bad credentials - https:\/\/docs.github.com\/rest\r\n Waiting 20 seconds before trying again\r\n Retrieving the default branch name\r\n Bad credentials - https:\/\/docs.github.com\/rest\r\n Waiting 19 seconds before trying again\r\n Retrieving the default branch name\r\n Error: Bad credentials - https:\/\/docs.github.com\/rest\r\n```","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7305\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7305\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7304","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7304\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7304\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7304\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7304","id":2715179811,"node_id":"PR_kwDODunzps6D5saw","number":7304,"title":"Update iterable_dataset.py","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-12-03T14:25:42Z","updated_at":"2024-12-03T14:28:10Z","closed_at":"2024-12-03T14:27:02Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7304","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7304","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7304.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7304.patch","merged_at":"2024-12-03T14:27:02Z"},"body":"close https:\/\/github.com\/huggingface\/datasets\/issues\/7297","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7304\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7304\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7303","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7303\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7303\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7303\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7303","id":2705729696,"node_id":"I_kwDODunzps6hRiig","number":7303,"title":"DataFilesNotFoundError for datasets LM1B","user":{"login":"hml1996-fight","id":72264324,"node_id":"MDQ6VXNlcjcyMjY0MzI0","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/72264324?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/hml1996-fight","html_url":"https:\/\/github.com\/hml1996-fight","followers_url":"https:\/\/api.github.com\/users\/hml1996-fight\/followers","following_url":"https:\/\/api.github.com\/users\/hml1996-fight\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/hml1996-fight\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/hml1996-fight\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/hml1996-fight\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/hml1996-fight\/orgs","repos_url":"https:\/\/api.github.com\/users\/hml1996-fight\/repos","events_url":"https:\/\/api.github.com\/users\/hml1996-fight\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/hml1996-fight\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-11-29T17:27:45Z","updated_at":"2024-12-11T13:22:47Z","closed_at":"2024-12-11T13:22:47Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nCannot load the dataset https:\/\/huggingface.co\/datasets\/billion-word-benchmark\/lm1b\n\n### Steps to reproduce the bug\n\n`dataset = datasets.load_dataset('lm1b', split=split)`\n\n### Expected behavior\n\n`Traceback (most recent call last):\r\n File \"\/home\/hml\/projects\/DeepLearning\/Generative_model\/Diffusion-BERT\/word_freq.py\", line 13, in \r\n train_data = DiffusionLoader(tokenizer=tokenizer).my_load(task_name='lm1b', splits=['train'])[0]\r\n File \"\/home\/hml\/projects\/DeepLearning\/Generative_model\/Diffusion-BERT\/dataloader.py\", line 20, in my_load\r\n return [self._load(task_name, name) for name in splits]\r\n File \"\/home\/hml\/projects\/DeepLearning\/Generative_model\/Diffusion-BERT\/dataloader.py\", line 20, in \r\n return [self._load(task_name, name) for name in splits]\r\n File \"\/home\/hml\/projects\/DeepLearning\/Generative_model\/Diffusion-BERT\/dataloader.py\", line 13, in _load\r\n dataset = datasets.load_dataset('lm1b', split=split)\r\n File \"\/home\/hml\/.conda\/envs\/DB\/lib\/python3.10\/site-packages\/datasets\/load.py\", line 2594, in load_dataset\r\n builder_instance = load_dataset_builder(\r\n File \"\/home\/hml\/.conda\/envs\/DB\/lib\/python3.10\/site-packages\/datasets\/load.py\", line 2266, in load_dataset_builder\r\n dataset_module = dataset_module_factory(\r\n File \"\/home\/hml\/.conda\/envs\/DB\/lib\/python3.10\/site-packages\/datasets\/load.py\", line 1827, in dataset_module_factory\r\n ).get_module()\r\n File \"\/home\/hml\/.conda\/envs\/DB\/lib\/python3.10\/site-packages\/datasets\/load.py\", line 1040, in get_module\r\n module_name, default_builder_kwargs = infer_module_for_data_files(\r\n File \"\/home\/hml\/.conda\/envs\/DB\/lib\/python3.10\/site-packages\/datasets\/load.py\", line 598, in infer_module_for_data_files\r\n raise DataFilesNotFoundError(\"No (supported) data files found\" + (f\" in {path}\" if path else \"\"))\r\ndatasets.exceptions.DataFilesNotFoundError: No (supported) data files found in lm1b`\n\n### Environment info\n\ndatasets: 2.20.0","closed_by":{"login":"hml1996-fight","id":72264324,"node_id":"MDQ6VXNlcjcyMjY0MzI0","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/72264324?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/hml1996-fight","html_url":"https:\/\/github.com\/hml1996-fight","followers_url":"https:\/\/api.github.com\/users\/hml1996-fight\/followers","following_url":"https:\/\/api.github.com\/users\/hml1996-fight\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/hml1996-fight\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/hml1996-fight\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/hml1996-fight\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/hml1996-fight\/orgs","repos_url":"https:\/\/api.github.com\/users\/hml1996-fight\/repos","events_url":"https:\/\/api.github.com\/users\/hml1996-fight\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/hml1996-fight\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7303\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7303\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7302","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7302\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7302\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7302\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7302","id":2702626386,"node_id":"PR_kwDODunzps6DfY8G","number":7302,"title":"Let server decide default repo visibility","user":{"login":"Wauplin","id":11801849,"node_id":"MDQ6VXNlcjExODAxODQ5","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/11801849?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Wauplin","html_url":"https:\/\/github.com\/Wauplin","followers_url":"https:\/\/api.github.com\/users\/Wauplin\/followers","following_url":"https:\/\/api.github.com\/users\/Wauplin\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Wauplin\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Wauplin\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Wauplin\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Wauplin\/orgs","repos_url":"https:\/\/api.github.com\/users\/Wauplin\/repos","events_url":"https:\/\/api.github.com\/users\/Wauplin\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Wauplin\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-11-28T16:01:13Z","updated_at":"2024-11-29T17:00:40Z","closed_at":"2024-11-29T17:00:38Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7302","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7302","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7302.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7302.patch","merged_at":"2024-11-29T17:00:38Z"},"body":"Until now, all repos were public by default when created without passing the `private` argument. This meant that passing `private=False` or `private=None` was strictly the same. This is not the case anymore. Enterprise Hub offers organizations to set a default visibility setting for new repos. This is useful for organizations forbidding public repos for security matters. This PR mostly updates docstrings + default values so that `private=None` is always passed when users don't set it manually.\r\n\r\nThis PR doesn't create any breaking change. The real update has been done server-side when introducing the new Enterprise Hub feature. Related to https:\/\/github.com\/huggingface\/huggingface_hub\/pull\/2679.","closed_by":{"login":"Wauplin","id":11801849,"node_id":"MDQ6VXNlcjExODAxODQ5","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/11801849?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Wauplin","html_url":"https:\/\/github.com\/Wauplin","followers_url":"https:\/\/api.github.com\/users\/Wauplin\/followers","following_url":"https:\/\/api.github.com\/users\/Wauplin\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Wauplin\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Wauplin\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Wauplin\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Wauplin\/orgs","repos_url":"https:\/\/api.github.com\/users\/Wauplin\/repos","events_url":"https:\/\/api.github.com\/users\/Wauplin\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Wauplin\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7302\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7302\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7301","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7301\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7301\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7301\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7301","id":2701813922,"node_id":"PR_kwDODunzps6DdYLZ","number":7301,"title":"update load_dataset doctring","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-11-28T11:19:20Z","updated_at":"2024-11-29T10:31:43Z","closed_at":"2024-11-29T10:31:40Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7301","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7301","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7301.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7301.patch","merged_at":"2024-11-29T10:31:40Z"},"body":"- remove canonical dataset name\r\n- remove dataset script logic\r\n- add streaming info\r\n- clearer download and prepare steps","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7301\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7301\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7300","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7300\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7300\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7300\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7300","id":2701424320,"node_id":"PR_kwDODunzps6Dcba8","number":7300,"title":"fix: update elasticsearch version","user":{"login":"ruidazeng","id":31152346,"node_id":"MDQ6VXNlcjMxMTUyMzQ2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/31152346?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ruidazeng","html_url":"https:\/\/github.com\/ruidazeng","followers_url":"https:\/\/api.github.com\/users\/ruidazeng\/followers","following_url":"https:\/\/api.github.com\/users\/ruidazeng\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ruidazeng\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ruidazeng\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ruidazeng\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ruidazeng\/orgs","repos_url":"https:\/\/api.github.com\/users\/ruidazeng\/repos","events_url":"https:\/\/api.github.com\/users\/ruidazeng\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ruidazeng\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-11-28T09:14:21Z","updated_at":"2024-12-03T14:36:56Z","closed_at":"2024-12-03T14:24:42Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7300","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7300","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7300.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7300.patch","merged_at":"2024-12-03T14:24:42Z"},"body":"This should fix the `test_py311 (windows latest, deps-latest` errors.\r\n\r\n```\r\n=========================== short test summary info ===========================\r\nERROR tests\/test_search.py - AttributeError: `np.float_` was removed in the NumPy 2.0 release. Use `np.float64` instead.\r\nERROR tests\/test_search.py - AttributeError: `np.float_` was removed in the NumPy 2.0 release. Use `np.float64` instead.\r\n===== 2822 passed, 54 skipped, 10 warnings, 2 errors in 373.36s (0:06:13) =====\r\nError: Process completed with exit code 1.\r\n```\r\n\r\nThe elasticsearch version used is `elasticsearch==7.9.1`, which is 4 years old and uses the removed `numpy.float_`.\r\n\r\nelasticsearch fixed this in [https:\/\/github.com\/elastic\/elasticsearch-py\/pull\/2551](https:\/\/github.com\/elastic\/elasticsearch-py\/pull\/2551) and released in 8.15.0 (August 2024) and 7.17.12 (September 2024).\r\n","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7300\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7300\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7299","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7299\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7299\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7299\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7299","id":2695378251,"node_id":"I_kwDODunzps6gqDVL","number":7299,"title":"Efficient Image Augmentation in Hugging Face Datasets","user":{"login":"fabiozappo","id":46443190,"node_id":"MDQ6VXNlcjQ2NDQzMTkw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/46443190?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/fabiozappo","html_url":"https:\/\/github.com\/fabiozappo","followers_url":"https:\/\/api.github.com\/users\/fabiozappo\/followers","following_url":"https:\/\/api.github.com\/users\/fabiozappo\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/fabiozappo\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/fabiozappo\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/fabiozappo\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/fabiozappo\/orgs","repos_url":"https:\/\/api.github.com\/users\/fabiozappo\/repos","events_url":"https:\/\/api.github.com\/users\/fabiozappo\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/fabiozappo\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-11-26T16:50:32Z","updated_at":"2024-11-26T16:53:53Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\r\n\r\n I'm using the Hugging Face datasets library to load images in batch and would like to apply a torchvision transform to solve the inconsistent image sizes in the dataset and apply some on the fly image augmentation. I can just think about using the collate_fn, but seems quite inefficient. \r\n \r\n I'm new to the Hugging Face datasets library, I didn't find nothing in the documentation or the issues here on github.\r\n\r\nIs there an existing way to add image transformations directly to the dataset loading pipeline? \r\n\r\n### Steps to reproduce the bug\r\n\r\nfrom datasets import load_dataset\r\nfrom torch.utils.data import DataLoader\r\n\r\n```python\r\ndef collate_fn(batch):\r\n images = [item['image'] for item in batch]\r\n texts = [item['text'] for item in batch]\r\n return {\r\n 'images': images,\r\n 'texts': texts\r\n }\r\n\r\ndataset = load_dataset(\"Yuki20\/pokemon_caption\", split=\"train\")\r\ndataloader = DataLoader(dataset, batch_size=4, collate_fn=collate_fn)\r\n\r\n# Output shows varying image sizes:\r\n# [(1280, 1280), (431, 431), (789, 789), (769, 769)]\r\n```\r\n\r\n### Expected behavior\r\n\r\nI'm looking for a way to resize images on-the-fly when loading the dataset, similar to PyTorch's Dataset.__getitem__ functionality. This would be more efficient than handling resizing in the collate_fn.\r\n\r\n\r\n### Environment info\r\n\r\n- `datasets` version: 3.1.0\r\n- Platform: Linux-6.5.0-41-generic-x86_64-with-glibc2.35\r\n- Python version: 3.11.10\r\n- `huggingface_hub` version: 0.26.2\r\n- PyArrow version: 18.0.0\r\n- Pandas version: 2.2.3\r\n- `fsspec` version: 2024.9.0\r\n","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7299\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7299\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7298","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7298\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7298\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7298\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7298","id":2694196968,"node_id":"I_kwDODunzps6gli7o","number":7298,"title":"loading dataset issue with load_dataset() when training controlnet","user":{"login":"sarahahtee","id":81594044,"node_id":"MDQ6VXNlcjgxNTk0MDQ0","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/81594044?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/sarahahtee","html_url":"https:\/\/github.com\/sarahahtee","followers_url":"https:\/\/api.github.com\/users\/sarahahtee\/followers","following_url":"https:\/\/api.github.com\/users\/sarahahtee\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/sarahahtee\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/sarahahtee\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/sarahahtee\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/sarahahtee\/orgs","repos_url":"https:\/\/api.github.com\/users\/sarahahtee\/repos","events_url":"https:\/\/api.github.com\/users\/sarahahtee\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/sarahahtee\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-11-26T10:50:18Z","updated_at":"2024-11-26T10:50:18Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\ni'm unable to load my dataset for [controlnet training](https:\/\/github.com\/huggingface\/diffusers\/blob\/074e12358bc17e7dbe111ea4f62f05dbae8a49d5\/examples\/controlnet\/train_controlnet.py#L606) using load_dataset(). however, load_from_disk() seems to work? \r\nwould appreciate if someone can explain why that's the case here\r\n\r\n1. for reference here's the structure of the original training files _before_ dataset creation - \r\n\r\n```\r\n- dir train\r\n - dir A (illustrations)\r\n - dir B (SignWriting)\r\n - prompt.json containing:\r\n {\"source\": \"B\/file.png\", \"target\": \"A\/file.png\", \"prompt\": \"...\"}\r\n```\r\n\r\n2. here are features _after_ dataset creation - \r\n```\r\n \"features\": {\r\n \"control_image\": {\r\n \"_type\": \"Image\"\r\n },\r\n \"image\": {\r\n \"_type\": \"Image\"\r\n },\r\n \"caption\": {\r\n \"dtype\": \"string\",\r\n \"_type\": \"Value\"\r\n }\r\n```\r\n3. I've also attempted to upload the dataset to huggingface with the same error output \n\n### Steps to reproduce the bug\n\n1. [dataset creation script](https:\/\/github.com\/sign-language-processing\/signwriting-illustration\/blob\/main\/signwriting_illustration\/controlnet_huggingface\/dataset.py) \r\n\r\n2. controlnet [training script](examples\/controlnet\/train_controlnet.py) used \r\n\r\n3. training parameters - \r\n\r\n! accelerate launch diffusers\/examples\/controlnet\/train_controlnet.py \\\r\n --pretrained_model_name_or_path=\"stable-diffusion-v1-5\/stable-diffusion-v1-5\" \\\r\n --output_dir=\"$OUTPUT_DIR\" \\\r\n --train_data_dir=\"$HF_DATASET_DIR\" \\\r\n --conditioning_image_column=control_image \\\r\n --image_column=image \\\r\n --caption_column=caption \\\r\n --resolution=512\\\r\n --learning_rate=1e-5 \\\r\n --validation_image \".\/validation\/0a4b3c71265bb3a726457837428dda78.png\" \".\/validation\/0a5922fe2c638e6776bd62f623145004.png\" \".\/validation\/1c9f1a53106f64c682cf5d009ee7156f.png\" \\\r\n --validation_prompt \"An illustration of a man with short hair\" \"An illustration of a woman with short hair\" \"An illustration of Barack Obama\" \\\r\n --train_batch_size=4 \\\r\n --num_train_epochs=500 \\\r\n --tracker_project_name=\"sd-controlnet-signwriting-test\" \\\r\n --hub_model_id=\"sarahahtee\/signwriting-illustration-test\" \\\r\n --checkpointing_steps=5000 \\\r\n --validation_steps=1000 \\\r\n --report_to wandb \\\r\n --push_to_hub\r\n \r\n 4. command - \r\n` sbatch --export=HUGGINGFACE_TOKEN=hf_token,WANDB_API_KEY=api_key script.sh`\n\n### Expected behavior\n\n```\r\n11\/25\/2024 17:12:18 - INFO - __main__ - Initializing controlnet weights from unet\r\nGenerating train split: 1 examples [00:00, 334.85 examples\/s]\r\nTraceback (most recent call last):\r\n File \"\/data\/user\/user\/signwriting_illustration\/controlnet_huggingface\/diffusers\/examples\/controlnet\/train_controlnet.py\", line 1189, in \r\n main(args)\r\n File \"\/data\/user\/user\/signwriting_illustration\/controlnet_huggingface\/diffusers\/examples\/controlnet\/train_controlnet.py\", line 923, in main\r\n train_dataset = make_train_dataset(args, tokenizer, accelerator)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"\/data\/user\/user\/signwriting_illustration\/controlnet_huggingface\/diffusers\/examples\/controlnet\/train_controlnet.py\", line 639, in make_train_dataset\r\n raise ValueError(\r\nValueError: `--image_column` value 'image' not found in dataset columns. Dataset columns are: _data_files, _fingerprint, _format_columns, _format_kwargs, _format_type, _output_all_columns, _split\r\n```\n\n### Environment info\n\naccelerate 1.1.1\r\nhuggingface-hub 0.26.2\r\npython 3.11\r\ntorch 2.5.1\r\ntransformers 4.46.2","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7298\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7298\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7297","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7297\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7297\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7297\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7297","id":2683977430,"node_id":"I_kwDODunzps6f-j7W","number":7297,"title":"wrong return type for `IterableDataset.shard()`","user":{"login":"ysngshn","id":47225236,"node_id":"MDQ6VXNlcjQ3MjI1MjM2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/47225236?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ysngshn","html_url":"https:\/\/github.com\/ysngshn","followers_url":"https:\/\/api.github.com\/users\/ysngshn\/followers","following_url":"https:\/\/api.github.com\/users\/ysngshn\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ysngshn\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ysngshn\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ysngshn\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ysngshn\/orgs","repos_url":"https:\/\/api.github.com\/users\/ysngshn\/repos","events_url":"https:\/\/api.github.com\/users\/ysngshn\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ysngshn\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-11-22T17:25:46Z","updated_at":"2024-12-03T14:27:27Z","closed_at":"2024-12-03T14:27:03Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\n`IterableDataset.shard()` has the wrong typing for its return as `\"Dataset\"`. It should be `\"IterableDataset\"`. Makes my IDE unhappy.\n\n### Steps to reproduce the bug\n\nlook at [the source code](https:\/\/github.com\/huggingface\/datasets\/blob\/main\/src\/datasets\/iterable_dataset.py#L2668)?\n\n### Expected behavior\n\nCorrect return type as `\"IterableDataset\"`\n\n### Environment info\n\ndatasets==3.1.0","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7297\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7297\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7296","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7296\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7296\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7296\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7296","id":2675573974,"node_id":"PR_kwDODunzps6ChJIJ","number":7296,"title":"Remove upper version limit of fsspec[http]","user":{"login":"cyyever","id":17618148,"node_id":"MDQ6VXNlcjE3NjE4MTQ4","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/17618148?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/cyyever","html_url":"https:\/\/github.com\/cyyever","followers_url":"https:\/\/api.github.com\/users\/cyyever\/followers","following_url":"https:\/\/api.github.com\/users\/cyyever\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/cyyever\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/cyyever\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/cyyever\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/cyyever\/orgs","repos_url":"https:\/\/api.github.com\/users\/cyyever\/repos","events_url":"https:\/\/api.github.com\/users\/cyyever\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/cyyever\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-11-20T11:29:16Z","updated_at":"2025-03-06T04:47:04Z","closed_at":"2025-03-06T04:47:01Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7296","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7296","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7296.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7296.patch","merged_at":null},"body":null,"closed_by":{"login":"cyyever","id":17618148,"node_id":"MDQ6VXNlcjE3NjE4MTQ4","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/17618148?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/cyyever","html_url":"https:\/\/github.com\/cyyever","followers_url":"https:\/\/api.github.com\/users\/cyyever\/followers","following_url":"https:\/\/api.github.com\/users\/cyyever\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/cyyever\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/cyyever\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/cyyever\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/cyyever\/orgs","repos_url":"https:\/\/api.github.com\/users\/cyyever\/repos","events_url":"https:\/\/api.github.com\/users\/cyyever\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/cyyever\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7296\/reactions","total_count":1,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7296\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7295","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7295\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7295\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7295\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7295","id":2672003384,"node_id":"I_kwDODunzps6fQ4k4","number":7295,"title":"[BUG]: Streaming from S3 triggers `unexpected keyword argument 'requote_redirect_url'`","user":{"login":"casper-hansen","id":27340033,"node_id":"MDQ6VXNlcjI3MzQwMDMz","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/27340033?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/casper-hansen","html_url":"https:\/\/github.com\/casper-hansen","followers_url":"https:\/\/api.github.com\/users\/casper-hansen\/followers","following_url":"https:\/\/api.github.com\/users\/casper-hansen\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/casper-hansen\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/casper-hansen\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/casper-hansen\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/casper-hansen\/orgs","repos_url":"https:\/\/api.github.com\/users\/casper-hansen\/repos","events_url":"https:\/\/api.github.com\/users\/casper-hansen\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/casper-hansen\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-11-19T12:23:36Z","updated_at":"2024-11-19T13:01:53Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\r\n\r\nNote that this bug is only triggered when `streaming=True`. #5459 introduced always calling fsspec with `client_kwargs={\"requote_redirect_url\": False}`, which seems to have incompatibility issues even in the newest versions.\r\n\r\nAnalysis of what's happening:\r\n\r\n1. `datasets` passes the `client_kwargs` through `fsspec`\r\n2. `fsspec` passes the `client_kwargs` through `s3fs`\r\n3. `s3fs` passes the `client_kwargs` to `aiobotocore` which uses `aiohttp`\r\n```\r\ns3creator = self.session.create_client(\r\n \"s3\", config=conf, **init_kwargs, **client_kwargs\r\n)\r\n```\r\n4. The `session` tries to create an `aiohttp` session but the `**kwargs` are not just kept as unfolded `**kwargs` but passed in as individual variables (`requote_redirect_url` and `trust_env`).\r\n\r\nError:\r\n\r\n```\r\nTraceback (most recent call last):\r\n File \"\/Users\/cxrh\/Documents\/GitHub\/nlp_foundation\/nlp_train\/test.py\", line 14, in \r\n batch = next(iter(ds))\r\n File \"\/Users\/cxrh\/miniconda3\/envs\/s3_data_loader\/lib\/python3.10\/site-packages\/datasets\/iterable_dataset.py\", line 1353, in __iter__\r\n for key, example in ex_iterable:\r\n File \"\/Users\/cxrh\/miniconda3\/envs\/s3_data_loader\/lib\/python3.10\/site-packages\/datasets\/iterable_dataset.py\", line 255, in __iter__\r\n for key, pa_table in self.generate_tables_fn(**self.kwargs):\r\n File \"\/Users\/cxrh\/miniconda3\/envs\/s3_data_loader\/lib\/python3.10\/site-packages\/datasets\/packaged_modules\/json\/json.py\", line 78, in _generate_tables\r\n for file_idx, file in enumerate(itertools.chain.from_iterable(files)):\r\n File \"\/Users\/cxrh\/miniconda3\/envs\/s3_data_loader\/lib\/python3.10\/site-packages\/datasets\/download\/streaming_download_manager.py\", line 840, in __iter__\r\n yield from self.generator(*self.args, **self.kwargs)\r\n File \"\/Users\/cxrh\/miniconda3\/envs\/s3_data_loader\/lib\/python3.10\/site-packages\/datasets\/download\/streaming_download_manager.py\", line 921, in _iter_from_urlpaths\r\n elif xisdir(urlpath, download_config=download_config):\r\n File \"\/Users\/cxrh\/miniconda3\/envs\/s3_data_loader\/lib\/python3.10\/site-packages\/datasets\/download\/streaming_download_manager.py\", line 305, in xisdir\r\n return fs.isdir(inner_path)\r\n File \"\/Users\/cxrh\/miniconda3\/envs\/s3_data_loader\/lib\/python3.10\/site-packages\/fsspec\/spec.py\", line 721, in isdir\r\n return self.info(path)[\"type\"] == \"directory\"\r\n File \"\/Users\/cxrh\/miniconda3\/envs\/s3_data_loader\/lib\/python3.10\/site-packages\/fsspec\/archive.py\", line 38, in info\r\n self._get_dirs()\r\n File \"\/Users\/cxrh\/miniconda3\/envs\/s3_data_loader\/lib\/python3.10\/site-packages\/datasets\/filesystems\/compression.py\", line 64, in _get_dirs\r\n f = {**self.file.fs.info(self.file.path), \"name\": self.uncompressed_name}\r\n File \"\/Users\/cxrh\/miniconda3\/envs\/s3_data_loader\/lib\/python3.10\/site-packages\/fsspec\/asyn.py\", line 118, in wrapper\r\n return sync(self.loop, func, *args, **kwargs)\r\n File \"\/Users\/cxrh\/miniconda3\/envs\/s3_data_loader\/lib\/python3.10\/site-packages\/fsspec\/asyn.py\", line 103, in sync\r\n raise return_result\r\n File \"\/Users\/cxrh\/miniconda3\/envs\/s3_data_loader\/lib\/python3.10\/site-packages\/fsspec\/asyn.py\", line 56, in _runner\r\n result[0] = await coro\r\n File \"\/Users\/cxrh\/miniconda3\/envs\/s3_data_loader\/lib\/python3.10\/site-packages\/s3fs\/core.py\", line 1302, in _info\r\n out = await self._call_s3(\r\n File \"\/Users\/cxrh\/miniconda3\/envs\/s3_data_loader\/lib\/python3.10\/site-packages\/s3fs\/core.py\", line 341, in _call_s3\r\n await self.set_session()\r\n File \"\/Users\/cxrh\/miniconda3\/envs\/s3_data_loader\/lib\/python3.10\/site-packages\/s3fs\/core.py\", line 524, in set_session\r\n s3creator = self.session.create_client(\r\n File \"\/Users\/cxrh\/miniconda3\/envs\/s3_data_loader\/lib\/python3.10\/site-packages\/aiobotocore\/session.py\", line 114, in create_client\r\n return ClientCreatorContext(self._create_client(*args, **kwargs))\r\nTypeError: AioSession._create_client() got an unexpected keyword argument 'requote_redirect_url'\r\n```\r\n\r\n### Steps to reproduce the bug\r\n\r\n1. Install the necessary libraries, datasets having a requirement for being at least 2.19.0: \r\n\r\n```\r\npip install s3fs fsspec aiohttp aiobotocore botocore 'datasets>=2.19.0'\r\n```\r\n\r\n2. Run this code:\r\n\r\n```\r\nfrom datasets import load_dataset\r\n\r\nds = load_dataset(\r\n \"json\",\r\n data_files=\"s3:\/\/your_path\/*.jsonl.gz\",\r\n streaming=True,\r\n split=\"train\",\r\n)\r\n\r\nbatch = next(iter(ds))\r\n\r\nprint(batch)\r\n```\r\n\r\n3. You get the `unexpected keyword argument 'requote_redirect_url'` error.\r\n\r\n### Expected behavior\r\n\r\nThe datasets is able to load a batch from the dataset stored on S3, without triggering this `requote_redirect_url` error.\r\n\r\nFix: I could fix this by directly removing the `requote_redirect_url` and `trust_env` - then it loads properly.\r\n\r\n\"image\"\r\n\r\n### Environment info\r\n\r\n- `datasets` version: 3.1.0\r\n- Platform: macOS-15.1-arm64-arm-64bit\r\n- Python version: 3.10.15\r\n- `huggingface_hub` version: 0.26.2\r\n- PyArrow version: 18.0.0\r\n- Pandas version: 2.2.3\r\n- `fsspec` version: 2024.9.0","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7295\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7295\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7294","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7294\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7294\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7294\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7294","id":2668663130,"node_id":"PR_kwDODunzps6CQKTy","number":7294,"title":"Remove `aiohttp` from direct dependencies","user":{"login":"akx","id":58669,"node_id":"MDQ6VXNlcjU4NjY5","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/58669?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/akx","html_url":"https:\/\/github.com\/akx","followers_url":"https:\/\/api.github.com\/users\/akx\/followers","following_url":"https:\/\/api.github.com\/users\/akx\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/akx\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/akx\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/akx\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/akx\/orgs","repos_url":"https:\/\/api.github.com\/users\/akx\/repos","events_url":"https:\/\/api.github.com\/users\/akx\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/akx\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-11-18T14:00:59Z","updated_at":"2025-05-07T14:27:18Z","closed_at":"2025-05-07T14:27:17Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7294","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7294","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7294.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7294.patch","merged_at":"2025-05-07T14:27:17Z"},"body":"The dependency is only used for catching an exception from other code. That can be done with an import guard.\r\n","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7294\/reactions","total_count":1,"+1":0,"-1":0,"laugh":0,"hooray":1,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7294\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7293","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7293\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7293\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7293\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7293","id":2664592054,"node_id":"PR_kwDODunzps6CIjS-","number":7293,"title":"Updated inconsistent output in documentation examples for `ClassLabel`","user":{"login":"sergiopaniego","id":17179696,"node_id":"MDQ6VXNlcjE3MTc5Njk2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/17179696?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/sergiopaniego","html_url":"https:\/\/github.com\/sergiopaniego","followers_url":"https:\/\/api.github.com\/users\/sergiopaniego\/followers","following_url":"https:\/\/api.github.com\/users\/sergiopaniego\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/sergiopaniego\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/sergiopaniego\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/sergiopaniego\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/sergiopaniego\/orgs","repos_url":"https:\/\/api.github.com\/users\/sergiopaniego\/repos","events_url":"https:\/\/api.github.com\/users\/sergiopaniego\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/sergiopaniego\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2024-11-16T16:20:57Z","updated_at":"2024-12-06T11:33:33Z","closed_at":"2024-12-06T11:32:01Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7293","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7293","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7293.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7293.patch","merged_at":"2024-12-06T11:32:01Z"},"body":"fix #7129 \r\n\r\n@stevhliu","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7293\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7293\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7292","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7292\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7292\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7292\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7292","id":2664250855,"node_id":"I_kwDODunzps6ezT3n","number":7292,"title":"DataFilesNotFoundError for datasets `OpenMol\/PubChemSFT`","user":{"login":"xnuohz","id":17878022,"node_id":"MDQ6VXNlcjE3ODc4MDIy","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/17878022?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/xnuohz","html_url":"https:\/\/github.com\/xnuohz","followers_url":"https:\/\/api.github.com\/users\/xnuohz\/followers","following_url":"https:\/\/api.github.com\/users\/xnuohz\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/xnuohz\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/xnuohz\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/xnuohz\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/xnuohz\/orgs","repos_url":"https:\/\/api.github.com\/users\/xnuohz\/repos","events_url":"https:\/\/api.github.com\/users\/xnuohz\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/xnuohz\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2024-11-16T11:54:31Z","updated_at":"2024-11-19T00:53:00Z","closed_at":"2024-11-19T00:52:59Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nCannot load the dataset https:\/\/huggingface.co\/datasets\/OpenMol\/PubChemSFT\n\n### Steps to reproduce the bug\n\n```\r\nfrom datasets import load_dataset\r\ndataset = load_dataset('OpenMol\/PubChemSFT')\r\n```\n\n### Expected behavior\n\n```\r\n---------------------------------------------------------------------------\r\nDataFilesNotFoundError Traceback (most recent call last)\r\nCell In[7], [line 2](vscode-notebook-cell:?execution_count=7&line=2)\r\n [1](vscode-notebook-cell:?execution_count=7&line=1) from datasets import load_dataset\r\n----> [2](vscode-notebook-cell:?execution_count=7&line=2) dataset = load_dataset('OpenMol\/PubChemSFT')\r\n\r\nFile ~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:2587, in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, verification_mode, ignore_verifications, keep_in_memory, save_infos, revision, token, use_auth_token, task, streaming, num_proc, storage_options, trust_remote_code, **config_kwargs)\r\n [2582](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:2582) verification_mode = VerificationMode(\r\n [2583](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:2583) (verification_mode or VerificationMode.BASIC_CHECKS) if not save_infos else VerificationMode.ALL_CHECKS\r\n [2584](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:2584) )\r\n [2586](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:2586) # Create a dataset builder\r\n-> [2587](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:2587) builder_instance = load_dataset_builder(\r\n [2588](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:2588) path=path,\r\n [2589](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:2589) name=name,\r\n [2590](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:2590) data_dir=data_dir,\r\n [2591](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:2591) data_files=data_files,\r\n [2592](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:2592) cache_dir=cache_dir,\r\n [2593](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:2593) features=features,\r\n [2594](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:2594) download_config=download_config,\r\n [2595](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:2595) download_mode=download_mode,\r\n [2596](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:2596) revision=revision,\r\n [2597](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:2597) token=token,\r\n [2598](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:2598) storage_options=storage_options,\r\n [2599](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:2599) trust_remote_code=trust_remote_code,\r\n [2600](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:2600) _require_default_config_name=name is None,\r\n [2601](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:2601) **config_kwargs,\r\n [2602](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:2602) )\r\n [2604](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:2604) # Return iterable dataset in case of streaming\r\n [2605](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:2605) if streaming:\r\n\r\nFile ~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:2259, in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, token, use_auth_token, storage_options, trust_remote_code, _require_default_config_name, **config_kwargs)\r\n [2257](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:2257) download_config = download_config.copy() if download_config else DownloadConfig()\r\n [2258](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:2258) download_config.storage_options.update(storage_options)\r\n-> [2259](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:2259) dataset_module = dataset_module_factory(\r\n [2260](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:2260) path,\r\n [2261](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:2261) revision=revision,\r\n [2262](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:2262) download_config=download_config,\r\n [2263](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:2263) download_mode=download_mode,\r\n [2264](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:2264) data_dir=data_dir,\r\n [2265](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:2265) data_files=data_files,\r\n [2266](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:2266) cache_dir=cache_dir,\r\n [2267](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:2267) trust_remote_code=trust_remote_code,\r\n [2268](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:2268) _require_default_config_name=_require_default_config_name,\r\n [2269](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:2269) _require_custom_configs=bool(config_kwargs),\r\n [2270](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:2270) )\r\n [2271](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:2271) # Get dataset builder class from the processing script\r\n [2272](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:2272) builder_kwargs = dataset_module.builder_kwargs\r\n\r\nFile ~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:1904, in dataset_module_factory(path, revision, download_config, download_mode, dynamic_modules_path, data_dir, data_files, cache_dir, trust_remote_code, _require_default_config_name, _require_custom_configs, **download_kwargs)\r\n [1902](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:1902) raise ConnectionError(f\"Couldn't reach the Hugging Face Hub for dataset '{path}': {e1}\") from None\r\n [1903](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:1903) if isinstance(e1, (DataFilesNotFoundError, DatasetNotFoundError, EmptyDatasetError)):\r\n-> [1904](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:1904) raise e1 from None\r\n [1905](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:1905) if isinstance(e1, FileNotFoundError):\r\n [1906](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:1906) raise FileNotFoundError(\r\n [1907](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:1907) f\"Couldn't find a dataset script at {relative_to_absolute_path(combined_path)} or any data file in the same directory. \"\r\n [1908](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:1908) f\"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}\"\r\n [1909](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:1909) ) from None\r\n\r\nFile ~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:1885, in dataset_module_factory(path, revision, download_config, download_mode, dynamic_modules_path, data_dir, data_files, cache_dir, trust_remote_code, _require_default_config_name, _require_custom_configs, **download_kwargs)\r\n [1876](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:1876) return HubDatasetModuleFactoryWithScript(\r\n [1877](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:1877) path,\r\n [1878](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:1878) revision=revision,\r\n (...)\r\n [1882](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:1882) trust_remote_code=trust_remote_code,\r\n [1883](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:1883) ).get_module()\r\n [1884](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:1884) else:\r\n-> [1885](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:1885) return HubDatasetModuleFactoryWithoutScript(\r\n [1886](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:1886) path,\r\n [1887](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:1887) revision=revision,\r\n [1888](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:1888) data_dir=data_dir,\r\n [1889](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:1889) data_files=data_files,\r\n [1890](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:1890) download_config=download_config,\r\n [1891](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:1891) download_mode=download_mode,\r\n [1892](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:1892) ).get_module()\r\n [1893](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:1893) except Exception as e1:\r\n [1894](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:1894) # All the attempts failed, before raising the error we should check if the module is already cached\r\n [1895](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:1895) try:\r\n\r\nFile ~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:1270, in HubDatasetModuleFactoryWithoutScript.get_module(self)\r\n [1263](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:1263) patterns = get_data_patterns(base_path, download_config=self.download_config)\r\n [1264](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:1264) data_files = DataFilesDict.from_patterns(\r\n [1265](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:1265) patterns,\r\n [1266](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:1266) base_path=base_path,\r\n [1267](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:1267) allowed_extensions=ALL_ALLOWED_EXTENSIONS,\r\n [1268](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:1268) download_config=self.download_config,\r\n [1269](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:1269) )\r\n-> [1270](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:1270) module_name, default_builder_kwargs = infer_module_for_data_files(\r\n [1271](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:1271) data_files=data_files,\r\n [1272](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:1272) path=self.name,\r\n [1273](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:1273) download_config=self.download_config,\r\n [1274](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:1274) )\r\n [1275](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:1275) data_files = data_files.filter_extensions(_MODULE_TO_EXTENSIONS[module_name])\r\n [1276](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:1276) # Collect metadata files if the module supports them\r\n\r\nFile ~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:597, in infer_module_for_data_files(data_files, path, download_config)\r\n [595](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:595) raise ValueError(f\"Couldn't infer the same data file format for all splits. Got {split_modules}\")\r\n [596](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:596) if not module_name:\r\n--> [597](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:597) raise DataFilesNotFoundError(\"No (supported) data files found\" + (f\" in {path}\" if path else \"\"))\r\n [598](https:\/\/file+.vscode-resource.vscode-cdn.net\/home\/ubuntu\/Projects\/notebook\/~\/Softwares\/anaconda3\/envs\/pyg-dev\/lib\/python3.9\/site-packages\/datasets\/load.py:598) return module_name, default_builder_kwargs\r\n\r\nDataFilesNotFoundError: No (supported) data files found in OpenMol\/PubChemSFT\r\n```\n\n### Environment info\n\n```\r\n- `datasets` version: 3.1.0\r\n- Platform: Linux-5.15.0-125-generic-x86_64-with-glibc2.31\r\n- Python version: 3.9.18\r\n- `huggingface_hub` version: 0.25.2\r\n- PyArrow version: 18.0.0\r\n- Pandas version: 2.0.3\r\n- `fsspec` version: 2023.9.2\r\n```","closed_by":{"login":"xnuohz","id":17878022,"node_id":"MDQ6VXNlcjE3ODc4MDIy","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/17878022?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/xnuohz","html_url":"https:\/\/github.com\/xnuohz","followers_url":"https:\/\/api.github.com\/users\/xnuohz\/followers","following_url":"https:\/\/api.github.com\/users\/xnuohz\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/xnuohz\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/xnuohz\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/xnuohz\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/xnuohz\/orgs","repos_url":"https:\/\/api.github.com\/users\/xnuohz\/repos","events_url":"https:\/\/api.github.com\/users\/xnuohz\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/xnuohz\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7292\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7292\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7291","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7291\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7291\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7291\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7291","id":2662244643,"node_id":"I_kwDODunzps6erqEj","number":7291,"title":"Why return_tensors='pt' doesn't work\uff1f","user":{"login":"bw-wang19","id":86752851,"node_id":"MDQ6VXNlcjg2NzUyODUx","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/86752851?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/bw-wang19","html_url":"https:\/\/github.com\/bw-wang19","followers_url":"https:\/\/api.github.com\/users\/bw-wang19\/followers","following_url":"https:\/\/api.github.com\/users\/bw-wang19\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/bw-wang19\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/bw-wang19\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/bw-wang19\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/bw-wang19\/orgs","repos_url":"https:\/\/api.github.com\/users\/bw-wang19\/repos","events_url":"https:\/\/api.github.com\/users\/bw-wang19\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/bw-wang19\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-11-15T15:01:23Z","updated_at":"2024-11-18T13:47:08Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI tried to add input_ids to dataset with map(), and I used the return_tensors='pt', but why I got the callback with the type of List\uff1f\r\n![image](https:\/\/github.com\/user-attachments\/assets\/ab046e20-2174-4e91-9cd6-4a296a43e83c)\r\n\n\n### Steps to reproduce the bug\n\n![image](https:\/\/github.com\/user-attachments\/assets\/5d504d4c-22c7-4742-99a1-9cab78739b17)\n\n### Expected behavior\n\nSorry for this silly question, I'm noob on using this tool. But I think it should return a tensor value as I have used the protocol\uff1f\r\nWhen I tokenize only one sentence using tokenized_input=tokenizer(input, return_tensors='pt' )\uff0cit does return in tensor type. Why doesn't it work in map()\uff1f\n\n### Environment info\n\ntransformers>=4.41.2,<=4.45.0\r\ndatasets>=2.16.0,<=2.21.0\r\naccelerate>=0.30.1,<=0.34.2\r\npeft>=0.11.1,<=0.12.0\r\ntrl>=0.8.6,<=0.9.6\r\ngradio>=4.0.0\r\npandas>=2.0.0\r\nscipy\r\neinops\r\nsentencepiece\r\ntiktoken\r\nprotobuf\r\nuvicorn\r\npydantic\r\nfastapi\r\nsse-starlette\r\nmatplotlib>=3.7.0\r\nfire\r\npackaging\r\npyyaml\r\nnumpy<2.0.0\r\n","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7291\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7291\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7290","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7290\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7290\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7290\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7290","id":2657620816,"node_id":"I_kwDODunzps6eaBNQ","number":7290,"title":"`Dataset.save_to_disk` hangs when using num_proc > 1","user":{"login":"JohannesAck","id":22243463,"node_id":"MDQ6VXNlcjIyMjQzNDYz","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/22243463?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/JohannesAck","html_url":"https:\/\/github.com\/JohannesAck","followers_url":"https:\/\/api.github.com\/users\/JohannesAck\/followers","following_url":"https:\/\/api.github.com\/users\/JohannesAck\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/JohannesAck\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/JohannesAck\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/JohannesAck\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/JohannesAck\/orgs","repos_url":"https:\/\/api.github.com\/users\/JohannesAck\/repos","events_url":"https:\/\/api.github.com\/users\/JohannesAck\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/JohannesAck\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2024-11-14T05:25:13Z","updated_at":"2025-06-27T00:56:47Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nHi, I'm encountered a small issue when saving datasets that led to the saving taking up to multiple hours.\r\nSpecifically, [`Dataset.save_to_disk`](https:\/\/huggingface.co\/docs\/datasets\/main\/en\/package_reference\/main_classes#datasets.Dataset.save_to_disk) is a lot slower when using `num_proc>1` than when using `num_proc=1`\r\n\r\nThe documentation mentions that \"Multiprocessing is disabled by default.\", but there is no explanation on how to enable it.\n\n### Steps to reproduce the bug\n\n```\r\nimport numpy as np\r\nfrom datasets import Dataset\r\n\r\nn_samples = int(4e6)\r\nn_tokens_sample = 100\r\ndata_dict = {\r\n 'tokens' : np.random.randint(0, 100, (n_samples, n_tokens_sample)),\r\n}\r\n\r\ndataset = Dataset.from_dict(data_dict)\r\ndataset.save_to_disk('test_dataset', num_proc=1)\r\ndataset.save_to_disk('test_dataset', num_proc=4)\r\ndataset.save_to_disk('test_dataset', num_proc=8)\r\n```\r\n\r\nThis results in:\r\n```\r\n>>> dataset.save_to_disk('test_dataset', num_proc=1)\r\nSaving the dataset (7\/7 shards): 100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 4000000\/4000000 [00:17<00:00, 228075.15 examples\/s]\r\n>>> dataset.save_to_disk('test_dataset', num_proc=4)\r\nSaving the dataset (7\/7 shards): 100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 4000000\/4000000 [01:49<00:00, 36583.75 examples\/s]\r\n>>> dataset.save_to_disk('test_dataset', num_proc=8)\r\nSaving the dataset (8\/8 shards): 100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 4000000\/4000000 [02:11<00:00, 30518.43 examples\/s]\r\n```\r\n\r\nWith larger datasets it can take hours, but I didn't benchmark that for this bug report.\n\n### Expected behavior\n\nI would expect using `num_proc>1` to be faster instead of slower than `num_proc=1`. \n\n### Environment info\n\n- `datasets` version: 3.1.0\r\n- Platform: Linux-5.15.153.1-microsoft-standard-WSL2-x86_64-with-glibc2.35\r\n- Python version: 3.10.12\r\n- `huggingface_hub` version: 0.26.2\r\n- PyArrow version: 18.0.0\r\n- Pandas version: 2.2.3\r\n- `fsspec` version: 2024.6.1","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7290\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7290\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7289","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7289\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7289\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7289\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7289","id":2648019507,"node_id":"I_kwDODunzps6d1ZIz","number":7289,"title":"Dataset viewer displays wrong statists","user":{"login":"speedcell4","id":3585459,"node_id":"MDQ6VXNlcjM1ODU0NTk=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/3585459?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/speedcell4","html_url":"https:\/\/github.com\/speedcell4","followers_url":"https:\/\/api.github.com\/users\/speedcell4\/followers","following_url":"https:\/\/api.github.com\/users\/speedcell4\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/speedcell4\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/speedcell4\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/speedcell4\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/speedcell4\/orgs","repos_url":"https:\/\/api.github.com\/users\/speedcell4\/repos","events_url":"https:\/\/api.github.com\/users\/speedcell4\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/speedcell4\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-11-11T03:29:27Z","updated_at":"2024-11-13T13:02:25Z","closed_at":"2024-11-13T13:02:25Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\r\n\r\nIn [my dataset](https:\/\/huggingface.co\/datasets\/speedcell4\/opus-unigram2), there is a column called `lang2`, and there are 94 different classes in total, but the viewer says there are 83 values only. This issue only arises in the `train` split. The total number of values is also 94 in the `test` and `dev` columns, viewer tells the correct number of them.\r\n\r\n\"image\"\r\n\r\n### Steps to reproduce the bug\r\n\r\n```python3\r\nfrom datasets import load_dataset\r\n\r\nds = load_dataset('speedcell4\/opus-unigram2').unique('lang2')\r\nfor key, lang2 in ds.items():\r\n print(key, len(lang2))\r\n```\r\n\r\nThis script returns the following and tells that the `train` split has 94 values in the `lang2` column.\r\n\r\n```\r\ntrain 94\r\ndev 94\r\ntest 94\r\nzero 5\r\n```\r\n\r\n### Expected behavior\r\n\r\n94 in the reviewer.\r\n\r\n### Environment info\r\n\r\nCollecting environment information...\r\nPyTorch version: 2.4.1+cu121\r\nIs debug build: False\r\nCUDA used to build PyTorch: 12.1\r\nROCM used to build PyTorch: N\/A\r\n\r\nOS: CentOS Linux release 8.2.2004 (Core) (x86_64)\r\nGCC version: (GCC) 8.3.1 20191121 (Red Hat 8.3.1-5)\r\nClang version: Could not collect\r\nCMake version: version 3.11.4\r\nLibc version: glibc-2.28\r\n\r\nPython version: 3.9.20 (main, Oct 3 2024, 07:27:41) [GCC 11.2.0] (64-bit runtime)\r\nPython platform: Linux-4.18.0-193.28.1.el8_2.x86_64-x86_64-with-glibc2.28\r\nIs CUDA available: True\r\nCUDA runtime version: 12.2.140\r\nCUDA_MODULE_LOADING set to: LAZY\r\nGPU models and configuration:\r\nGPU 0: NVIDIA A100-SXM4-40GB\r\nGPU 1: NVIDIA A100-SXM4-40GB\r\nGPU 2: NVIDIA A100-SXM4-40GB\r\nGPU 3: NVIDIA A100-SXM4-40GB\r\nGPU 4: NVIDIA A100-SXM4-40GB\r\nGPU 5: NVIDIA A100-SXM4-40GB\r\nGPU 6: NVIDIA A100-SXM4-40GB\r\nGPU 7: NVIDIA A100-SXM4-40GB\r\n\r\nNvidia driver version: 525.85.05\r\ncuDNN version: Could not collect\r\nHIP runtime version: N\/A\r\nMIOpen runtime version: N\/A\r\nIs XNNPACK available: True\r\n\r\nCPU:\r\nArchitecture: x86_64\r\nCPU op-mode(s): 32-bit, 64-bit\r\nByte Order: Little Endian\r\nCPU(s): 64\r\nOn-line CPU(s) list: 0-63\r\nThread(s) per core: 1\r\nCore(s) per socket: 32\r\nSocket(s): 2\r\nNUMA node(s): 4\r\nVendor ID: AuthenticAMD\r\nCPU family: 23\r\nModel: 49\r\nModel name: AMD EPYC 7542 32-Core Processor\r\nStepping: 0\r\nCPU MHz: 3389.114\r\nBogoMIPS: 5789.40\r\nVirtualization: AMD-V\r\nL1d cache: 32K\r\nL1i cache: 32K\r\nL2 cache: 512K\r\nL3 cache: 16384K\r\nNUMA node0 CPU(s): 0-15\r\nNUMA node1 CPU(s): 16-31\r\nNUMA node2 CPU(s): 32-47\r\nNUMA node3 CPU(s): 48-63\r\nFlags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba ibrs ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr wbnoinvd arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif umip rdpid overflow_recov succor smca\r\n\r\nVersions of relevant libraries:\r\n[pip3] numpy==1.26.4\r\n[pip3] torch==2.4.1+cu121\r\n[pip3] torchaudio==2.4.1+cu121\r\n[pip3] torchdevice==0.1.1\r\n[pip3] torchglyph==0.3.2\r\n[pip3] torchmetrics==1.5.0\r\n[pip3] torchrua==0.5.1\r\n[pip3] torchvision==0.19.1+cu121\r\n[pip3] triton==3.0.0\r\n[pip3] datasets==3.0.1\r\n[conda] numpy 1.26.4 pypi_0 pypi\r\n[conda] torch 2.4.1+cu121 pypi_0 pypi\r\n[conda] torchaudio 2.4.1+cu121 pypi_0 pypi\r\n[conda] torchdevice 0.1.1 pypi_0 pypi\r\n[conda] torchglyph 0.3.2 pypi_0 pypi\r\n[conda] torchmetrics 1.5.0 pypi_0 pypi\r\n[conda] torchrua 0.5.1 pypi_0 pypi\r\n[conda] torchvision 0.19.1+cu121 pypi_0 pypi\r\n[conda] triton 3.0.0 pypi_0 pypi","closed_by":{"login":"speedcell4","id":3585459,"node_id":"MDQ6VXNlcjM1ODU0NTk=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/3585459?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/speedcell4","html_url":"https:\/\/github.com\/speedcell4","followers_url":"https:\/\/api.github.com\/users\/speedcell4\/followers","following_url":"https:\/\/api.github.com\/users\/speedcell4\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/speedcell4\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/speedcell4\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/speedcell4\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/speedcell4\/orgs","repos_url":"https:\/\/api.github.com\/users\/speedcell4\/repos","events_url":"https:\/\/api.github.com\/users\/speedcell4\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/speedcell4\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7289\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7289\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7288","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7288\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7288\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7288\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7288","id":2647052280,"node_id":"PR_kwDODunzps6BbIpz","number":7288,"title":"Release v3.1.1","user":{"login":"alex-hh","id":5719745,"node_id":"MDQ6VXNlcjU3MTk3NDU=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/5719745?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/alex-hh","html_url":"https:\/\/github.com\/alex-hh","followers_url":"https:\/\/api.github.com\/users\/alex-hh\/followers","following_url":"https:\/\/api.github.com\/users\/alex-hh\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/alex-hh\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/alex-hh\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/alex-hh\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/alex-hh\/orgs","repos_url":"https:\/\/api.github.com\/users\/alex-hh\/repos","events_url":"https:\/\/api.github.com\/users\/alex-hh\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/alex-hh\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-11-10T09:38:15Z","updated_at":"2024-11-10T09:38:48Z","closed_at":"2024-11-10T09:38:48Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7288","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7288","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7288.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7288.patch","merged_at":null},"body":null,"closed_by":{"login":"alex-hh","id":5719745,"node_id":"MDQ6VXNlcjU3MTk3NDU=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/5719745?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/alex-hh","html_url":"https:\/\/github.com\/alex-hh","followers_url":"https:\/\/api.github.com\/users\/alex-hh\/followers","following_url":"https:\/\/api.github.com\/users\/alex-hh\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/alex-hh\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/alex-hh\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/alex-hh\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/alex-hh\/orgs","repos_url":"https:\/\/api.github.com\/users\/alex-hh\/repos","events_url":"https:\/\/api.github.com\/users\/alex-hh\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/alex-hh\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7288\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7288\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7287","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7287\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7287\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7287\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7287","id":2646958393,"node_id":"I_kwDODunzps6dxWE5","number":7287,"title":"Support for identifier-based automated split construction","user":{"login":"alex-hh","id":5719745,"node_id":"MDQ6VXNlcjU3MTk3NDU=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/5719745?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/alex-hh","html_url":"https:\/\/github.com\/alex-hh","followers_url":"https:\/\/api.github.com\/users\/alex-hh\/followers","following_url":"https:\/\/api.github.com\/users\/alex-hh\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/alex-hh\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/alex-hh\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/alex-hh\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/alex-hh\/orgs","repos_url":"https:\/\/api.github.com\/users\/alex-hh\/repos","events_url":"https:\/\/api.github.com\/users\/alex-hh\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/alex-hh\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2024-11-10T07:45:19Z","updated_at":"2024-11-19T14:37:02Z","closed_at":null,"author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\r\n\r\nAs far as I understand, automated construction of splits for hub datasets is currently based on either file names or directory structure ([as described here](https:\/\/huggingface.co\/docs\/datasets\/en\/repository_structure))\r\n\r\nIt would seem to be pretty useful to also allow splits to be based on identifiers of individual examples\r\n\r\nThis could be configured like \r\n{\"split_name\": {\"column_name\": [column values in split]}}\r\n\r\n(This in turn requires unique 'index' columns, which could be explicitly supported or just assumed to be defined appropriately by the user).\r\n\r\nI guess a potential downside would be that shards would end up spanning different splits - is this something that can be handled somehow? Would this only affect streaming from hub?\r\n\r\n### Motivation\r\n\r\nThe main motivation would be that all data files could be stored in a single directory, and multiple sets of splits could be generated from the same data. This is often useful for large datasets with multiple distinct sets of splits.\r\n\r\nThis could all be configured via the README.md yaml configs\r\n\r\n### Your contribution\r\n\r\nMay be able to contribute if it seems like a good idea","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7287\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7287\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7286","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7286\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7286\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7286\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7286","id":2645350151,"node_id":"I_kwDODunzps6drNcH","number":7286,"title":"Concurrent loading in `load_from_disk` - `num_proc` as a param ","user":{"login":"unography","id":5240449,"node_id":"MDQ6VXNlcjUyNDA0NDk=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/5240449?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/unography","html_url":"https:\/\/github.com\/unography","followers_url":"https:\/\/api.github.com\/users\/unography\/followers","following_url":"https:\/\/api.github.com\/users\/unography\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/unography\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/unography\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/unography\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/unography\/orgs","repos_url":"https:\/\/api.github.com\/users\/unography\/repos","events_url":"https:\/\/api.github.com\/users\/unography\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/unography\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-11-08T23:21:40Z","updated_at":"2024-11-09T16:14:37Z","closed_at":"2024-11-09T16:14:37Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nhttps:\/\/github.com\/huggingface\/datasets\/pull\/6464 mentions a `num_proc` param while loading dataset from disk, but can't find that in the documentation and code anywhere\n\n### Motivation\n\nMake loading large datasets from disk faster\n\n### Your contribution\n\nHappy to contribute if given pointers","closed_by":{"login":"unography","id":5240449,"node_id":"MDQ6VXNlcjUyNDA0NDk=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/5240449?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/unography","html_url":"https:\/\/github.com\/unography","followers_url":"https:\/\/api.github.com\/users\/unography\/followers","following_url":"https:\/\/api.github.com\/users\/unography\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/unography\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/unography\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/unography\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/unography\/orgs","repos_url":"https:\/\/api.github.com\/users\/unography\/repos","events_url":"https:\/\/api.github.com\/users\/unography\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/unography\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7286\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7286\/timeline","performed_via_github_app":null,"state_reason":"not_planned","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7285","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7285\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7285\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7285\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7285","id":2644488598,"node_id":"PR_kwDODunzps6BV3Gu","number":7285,"title":"Release v3.1.0","user":{"login":"alex-hh","id":5719745,"node_id":"MDQ6VXNlcjU3MTk3NDU=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/5719745?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/alex-hh","html_url":"https:\/\/github.com\/alex-hh","followers_url":"https:\/\/api.github.com\/users\/alex-hh\/followers","following_url":"https:\/\/api.github.com\/users\/alex-hh\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/alex-hh\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/alex-hh\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/alex-hh\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/alex-hh\/orgs","repos_url":"https:\/\/api.github.com\/users\/alex-hh\/repos","events_url":"https:\/\/api.github.com\/users\/alex-hh\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/alex-hh\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-11-08T16:17:58Z","updated_at":"2024-11-08T16:18:05Z","closed_at":"2024-11-08T16:18:05Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7285","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7285","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7285.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7285.patch","merged_at":null},"body":null,"closed_by":{"login":"alex-hh","id":5719745,"node_id":"MDQ6VXNlcjU3MTk3NDU=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/5719745?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/alex-hh","html_url":"https:\/\/github.com\/alex-hh","followers_url":"https:\/\/api.github.com\/users\/alex-hh\/followers","following_url":"https:\/\/api.github.com\/users\/alex-hh\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/alex-hh\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/alex-hh\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/alex-hh\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/alex-hh\/orgs","repos_url":"https:\/\/api.github.com\/users\/alex-hh\/repos","events_url":"https:\/\/api.github.com\/users\/alex-hh\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/alex-hh\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7285\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7285\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7284","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7284\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7284\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7284\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7284","id":2644302386,"node_id":"PR_kwDODunzps6BVUSh","number":7284,"title":"support for custom feature encoding\/decoding","user":{"login":"alex-hh","id":5719745,"node_id":"MDQ6VXNlcjU3MTk3NDU=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/5719745?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/alex-hh","html_url":"https:\/\/github.com\/alex-hh","followers_url":"https:\/\/api.github.com\/users\/alex-hh\/followers","following_url":"https:\/\/api.github.com\/users\/alex-hh\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/alex-hh\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/alex-hh\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/alex-hh\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/alex-hh\/orgs","repos_url":"https:\/\/api.github.com\/users\/alex-hh\/repos","events_url":"https:\/\/api.github.com\/users\/alex-hh\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/alex-hh\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-11-08T15:04:08Z","updated_at":"2024-11-21T16:09:47Z","closed_at":"2024-11-21T16:09:47Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7284","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7284","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7284.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7284.patch","merged_at":"2024-11-21T16:09:47Z"},"body":"Fix for https:\/\/github.com\/huggingface\/datasets\/issues\/7220 as suggested in discussion, in preference to #7221 \r\n\r\n(only concern would be on effect on type checking with custom feature types that aren't covered by FeatureType?)","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7284\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7284\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7283","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7283\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7283\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7283\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7283","id":2642537708,"node_id":"PR_kwDODunzps6BQUgH","number":7283,"title":"Allow for variation in metadata file names as per issue #7123","user":{"login":"egrace479","id":38985481,"node_id":"MDQ6VXNlcjM4OTg1NDgx","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/38985481?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/egrace479","html_url":"https:\/\/github.com\/egrace479","followers_url":"https:\/\/api.github.com\/users\/egrace479\/followers","following_url":"https:\/\/api.github.com\/users\/egrace479\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/egrace479\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/egrace479\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/egrace479\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/egrace479\/orgs","repos_url":"https:\/\/api.github.com\/users\/egrace479\/repos","events_url":"https:\/\/api.github.com\/users\/egrace479\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/egrace479\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-11-08T00:44:47Z","updated_at":"2024-11-08T00:44:47Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7283","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7283","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7283.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7283.patch","merged_at":null},"body":"Allow metadata files to have an identifying preface. Specifically, it will recognize files with `-metadata.csv` or `_metadata.csv` as metadata files for the purposes of the dataset viewer functionality.\r\n\r\nResolves #7123.","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7283\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7283\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7282","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7282\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7282\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7282\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7282","id":2642075491,"node_id":"I_kwDODunzps6det9j","number":7282,"title":"Faulty datasets.exceptions.ExpectedMoreSplitsError","user":{"login":"meg-huggingface","id":90473723,"node_id":"MDQ6VXNlcjkwNDczNzIz","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/90473723?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/meg-huggingface","html_url":"https:\/\/github.com\/meg-huggingface","followers_url":"https:\/\/api.github.com\/users\/meg-huggingface\/followers","following_url":"https:\/\/api.github.com\/users\/meg-huggingface\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/meg-huggingface\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/meg-huggingface\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/meg-huggingface\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/meg-huggingface\/orgs","repos_url":"https:\/\/api.github.com\/users\/meg-huggingface\/repos","events_url":"https:\/\/api.github.com\/users\/meg-huggingface\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/meg-huggingface\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-11-07T20:15:01Z","updated_at":"2024-11-07T20:15:42Z","closed_at":null,"author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\r\n\r\nTrying to download only the 'validation' split of my dataset; instead hit the error `datasets.exceptions.ExpectedMoreSplitsError`.\r\nAppears to be the same undesired behavior as reported in [#6939](https:\/\/github.com\/huggingface\/datasets\/issues\/6939), but with `data_files`, not `data_dir`.\r\n\r\nHere is the Traceback:\r\n```\r\nTraceback (most recent call last):\r\n File \"\/home\/user\/app\/app.py\", line 12, in \r\n ds = load_dataset('datacomp\/imagenet-1k-random0.0', token=GATED_IMAGENET, data_files={'validation': 'data\/val*'}, split='validation', trust_remote_code=True)\r\n File \"\/usr\/local\/lib\/python3.10\/site-packages\/datasets\/load.py\", line 2154, in load_dataset\r\n builder_instance.download_and_prepare(\r\n File \"\/usr\/local\/lib\/python3.10\/site-packages\/datasets\/builder.py\", line 924, in download_and_prepare\r\n self._download_and_prepare(\r\n File \"\/usr\/local\/lib\/python3.10\/site-packages\/datasets\/builder.py\", line 1018, in _download_and_prepare\r\n verify_splits(self.info.splits, split_dict)\r\n File \"\/usr\/local\/lib\/python3.10\/site-packages\/datasets\/utils\/info_utils.py\", line 68, in verify_splits\r\n raise ExpectedMoreSplitsError(str(set(expected_splits) - set(recorded_splits)))\r\ndatasets.exceptions.ExpectedMoreSplitsError: {'train', 'test'}\r\n```\r\n\r\nNote: I am using the `data_files` argument only because I am trying to specify that I only want the 'validation' split, and the whole dataset will be downloaded even when the `split='validation'` argument is specified, unless you also specify `data_files`, as described here: https:\/\/discuss.huggingface.co\/t\/how-can-i-download-a-specific-split-of-a-dataset\/79027\r\n\r\n\r\n### Steps to reproduce the bug\r\n\r\n1. Create a Space with the default blank 'gradio' SDK https:\/\/huggingface.co\/new-space\r\n2. Create a file 'app.py' that loads a dataset to only extract a 'validation' split:\r\n\r\n`ds = load_dataset('datacomp\/imagenet-1k-random0.0', token=GATED_IMAGENET, data_files={'validation': 'data\/val*'}, split='validation', trust_remote_code=True)`\r\n\r\n### Expected behavior\r\n\r\nDownloading validation split.\r\n\r\n### Environment info\r\n\r\nDefault environment for creating a new Space. Relevant to this bug, that is:\r\n\r\n```\r\nFROM docker.io\/library\/python:3.10@sha256:fd0fa50d997eb56ce560c6e5ca6a1f5cf8fdff87572a16ac07fb1f5ca01eb608\r\n\r\n--> RUN pip install --no-cache-dir pip==22.3.1 && \tpip install --no-cache-dir \tdatasets \t\"huggingface-hub>=0.19\" \"hf-transfer>=0.1.4\" \"protobuf<4\" \"click<8.1\" \r\n```","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7282\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7282\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7281","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7281\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7281\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7281\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7281","id":2640346339,"node_id":"I_kwDODunzps6dYHzj","number":7281,"title":"File not found error","user":{"login":"MichielBontenbal","id":37507786,"node_id":"MDQ6VXNlcjM3NTA3Nzg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/37507786?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/MichielBontenbal","html_url":"https:\/\/github.com\/MichielBontenbal","followers_url":"https:\/\/api.github.com\/users\/MichielBontenbal\/followers","following_url":"https:\/\/api.github.com\/users\/MichielBontenbal\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/MichielBontenbal\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/MichielBontenbal\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/MichielBontenbal\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/MichielBontenbal\/orgs","repos_url":"https:\/\/api.github.com\/users\/MichielBontenbal\/repos","events_url":"https:\/\/api.github.com\/users\/MichielBontenbal\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/MichielBontenbal\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-11-07T09:04:49Z","updated_at":"2024-11-07T09:22:43Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\r\n\r\nI get a FileNotFoundError:\r\n\"image\"\r\n\r\n\r\n### Steps to reproduce the bug\r\n\r\nSee screenshot.\r\n\r\n\r\n\r\n### Expected behavior\r\n\r\nI want to load one audiofile from the dataset. \r\n\r\n### Environment info\r\n\r\nMacOs Intel 14.6.1 (23G93)\r\nPython 3.10.9\r\nNumpy 1.23\r\nDatasets latest version","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7281\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7281\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7280","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7280\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7280\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7280\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7280","id":2639977077,"node_id":"I_kwDODunzps6dWtp1","number":7280,"title":"Add filename in error message when ReadError or similar occur","user":{"login":"elisa-aleman","id":37046039,"node_id":"MDQ6VXNlcjM3MDQ2MDM5","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/37046039?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/elisa-aleman","html_url":"https:\/\/github.com\/elisa-aleman","followers_url":"https:\/\/api.github.com\/users\/elisa-aleman\/followers","following_url":"https:\/\/api.github.com\/users\/elisa-aleman\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/elisa-aleman\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/elisa-aleman\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/elisa-aleman\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/elisa-aleman\/orgs","repos_url":"https:\/\/api.github.com\/users\/elisa-aleman\/repos","events_url":"https:\/\/api.github.com\/users\/elisa-aleman\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/elisa-aleman\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2024-11-07T06:00:53Z","updated_at":"2024-11-20T13:23:12Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"Please update error messages to include relevant information for debugging when loading datasets with `load_dataset()` that may have a few corrupted files. \n\nWhenever downloading a full dataset, some files might be corrupted (either at the source or from downloading corruption). \n\nHowever the errors often only let me know it was a tar file if `tarfile.ReadError` appears on the traceback, and I imagine similarly for other file types. \n\nThis makes it really hard to debug which file is corrupted, and when dealing with very large datasets, it shouldn't be necessary to force download everything again.","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7280\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7280\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7279","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7279\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7279\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7279\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7279","id":2635813932,"node_id":"PR_kwDODunzps6A8pTJ","number":7279,"title":"Feature proposal: Stacking, potentially heterogeneous, datasets","user":{"login":"TimCares","id":96243987,"node_id":"U_kgDOBbyREw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/96243987?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/TimCares","html_url":"https:\/\/github.com\/TimCares","followers_url":"https:\/\/api.github.com\/users\/TimCares\/followers","following_url":"https:\/\/api.github.com\/users\/TimCares\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/TimCares\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/TimCares\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/TimCares\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/TimCares\/orgs","repos_url":"https:\/\/api.github.com\/users\/TimCares\/repos","events_url":"https:\/\/api.github.com\/users\/TimCares\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/TimCares\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-11-05T15:40:50Z","updated_at":"2024-11-05T15:40:50Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7279","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7279","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7279.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7279.patch","merged_at":null},"body":"### Introduction\r\n\r\nHello there,\r\nI noticed that there are two ways to combine multiple datasets: Either through `datasets.concatenate_datasets` or `datasets.interleave_datasets`. However, to my knowledge (please correct me if I am wrong) both approaches require the datasets that are combined to have the same features.\r\n\r\nI think it would be a great idea to add support for combining multiple datasets that might not follow the same schema (i.e. have different features), for example an image and text dataset. That is why I propose a third function of the `datasets.combine` module called `stack_datasets`, which can be used to combine a list of datasets with (potentially) different features. This would look as follows:\r\n\r\n```python\r\n>>> from datasets import stack_datasets\r\n>>> image_dataset = ...\r\n>>> next(iter(image_dataset))\r\n{'image': }\r\n>>> text_dataset = ...\r\n>>> next(iter(text_dataset))\r\n{'text': \"This is a test.\"}\r\n>>> stacked = stack_datasets(datasets={'i_ds': image_dataset, 't_ds': text_dataset}, stopping_strategy='all_exhausted')\r\n>>> next(iter(stacked))\r\n{\r\n'i_ds': {'image': }\r\n't_ds': {'text': \"This is a test.\"}\r\n}\r\n```\r\n
\r\n\r\n### Motivation\r\n\r\nI motivate this by:\r\n\r\n**A**: The fact that Pytorch offers a similar functionality under `torch.utils.data.StackDataset` ([link](https:\/\/pytorch.org\/docs\/stable\/data.html#torch.utils.data.StackDataset)).\r\n\r\n**B**: In settings where one would like to e.g. train a Vision-Language model using an image-text dataset, an image dataset, and a text dataset, this functionality would offer a clean and intuitive solution to create multimodal datasets. I am aware that the aforementioned is also feasible without my proposed function, but I believe this offers a nice approach that aligns with existing functionality and is directly provided within the `datasets` package.\r\n\r\n### API\r\n`stack_datasets` has two arguments: `datasets` and `stopping_strategy `.\r\n
\r\n\r\n`datasets` is a dictionary of either type `Dict[str, Dataset]` or `Dict[str, IterableDatasets]`, a mixture is not allowed. It contains the names of the datasets (the keys) and the datasets themselves (the values) that should be stacked. Each item returned is a dictionary with one key-value pair for each dataset. The keys are the names of the datasets as provided in the argument `datasets`, and the values are the respective examples from the datasets.\r\n
\r\n\r\n`stopping_strategy` is the same as for `interleave_datasets`. If it is `first_exhausted` we stop if the smallest dataset runs out of examples, if it is `all_exhausted` we stop if all datasets ran out of examples at least once. For `all_exhausted` that means that we may visit examples from datasets multiple times. \r\n\r\n### Docs\r\nI saw that there are multiple documentations and guides on the HuggingFace website that introduce `concatenate_datasets` and `interleave_datasets`, for example [here](https:\/\/huggingface.co\/docs\/datasets\/process#concatenate). If this request is merged I would be willing to add the new functionality at the appropriate points in the documentation (if desired).\r\n\r\n### Tests\r\nI also added some tests to ensure correctness. Some tests I wrote in [tests\/test_iterable_dataset.py](https:\/\/github.com\/TimCares\/datasets\/blob\/fadc1159debf2a65d44e40cbf7758f2bd2cc8b08\/tests\/test_iterable_dataset.py#L2169)\r\nrun for both `Dataset` and `IterableDataset` even though tests for `Dataset` technically do not belong in this script, but I found that this was a nice way to cover more cases with mostly the same code.\r\n\r\n### Additional information\r\nI tried to write the code in a way so that it is similar to that of `concatenate_datasets` and `interleave_datasets`.\r\nI\u2019m open to feedback and willing to make adjustments based on your suggestions, so feel free to give me your take. :)\r\n","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7279\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7279\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7278","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7278\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7278\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7278\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7278","id":2633436151,"node_id":"PR_kwDODunzps6A1ORG","number":7278,"title":"Let soundfile directly read local audio files","user":{"login":"fawazahmed0","id":20347013,"node_id":"MDQ6VXNlcjIwMzQ3MDEz","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/20347013?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/fawazahmed0","html_url":"https:\/\/github.com\/fawazahmed0","followers_url":"https:\/\/api.github.com\/users\/fawazahmed0\/followers","following_url":"https:\/\/api.github.com\/users\/fawazahmed0\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/fawazahmed0\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/fawazahmed0\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/fawazahmed0\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/fawazahmed0\/orgs","repos_url":"https:\/\/api.github.com\/users\/fawazahmed0\/repos","events_url":"https:\/\/api.github.com\/users\/fawazahmed0\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/fawazahmed0\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-11-04T17:41:13Z","updated_at":"2024-11-18T14:01:25Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7278","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7278","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7278.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7278.patch","merged_at":null},"body":"- [x] Fixes #7276","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7278\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7278\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7277","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7277\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7277\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7277\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7277","id":2632459184,"node_id":"PR_kwDODunzps6AyB7O","number":7277,"title":"Add link to video dataset","user":{"login":"NielsRogge","id":48327001,"node_id":"MDQ6VXNlcjQ4MzI3MDAx","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/48327001?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/NielsRogge","html_url":"https:\/\/github.com\/NielsRogge","followers_url":"https:\/\/api.github.com\/users\/NielsRogge\/followers","following_url":"https:\/\/api.github.com\/users\/NielsRogge\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/NielsRogge\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/NielsRogge\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/NielsRogge\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/NielsRogge\/orgs","repos_url":"https:\/\/api.github.com\/users\/NielsRogge\/repos","events_url":"https:\/\/api.github.com\/users\/NielsRogge\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/NielsRogge\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-11-04T10:45:12Z","updated_at":"2024-11-04T17:05:06Z","closed_at":"2024-11-04T17:05:06Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7277","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7277","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7277.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7277.patch","merged_at":"2024-11-04T17:05:06Z"},"body":"This PR updates https:\/\/huggingface.co\/docs\/datasets\/loading to also link to the new video loading docs.\r\n\r\ncc @mfarre ","closed_by":{"login":"stevhliu","id":59462357,"node_id":"MDQ6VXNlcjU5NDYyMzU3","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/59462357?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/stevhliu","html_url":"https:\/\/github.com\/stevhliu","followers_url":"https:\/\/api.github.com\/users\/stevhliu\/followers","following_url":"https:\/\/api.github.com\/users\/stevhliu\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/stevhliu\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/stevhliu\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/stevhliu\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/stevhliu\/orgs","repos_url":"https:\/\/api.github.com\/users\/stevhliu\/repos","events_url":"https:\/\/api.github.com\/users\/stevhliu\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/stevhliu\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7277\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7277\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7276","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7276\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7276\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7276\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7276","id":2631917431,"node_id":"I_kwDODunzps6c3993","number":7276,"title":"Accessing audio dataset value throws Format not recognised error","user":{"login":"fawazahmed0","id":20347013,"node_id":"MDQ6VXNlcjIwMzQ3MDEz","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/20347013?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/fawazahmed0","html_url":"https:\/\/github.com\/fawazahmed0","followers_url":"https:\/\/api.github.com\/users\/fawazahmed0\/followers","following_url":"https:\/\/api.github.com\/users\/fawazahmed0\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/fawazahmed0\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/fawazahmed0\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/fawazahmed0\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/fawazahmed0\/orgs","repos_url":"https:\/\/api.github.com\/users\/fawazahmed0\/repos","events_url":"https:\/\/api.github.com\/users\/fawazahmed0\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/fawazahmed0\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2024-11-04T05:59:13Z","updated_at":"2024-11-09T18:51:52Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\r\n\r\nAccessing audio dataset value throws `Format not recognised error`\r\n\r\n### Steps to reproduce the bug\r\n\r\n**code:**\r\n```py\r\nfrom datasets import load_dataset\r\n\r\ndataset = load_dataset(\"fawazahmed0\/bug-audio\")\r\n\r\nfor data in dataset[\"train\"]:\r\n print(data)\r\n\r\n```\r\n\r\n**output:**\r\n```bash\r\n(mypy) C:\\Users\\Nawaz-Server\\Documents\\ml>python myest.py\r\n[C:\\vcpkg\\buildtrees\\mpg123\\src\\0d8db63f9b-3db975bc05.clean\\src\\libmpg123\\layer3.c:INT123_do_layer3():1801] error: dequantization failed!\r\n{'audio': {'path': 'C:\\\\Users\\\\Nawaz-Server\\\\.cache\\\\huggingface\\\\hub\\\\datasets--fawazahmed0--bug-audio\\\\snapshots\\\\fab1398431fed1c0a2a7bff0945465bab8b5daef\\\\data\\\\Ghamadi\\\\037135.mp3', 'array': array([ 0.00000000e+00, -2.86519935e-22, -2.56504911e-21, ...,\r\n -1.94239747e-02, -2.42924765e-02, -2.99104657e-02]), 'sampling_rate': 22050}, 'reciter': 'Ghamadi', 'transcription': '\u0627\u0644\u0627 \u0639\u062c\u0648\u0632 \u0627 \u0641\u064a \u0627\u0644\u063a\u0628\u0631\u064a\u0646', 'line': 3923, 'chapter': 37, 'verse': 135, 'text': '\u0627\u0650\u0655\u0644\u064e\u0651\u0627 \u0639\u064e\u062c\u064f\u0648\u0632\u08f0 \u0627 \u0641\u0650\u064a \u0671\u0644\u06e1\u063a\u064e\u0670\u0628\u0650\u0631\u0650\u064a\u0646\u064e'}\r\nTraceback (most recent call last):\r\n File \"C:\\Users\\Nawaz-Server\\Documents\\ml\\myest.py\", line 5, in \r\n for data in dataset[\"train\"]:\r\n ~~~~~~~^^^^^^^^^\r\n File \"C:\\Users\\Nawaz-Server\\.conda\\envs\\mypy\\Lib\\site-packages\\datasets\\arrow_dataset.py\", line 2372, in __iter__\r\n formatted_output = format_table(\r\n ^^^^^^^^^^^^^\r\n File \"C:\\Users\\Nawaz-Server\\.conda\\envs\\mypy\\Lib\\site-packages\\datasets\\formatting\\formatting.py\", line 639, in format_table\r\n return formatter(pa_table, query_type=query_type)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\Nawaz-Server\\.conda\\envs\\mypy\\Lib\\site-packages\\datasets\\formatting\\formatting.py\", line 403, in __call__\r\n return self.format_row(pa_table)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\Nawaz-Server\\.conda\\envs\\mypy\\Lib\\site-packages\\datasets\\formatting\\formatting.py\", line 444, in format_row\r\n row = self.python_features_decoder.decode_row(row)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\Nawaz-Server\\.conda\\envs\\mypy\\Lib\\site-packages\\datasets\\formatting\\formatting.py\", line 222, in decode_row\r\n return self.features.decode_example(row) if self.features else row\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\Nawaz-Server\\.conda\\envs\\mypy\\Lib\\site-packages\\datasets\\features\\features.py\", line 2042, in decode_example\r\n column_name: decode_nested_example(feature, value, token_per_repo_id=token_per_repo_id)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\Nawaz-Server\\.conda\\envs\\mypy\\Lib\\site-packages\\datasets\\features\\features.py\", line 1403, in decode_nested_example\r\n return schema.decode_example(obj, token_per_repo_id=token_per_repo_id)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\Nawaz-Server\\.conda\\envs\\mypy\\Lib\\site-packages\\datasets\\features\\audio.py\", line 184, in decode_example\r\n array, sampling_rate = sf.read(f)\r\n ^^^^^^^^^^\r\n File \"C:\\Users\\Nawaz-Server\\.conda\\envs\\mypy\\Lib\\site-packages\\soundfile.py\", line 285, in read\r\n with SoundFile(file, 'r', samplerate, channels,\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\Nawaz-Server\\.conda\\envs\\mypy\\Lib\\site-packages\\soundfile.py\", line 658, in __init__\r\n self._file = self._open(file, mode_int, closefd)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\Nawaz-Server\\.conda\\envs\\mypy\\Lib\\site-packages\\soundfile.py\", line 1216, in _open\r\n raise LibsndfileError(err, prefix=\"Error opening {0!r}: \".format(self.name))\r\nsoundfile.LibsndfileError: Error opening <_io.BufferedReader name='C:\\\\Users\\\\Nawaz-Server\\\\.cache\\\\huggingface\\\\hub\\\\datasets--fawazahmed0--bug-audio\\\\snapshots\\\\fab1398431fed1c0a2a7bff0945465bab8b5daef\\\\data\\\\Ghamadi\\\\037136.mp3'>: Format not recognised.\r\n```\r\n\r\n### Expected behavior\r\n\r\nEverything should work fine, as loading the problematic audio file directly with soundfile package works fine\r\n\r\n**code:**\r\n```\r\nimport soundfile as sf\r\n\r\nprint(sf.read('C:\\\\Users\\\\Nawaz-Server\\\\.cache\\\\huggingface\\\\hub\\\\datasets--fawazahmed0--bug-audio\\\\snapshots\\\\fab1398431fed1c0a2a7bff0945465bab8b5daef\\\\data\\\\Ghamadi\\\\037136.mp3'))\r\n```\r\n\r\n**output:**\r\n```bash\r\n(mypy) C:\\Users\\Nawaz-Server\\Documents\\ml>python myest.py\r\n[C:\\vcpkg\\buildtrees\\mpg123\\src\\0d8db63f9b-3db975bc05.clean\\src\\libmpg123\\layer3.c:INT123_do_layer3():1801] error: dequantization failed!\r\n(array([ 0.00000000e+00, -8.43723821e-22, -2.45370628e-22, ...,\r\n -7.71464454e-03, -6.90496899e-03, -8.63333419e-03]), 22050)\r\n```\r\n\r\n### Environment info\r\n\r\n- `datasets` version: 3.0.2\r\n- Platform: Windows-11-10.0.22621-SP0\r\n- Python version: 3.12.7\r\n- `huggingface_hub` version: 0.26.2\r\n- PyArrow version: 17.0.0\r\n- Pandas version: 2.2.3\r\n- `fsspec` version: 2024.10.0\r\n- soundfile: 0.12.1","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7276\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7276\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7275","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7275\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7275\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7275\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7275","id":2631713397,"node_id":"I_kwDODunzps6c3MJ1","number":7275,"title":"load_dataset","user":{"login":"santiagobp99","id":46941974,"node_id":"MDQ6VXNlcjQ2OTQxOTc0","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/46941974?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/santiagobp99","html_url":"https:\/\/github.com\/santiagobp99","followers_url":"https:\/\/api.github.com\/users\/santiagobp99\/followers","following_url":"https:\/\/api.github.com\/users\/santiagobp99\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/santiagobp99\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/santiagobp99\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/santiagobp99\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/santiagobp99\/orgs","repos_url":"https:\/\/api.github.com\/users\/santiagobp99\/repos","events_url":"https:\/\/api.github.com\/users\/santiagobp99\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/santiagobp99\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-11-04T03:01:44Z","updated_at":"2024-11-04T03:01:44Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI am performing two operations I see on a hugging face tutorial (Fine-tune a language model), and I am defining every aspect inside the mapped functions, also some imports of the library because it doesnt identify anything not defined outside that function where the dataset elements are being mapped:\r\n\r\nhttps:\/\/colab.research.google.com\/github\/huggingface\/notebooks\/blob\/main\/examples\/language_modeling.ipynb#scrollTo=iaAJy5Hu3l_B\r\n\r\n`- lm_datasets = tokenized_datasets.map(\r\n group_texts,\r\n batched=True,\r\n batch_size=batch_size,\r\n num_proc=4,\r\n)\r\n\r\n- tokenized_datasets = datasets.map(tokenize_function, batched=True, num_proc=4, remove_columns=[\"text\"])\r\ndef tokenize_function(examples):\r\n model_checkpoint = 'gpt2'\r\n from transformers import AutoTokenizer\r\n tokenizer = AutoTokenizer.from_pretrained(model_checkpoint, use_fast=True)\r\n return tokenizer(examples[\"text\"])`\r\n\n\n### Steps to reproduce the bug\n\nCurrently handle all the imports inside the function\n\n### Expected behavior\n\nThe code must work es expected in the notebook, but currently this is not happening.\r\n\r\nhttps:\/\/colab.research.google.com\/github\/huggingface\/notebooks\/blob\/main\/examples\/language_modeling.ipynb#scrollTo=iaAJy5Hu3l_B\n\n### Environment info\n\nprint(transformers.__version__)\r\n\r\n4.46.1","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7275\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7275\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7274","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7274\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7274\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7274\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7274","id":2629882821,"node_id":"PR_kwDODunzps6ArEt-","number":7274,"title":"[MINOR:TYPO] Fix typo in exception text","user":{"login":"cakiki","id":3664563,"node_id":"MDQ6VXNlcjM2NjQ1NjM=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/3664563?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/cakiki","html_url":"https:\/\/github.com\/cakiki","followers_url":"https:\/\/api.github.com\/users\/cakiki\/followers","following_url":"https:\/\/api.github.com\/users\/cakiki\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/cakiki\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/cakiki\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/cakiki\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/cakiki\/orgs","repos_url":"https:\/\/api.github.com\/users\/cakiki\/repos","events_url":"https:\/\/api.github.com\/users\/cakiki\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/cakiki\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-11-01T21:15:29Z","updated_at":"2025-05-21T13:17:20Z","closed_at":"2025-05-21T13:17:20Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7274","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7274","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7274.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7274.patch","merged_at":null},"body":null,"closed_by":{"login":"cakiki","id":3664563,"node_id":"MDQ6VXNlcjM2NjQ1NjM=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/3664563?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/cakiki","html_url":"https:\/\/github.com\/cakiki","followers_url":"https:\/\/api.github.com\/users\/cakiki\/followers","following_url":"https:\/\/api.github.com\/users\/cakiki\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/cakiki\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/cakiki\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/cakiki\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/cakiki\/orgs","repos_url":"https:\/\/api.github.com\/users\/cakiki\/repos","events_url":"https:\/\/api.github.com\/users\/cakiki\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/cakiki\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7274\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7274\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7273","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7273\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7273\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7273\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7273","id":2628896492,"node_id":"PR_kwDODunzps6An6n8","number":7273,"title":"Raise error for incorrect JSON serialization","user":{"login":"varadhbhatnagar","id":20443618,"node_id":"MDQ6VXNlcjIwNDQzNjE4","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/20443618?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/varadhbhatnagar","html_url":"https:\/\/github.com\/varadhbhatnagar","followers_url":"https:\/\/api.github.com\/users\/varadhbhatnagar\/followers","following_url":"https:\/\/api.github.com\/users\/varadhbhatnagar\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/varadhbhatnagar\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/varadhbhatnagar\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/varadhbhatnagar\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/varadhbhatnagar\/orgs","repos_url":"https:\/\/api.github.com\/users\/varadhbhatnagar\/repos","events_url":"https:\/\/api.github.com\/users\/varadhbhatnagar\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/varadhbhatnagar\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-11-01T11:54:35Z","updated_at":"2024-11-18T11:25:01Z","closed_at":"2024-11-18T11:25:01Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7273","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7273","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7273.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7273.patch","merged_at":"2024-11-18T11:25:01Z"},"body":"Raise error when `lines = False` and `batch_size < Dataset.num_rows` in `Dataset.to_json()`.\r\n\r\nIssue: #7037 \r\n\r\nRelated PRs:\r\n#7039 #7181 ","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7273\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7273\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7272","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7272\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7272\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7272\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7272","id":2627223390,"node_id":"PR_kwDODunzps6AirL2","number":7272,"title":"fix conda release worlflow","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-10-31T15:56:19Z","updated_at":"2024-10-31T15:58:35Z","closed_at":"2024-10-31T15:57:29Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7272","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7272","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7272.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7272.patch","merged_at":"2024-10-31T15:57:29Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7272\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7272\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7271","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7271\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7271\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7271\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7271","id":2627135540,"node_id":"PR_kwDODunzps6AiZaj","number":7271,"title":"Set dev version","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-10-31T15:22:51Z","updated_at":"2024-10-31T15:25:27Z","closed_at":"2024-10-31T15:22:59Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7271","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7271","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7271.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7271.patch","merged_at":"2024-10-31T15:22:59Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7271\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7271\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7270","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7270\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7270\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7270\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7270","id":2627107016,"node_id":"PR_kwDODunzps6AiTJm","number":7270,"title":"Release: 3.1.0","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-10-31T15:10:01Z","updated_at":"2024-10-31T15:14:23Z","closed_at":"2024-10-31T15:14:20Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7270","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7270","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7270.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7270.patch","merged_at":"2024-10-31T15:14:20Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7270\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7270\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7269","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7269\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7269\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7269\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7269","id":2626873843,"node_id":"I_kwDODunzps6ckunz","number":7269,"title":"Memory leak when streaming","user":{"login":"Jourdelune","id":64205064,"node_id":"MDQ6VXNlcjY0MjA1MDY0","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/64205064?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Jourdelune","html_url":"https:\/\/github.com\/Jourdelune","followers_url":"https:\/\/api.github.com\/users\/Jourdelune\/followers","following_url":"https:\/\/api.github.com\/users\/Jourdelune\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Jourdelune\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Jourdelune\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Jourdelune\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Jourdelune\/orgs","repos_url":"https:\/\/api.github.com\/users\/Jourdelune\/repos","events_url":"https:\/\/api.github.com\/users\/Jourdelune\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Jourdelune\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2024-10-31T13:33:52Z","updated_at":"2025-08-05T12:38:44Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\r\n\r\nI try to use a dataset with streaming=True, the issue I have is that the RAM usage becomes higher and higher until it is no longer sustainable.\r\n\r\nI understand that huggingface store data in ram during the streaming, and more worker in dataloader there are, more a lot of shard will be stored in ram, but the issue I have is that the ram usage is not constant. So after each new shard loaded, the ram usage will be higher and higher.\r\n\r\n### Steps to reproduce the bug\r\n\r\nYou can run this code and see you ram usage, after each shard of 255 examples, your ram usage will be extended.\r\n```py\r\nfrom datasets import load_dataset\r\nfrom torch.utils.data import DataLoader\r\n\r\ndataset = load_dataset(\"WaveGenAI\/dataset\", streaming=True)\r\n\r\ndataloader = DataLoader(dataset[\"train\"], num_workers=3)\r\n\r\nfor i, data in enumerate(dataloader):\r\n print(i, end=\"\\r\")\r\n```\r\n\r\n### Expected behavior\r\n\r\nThe Ram usage should be always the same (just 3 shards loaded in the ram).\r\n\r\n### Environment info\r\n\r\n- `datasets` version: 3.0.1\r\n- Platform: Linux-6.10.5-arch1-1-x86_64-with-glibc2.40\r\n- Python version: 3.12.4\r\n- `huggingface_hub` version: 0.26.0\r\n- PyArrow version: 17.0.0\r\n- Pandas version: 2.2.3\r\n- `fsspec` version: 2024.6.1","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7269\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7269\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7268","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7268\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7268\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7268\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7268","id":2626664687,"node_id":"I_kwDODunzps6cj7jv","number":7268,"title":"load_from_disk","user":{"login":"ghaith-mq","id":71670961,"node_id":"MDQ6VXNlcjcxNjcwOTYx","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/71670961?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ghaith-mq","html_url":"https:\/\/github.com\/ghaith-mq","followers_url":"https:\/\/api.github.com\/users\/ghaith-mq\/followers","following_url":"https:\/\/api.github.com\/users\/ghaith-mq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ghaith-mq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ghaith-mq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ghaith-mq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ghaith-mq\/orgs","repos_url":"https:\/\/api.github.com\/users\/ghaith-mq\/repos","events_url":"https:\/\/api.github.com\/users\/ghaith-mq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ghaith-mq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2024-10-31T11:51:56Z","updated_at":"2025-07-01T08:42:17Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI have data saved with save_to_disk. The data is big (700Gb). When I try loading it, the only option is load_from_disk, and this function copies the data to a tmp directory, causing me to run out of disk space. Is there an alternative solution to that?\n\n### Steps to reproduce the bug\n\nwhen trying to load data using load_From_disk after being saved using save_to_disk \n\n### Expected behavior\n\nrun out of disk space\n\n### Environment info\n\nlateest version","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7268\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7268\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7267","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7267\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7267\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7267\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7267","id":2626490029,"node_id":"I_kwDODunzps6cjQ6t","number":7267,"title":"Source installation fails on Macintosh with python 3.10","user":{"login":"mayankagarwals","id":39498938,"node_id":"MDQ6VXNlcjM5NDk4OTM4","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/39498938?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/mayankagarwals","html_url":"https:\/\/github.com\/mayankagarwals","followers_url":"https:\/\/api.github.com\/users\/mayankagarwals\/followers","following_url":"https:\/\/api.github.com\/users\/mayankagarwals\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/mayankagarwals\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/mayankagarwals\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/mayankagarwals\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/mayankagarwals\/orgs","repos_url":"https:\/\/api.github.com\/users\/mayankagarwals\/repos","events_url":"https:\/\/api.github.com\/users\/mayankagarwals\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/mayankagarwals\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-10-31T10:18:45Z","updated_at":"2024-11-04T22:18:06Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nHi, \r\n\r\nDecord is a dev dependency not maintained since couple years. \r\nIt does not have an ARM package available rendering it uninstallable on non-intel based macs \r\n\r\nSuggestion is to move to eva-decord (https:\/\/github.com\/georgia-tech-db\/eva-decord) which doesnt have this problem. \r\n\r\nHappy to raise a PR\r\n\n\n### Steps to reproduce the bug\n\nSource installation as mentioned in contributinog.md\n\n### Expected behavior\n\nInstallation without decord failing to be installed.\n\n### Environment info\n\npython=3.10, M3 Mac ","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7267\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7267\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7266","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7266\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7266\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7266\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7266","id":2624666087,"node_id":"I_kwDODunzps6ccTnn","number":7266,"title":"The dataset viewer should be available soon. Please retry later.","user":{"login":"viiika","id":39821659,"node_id":"MDQ6VXNlcjM5ODIxNjU5","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/39821659?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/viiika","html_url":"https:\/\/github.com\/viiika","followers_url":"https:\/\/api.github.com\/users\/viiika\/followers","following_url":"https:\/\/api.github.com\/users\/viiika\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/viiika\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/viiika\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/viiika\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/viiika\/orgs","repos_url":"https:\/\/api.github.com\/users\/viiika\/repos","events_url":"https:\/\/api.github.com\/users\/viiika\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/viiika\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-10-30T16:32:00Z","updated_at":"2024-10-31T03:48:11Z","closed_at":"2024-10-31T03:48:10Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nAfter waiting for 2 hours, it still presents ``The dataset viewer should be available soon. Please retry later.''\n\n### Steps to reproduce the bug\n\ndataset link: https:\/\/huggingface.co\/datasets\/BryanW\/HI_EDIT\n\n### Expected behavior\n\nPresent the dataset viewer.\n\n### Environment info\n\nNA","closed_by":{"login":"viiika","id":39821659,"node_id":"MDQ6VXNlcjM5ODIxNjU5","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/39821659?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/viiika","html_url":"https:\/\/github.com\/viiika","followers_url":"https:\/\/api.github.com\/users\/viiika\/followers","following_url":"https:\/\/api.github.com\/users\/viiika\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/viiika\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/viiika\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/viiika\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/viiika\/orgs","repos_url":"https:\/\/api.github.com\/users\/viiika\/repos","events_url":"https:\/\/api.github.com\/users\/viiika\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/viiika\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7266\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7266\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7265","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7265\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7265\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7265\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7265","id":2624090418,"node_id":"PR_kwDODunzps6AYofJ","number":7265,"title":"Disallow video push_to_hub","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-10-30T13:21:55Z","updated_at":"2024-10-30T13:36:05Z","closed_at":"2024-10-30T13:36:02Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7265","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7265","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7265.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7265.patch","merged_at":"2024-10-30T13:36:02Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7265\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7265\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7264","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7264\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7264\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7264\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7264","id":2624047640,"node_id":"PR_kwDODunzps6AYfwL","number":7264,"title":"fix docs relative links","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-10-30T13:07:34Z","updated_at":"2024-10-30T13:10:13Z","closed_at":"2024-10-30T13:09:02Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7264","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7264","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7264.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7264.patch","merged_at":"2024-10-30T13:09:02Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7264\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7264\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7263","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7263\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7263\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7263\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7263","id":2621844054,"node_id":"PR_kwDODunzps6ARg7m","number":7263,"title":"Small addition to video docs","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-10-29T16:58:37Z","updated_at":"2024-10-29T17:01:05Z","closed_at":"2024-10-29T16:59:10Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7263","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7263","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7263.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7263.patch","merged_at":"2024-10-29T16:59:10Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7263\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7263\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7262","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7262\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7262\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7262\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7262","id":2620879059,"node_id":"PR_kwDODunzps6AOWI8","number":7262,"title":"Allow video with disabeld decoding without decord","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-10-29T10:54:04Z","updated_at":"2024-10-29T10:56:19Z","closed_at":"2024-10-29T10:55:37Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7262","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7262","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7262.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7262.patch","merged_at":"2024-10-29T10:55:37Z"},"body":"for the viewer, this way it can use Video(decode=False) and doesn't need decord (which causes segfaults)","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7262\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7262\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7261","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7261\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7261\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7261\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7261","id":2620510840,"node_id":"I_kwDODunzps6cMdJ4","number":7261,"title":"Cannot load the cache when mapping the dataset","user":{"login":"zhangn77","id":43033959,"node_id":"MDQ6VXNlcjQzMDMzOTU5","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/43033959?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/zhangn77","html_url":"https:\/\/github.com\/zhangn77","followers_url":"https:\/\/api.github.com\/users\/zhangn77\/followers","following_url":"https:\/\/api.github.com\/users\/zhangn77\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/zhangn77\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/zhangn77\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/zhangn77\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/zhangn77\/orgs","repos_url":"https:\/\/api.github.com\/users\/zhangn77\/repos","events_url":"https:\/\/api.github.com\/users\/zhangn77\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/zhangn77\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-10-29T08:29:40Z","updated_at":"2025-03-24T13:27:55Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI'm training the flux controlnet. The train_dataset.map() takes long time to finish. However, when I killed one training process and want to restart a new training with the same dataset. I can't reuse the mapped result even I defined the cache dir for the dataset.\r\n\r\nwith accelerator.main_process_first():\r\n from datasets.fingerprint import Hasher\r\n\r\n # fingerprint used by the cache for the other processes to load the result\r\n # details: https:\/\/github.com\/huggingface\/diffusers\/pull\/4038#discussion_r1266078401\r\n new_fingerprint = Hasher.hash(args)\r\n train_dataset = train_dataset.map(\r\n compute_embeddings_fn, batched=True, new_fingerprint=new_fingerprint, batch_size=10,\r\n )\n\n### Steps to reproduce the bug\n\ntrain flux controlnet and start again\r\n\r\n\n\n### Expected behavior\n\nwill not map again\n\n### Environment info\n\nlatest diffusers\r\n\r\n","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7261\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7261\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7260","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7260\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7260\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7260\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7260","id":2620014285,"node_id":"I_kwDODunzps6cKj7N","number":7260,"title":"cache can't cleaned or disabled","user":{"login":"charliedream1","id":15007828,"node_id":"MDQ6VXNlcjE1MDA3ODI4","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/15007828?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/charliedream1","html_url":"https:\/\/github.com\/charliedream1","followers_url":"https:\/\/api.github.com\/users\/charliedream1\/followers","following_url":"https:\/\/api.github.com\/users\/charliedream1\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/charliedream1\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/charliedream1\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/charliedream1\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/charliedream1\/orgs","repos_url":"https:\/\/api.github.com\/users\/charliedream1\/repos","events_url":"https:\/\/api.github.com\/users\/charliedream1\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/charliedream1\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-10-29T03:15:28Z","updated_at":"2024-12-11T09:04:52Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\r\n\r\nI tried following ways, the cache can't be disabled. \r\n\r\nI got 2T data, but I also got more than 2T cache file. I got pressure on storage. I need to diable cache or cleaned immediately after processed. Following ways are all not working, please give some help!\r\n\r\n```python\r\nfrom datasets import disable_caching\r\nfrom transformers import AutoTokenizer\r\ndisable_caching()\r\n\r\ntokenizer = AutoTokenizer.from_pretrained(args.tokenizer_path)\r\ndef tokenization_fn(examples):\r\n column_name = 'text' if 'text' in examples else 'data'\r\n tokenized_inputs = tokenizer(\r\n examples[column_name], return_special_tokens_mask=True, truncation=False,\r\n max_length=tokenizer.model_max_length\r\n )\r\n return tokenized_inputs\r\n\r\ndata = load_dataset('json', data_files=save_local_path, split='train', cache_dir=None)\r\ndata.cleanup_cache_files()\r\nupdated_dataset = data.map(tokenization_fn, load_from_cache_file=False)\r\nupdated_dataset .cleanup_cache_files()\r\n```\r\n\r\n### Expected behavior\r\n\r\nno cache file generated\r\n\r\n### Environment info\r\n\r\nUbuntu 20.04.6 LTS\r\ndatasets 3.0.2","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7260\/reactions","total_count":2,"+1":2,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7260\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7259","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7259\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7259\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7259\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7259","id":2618909241,"node_id":"PR_kwDODunzps6AIEY-","number":7259,"title":"Don't embed videos","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-10-28T16:25:10Z","updated_at":"2024-10-28T16:27:34Z","closed_at":"2024-10-28T16:26:01Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7259","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7259","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7259.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7259.patch","merged_at":"2024-10-28T16:26:01Z"},"body":"don't include video bytes when running download_and_prepare(format=\"parquet\")\r\n\r\nthis also affects push_to_hub which will just upload the local paths of the videos though","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7259\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7259\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7258","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7258\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7258\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7258\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7258","id":2618758399,"node_id":"PR_kwDODunzps6AHlK1","number":7258,"title":"Always set non-null writer batch size","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-10-28T15:26:14Z","updated_at":"2024-10-28T15:28:41Z","closed_at":"2024-10-28T15:26:29Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7258","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7258","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7258.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7258.patch","merged_at":"2024-10-28T15:26:29Z"},"body":"bug introduced in #7230, it was preventing the Viewer limit writes to work","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7258\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7258\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7257","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7257\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7257\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7257\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7257","id":2618602173,"node_id":"PR_kwDODunzps6AHEfy","number":7257,"title":"fix ci for pyarrow 18","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-10-28T14:31:34Z","updated_at":"2024-10-28T14:34:05Z","closed_at":"2024-10-28T14:31:44Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7257","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7257","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7257.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7257.patch","merged_at":"2024-10-28T14:31:44Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7257\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7257\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7256","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7256\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7256\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7256\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7256","id":2618580188,"node_id":"PR_kwDODunzps6AG_qk","number":7256,"title":"Retry all requests timeouts","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-10-28T14:23:16Z","updated_at":"2024-10-28T14:56:28Z","closed_at":"2024-10-28T14:56:26Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7256","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7256","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7256.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7256.patch","merged_at":"2024-10-28T14:56:26Z"},"body":"as reported in https:\/\/github.com\/huggingface\/datasets\/issues\/6843","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7256\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7256\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7255","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7255\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7255\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7255\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7255","id":2618540355,"node_id":"PR_kwDODunzps6AG25R","number":7255,"title":"fix decord import","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-10-28T14:08:19Z","updated_at":"2024-10-28T14:10:43Z","closed_at":"2024-10-28T14:09:14Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7255","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7255","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7255.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7255.patch","merged_at":"2024-10-28T14:09:14Z"},"body":"delay the import until Video() is instantiated + also import duckdb first (otherwise importing duckdb later causes a segfault)","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7255\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7255\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7254","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7254\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7254\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7254\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7254","id":2616174996,"node_id":"I_kwDODunzps6b76mU","number":7254,"title":"mismatch for datatypes when providing `Features` with `Array2D` and user specified `dtype` and using with_format(\"numpy\")","user":{"login":"Akhil-CM","id":97193607,"node_id":"U_kgDOBcsOhw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/97193607?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Akhil-CM","html_url":"https:\/\/github.com\/Akhil-CM","followers_url":"https:\/\/api.github.com\/users\/Akhil-CM\/followers","following_url":"https:\/\/api.github.com\/users\/Akhil-CM\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Akhil-CM\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Akhil-CM\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Akhil-CM\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Akhil-CM\/orgs","repos_url":"https:\/\/api.github.com\/users\/Akhil-CM\/repos","events_url":"https:\/\/api.github.com\/users\/Akhil-CM\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Akhil-CM\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-10-26T22:06:27Z","updated_at":"2024-10-26T22:07:37Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nIf the user provides a `Features` type value to `datasets.Dataset` with members having `Array2D` with a value for `dtype`, it is not respected during `with_format(\"numpy\")` which should return a `np.array` with `dtype` that the user provided for `Array2D`. It seems for floats, it will be set to `float32` and for ints it will be set to `int64`\n\n### Steps to reproduce the bug\n\n```python\r\nimport numpy as np\r\nimport datasets\r\nfrom datasets import Dataset, Features, Array2D\r\n\r\nprint(f\"datasets version: {datasets.__version__}\")\r\n\r\ndata_info = {\r\n \"arr_float\" : \"float64\",\r\n \"arr_int\" : \"int32\"\r\n}\r\n\r\nsample = {key : [np.zeros([4, 5], dtype=dtype)] for key, dtype in data_info.items()}\r\n\r\nfeatures = {key : Array2D(shape=(None, 5), dtype=dtype) for key, dtype in data_info.items()}\r\nfeatures = Features(features)\r\n\r\ndataset = Dataset.from_dict(sample, features=features)\r\n\r\nds = dataset.with_format(\"numpy\")\r\nfor key in features:\r\n print(f\"{key} feature dtype: \", ds.features[key].dtype)\r\n print(f\"{key} dtype:\", ds[key].dtype)\r\n```\r\n\r\nOutput:\r\n```bash\r\ndatasets version: 3.0.2\r\narr_float feature dtype: float64\r\narr_float dtype: float32\r\narr_int feature dtype: int32\r\narr_int dtype: int64\r\n```\n\n### Expected behavior\n\nIt should return a `np.array` with `dtype` that the user provided for the corresponding member in the `Features` type value\n\n### Environment info\n\n- `datasets` version: 3.0.2\r\n- Platform: Linux-6.11.5-arch1-1-x86_64-with-glibc2.40\r\n- Python version: 3.12.7\r\n- `huggingface_hub` version: 0.26.1\r\n- PyArrow version: 16.1.0\r\n- Pandas version: 2.2.2\r\n- `fsspec` version: 2024.5.0","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7254\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7254\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7253","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7253\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7253\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7253\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7253","id":2615862202,"node_id":"I_kwDODunzps6b6uO6","number":7253,"title":"Unable to upload a large dataset zip either from command line or UI","user":{"login":"vakyansh","id":159609047,"node_id":"U_kgDOCYNw1w","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/159609047?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/vakyansh","html_url":"https:\/\/github.com\/vakyansh","followers_url":"https:\/\/api.github.com\/users\/vakyansh\/followers","following_url":"https:\/\/api.github.com\/users\/vakyansh\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/vakyansh\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/vakyansh\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/vakyansh\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/vakyansh\/orgs","repos_url":"https:\/\/api.github.com\/users\/vakyansh\/repos","events_url":"https:\/\/api.github.com\/users\/vakyansh\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/vakyansh\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-10-26T13:17:06Z","updated_at":"2024-10-26T13:17:06Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nUnable to upload a large dataset zip from command line or UI. UI simply says error. I am trying to a upload a tar.gz file of 17GB.\r\n\r\n\"image\"\r\n\"image\"\r\n\n\n### Steps to reproduce the bug\n\nUpload a large file \n\n### Expected behavior\n\nThe file should upload without any issue.\n\n### Environment info\n\nNone","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7253\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7253\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7252","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7252\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7252\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7252\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7252","id":2613795544,"node_id":"PR_kwDODunzps5_41s7","number":7252,"title":"Add IterableDataset.shard()","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-10-25T11:07:12Z","updated_at":"2025-03-21T03:58:43Z","closed_at":"2024-10-25T15:45:22Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7252","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7252","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7252.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7252.patch","merged_at":"2024-10-25T15:45:21Z"},"body":"Will be useful to distribute a dataset across workers (other than pytorch) like spark\r\n\r\nI also renamed `.n_shards` -> `.num_shards` for consistency and kept the old name for backward compatibility. And a few changes in internal functions for consistency as well (rank, world_size -> num_shards, index)\r\n\r\nBreaking change: the new default for `contiguous` in `Dataset.shard()` is `True`, but imo not a big deal since I couldn't find any usage of `contiguous=False` internally (we always do contiguous=True for map-style datasets since its more optimized) or in the wild","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7252\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7252\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7251","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7251\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7251\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7251\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7251","id":2612097435,"node_id":"PR_kwDODunzps5_zPTt","number":7251,"title":"Missing video docs","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-10-24T16:45:12Z","updated_at":"2024-10-24T16:48:29Z","closed_at":"2024-10-24T16:48:27Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7251","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7251","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7251.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7251.patch","merged_at":"2024-10-24T16:48:27Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7251\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7251\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7250","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7250\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7250\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7250\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7250","id":2612041969,"node_id":"PR_kwDODunzps5_zDPS","number":7250,"title":"Basic XML support (mostly copy pasted from text)","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-10-24T16:14:50Z","updated_at":"2024-10-24T16:19:18Z","closed_at":"2024-10-24T16:19:16Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7250","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7250","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7250.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7250.patch","merged_at":"2024-10-24T16:19:16Z"},"body":"enable the viewer for datasets like https:\/\/huggingface.co\/datasets\/FrancophonIA\/e-calm (there will be more and more apparently)\r\n","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7250\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7250\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7249","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7249\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7249\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7249\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7249","id":2610136636,"node_id":"I_kwDODunzps6bk4Y8","number":7249,"title":"How to debugging","user":{"login":"ShDdu","id":49576595,"node_id":"MDQ6VXNlcjQ5NTc2NTk1","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/49576595?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ShDdu","html_url":"https:\/\/github.com\/ShDdu","followers_url":"https:\/\/api.github.com\/users\/ShDdu\/followers","following_url":"https:\/\/api.github.com\/users\/ShDdu\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ShDdu\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ShDdu\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ShDdu\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ShDdu\/orgs","repos_url":"https:\/\/api.github.com\/users\/ShDdu\/repos","events_url":"https:\/\/api.github.com\/users\/ShDdu\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ShDdu\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-10-24T01:03:51Z","updated_at":"2024-10-24T01:03:51Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI wanted to use my own script to handle the processing, and followed the tutorial documentation by rewriting the MyDatasetConfig and MyDatasetBuilder (which contains the _info,_split_generators and _generate_examples methods) classes. Testing with simple data was able to output the results of the processing, but when I wished to do more complex processing, I found that I was unable to debug (even the simple samples were inaccessible). There are no errors reported, and I am able to print the _info,_split_generators and _generate_examples messages, but I am unable to access the breakpoints.\n\n### Steps to reproduce the bug\n\n# my_dataset.py\r\nimport json\r\nimport datasets\r\n\r\n\r\nclass MyDatasetConfig(datasets.BuilderConfig):\r\n def __init__(self, **kwargs):\r\n super(MyDatasetConfig, self).__init__(**kwargs)\r\n\r\n\r\nclass MyDataset(datasets.GeneratorBasedBuilder):\r\n VERSION = datasets.Version(\"1.0.0\")\r\n\r\n BUILDER_CONFIGS = [\r\n MyDatasetConfig(\r\n name=\"default\",\r\n version=VERSION,\r\n description=\"myDATASET\"\r\n ),\r\n ]\r\n\r\n def _info(self):\r\n print(\"info\") # breakpoints\r\n return datasets.DatasetInfo(\r\n description=\"myDATASET\",\r\n features=datasets.Features(\r\n {\r\n \"id\": datasets.Value(\"int32\"),\r\n \"text\": datasets.Value(\"string\"),\r\n \"label\": datasets.ClassLabel(names=[\"negative\", \"positive\"]),\r\n }\r\n ),\r\n supervised_keys=(\"text\", \"label\"),\r\n )\r\n\r\n def _split_generators(self, dl_manager):\r\n \r\n print(\"generate\") # breakpoints\r\n data_file = \"data.json\" \r\n\r\n return [\r\n datasets.SplitGenerator(\r\n name=datasets.Split.TRAIN, gen_kwargs={\"filepath\": data_file}\r\n ),\r\n ]\r\n\r\n def _generate_examples(self, filepath):\r\n print(\"example\") # breakpoints\r\n with open(filepath, encoding=\"utf-8\") as f:\r\n data = json.load(f)\r\n for idx, sample in enumerate(data):\r\n yield idx, {\r\n \"id\": sample[\"id\"],\r\n \"text\": sample[\"text\"],\r\n \"label\": sample[\"label\"],\r\n }\r\n\r\n#main.py\r\nimport os\r\nos.environ[\"TRANSFORMERS_NO_MULTIPROCESSING\"] = \"1\" \r\n\r\nfrom datasets import load_dataset\r\n\r\ndataset = load_dataset(\"my_dataset.py\", split=\"train\", cache_dir=None)\r\n\r\nprint(dataset[:5])\n\n### Expected behavior\n\nPause at breakpoints while running debugging\n\n### Environment info\n\npycharm\r\n","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7249\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7249\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7248","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7248\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7248\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7248\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7248","id":2609926089,"node_id":"I_kwDODunzps6bkE_J","number":7248,"title":"ModuleNotFoundError: No module named 'datasets.tasks'","user":{"login":"shoowadoo","id":93593941,"node_id":"U_kgDOBZQhVQ","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/93593941?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/shoowadoo","html_url":"https:\/\/github.com\/shoowadoo","followers_url":"https:\/\/api.github.com\/users\/shoowadoo\/followers","following_url":"https:\/\/api.github.com\/users\/shoowadoo\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/shoowadoo\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/shoowadoo\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/shoowadoo\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/shoowadoo\/orgs","repos_url":"https:\/\/api.github.com\/users\/shoowadoo\/repos","events_url":"https:\/\/api.github.com\/users\/shoowadoo\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/shoowadoo\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-10-23T21:58:25Z","updated_at":"2024-10-24T17:00:19Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\n---------------------------------------------------------------------------\r\nModuleNotFoundError Traceback (most recent call last)\r\n[](https:\/\/bcb6shpazyu-496ff2e9c6d22116-0-colab.googleusercontent.com\/outputframe.html?vrz=colab_20241022-060119_RC00_688494744#) in ()\r\n----> 1 dataset = load_dataset('knowledgator\/events_classification_biotech')\r\n\r\n11 frames\r\n[\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/load.py](https:\/\/bcb6shpazyu-496ff2e9c6d22116-0-colab.googleusercontent.com\/outputframe.html?vrz=colab_20241022-060119_RC00_688494744#) in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, verification_mode, keep_in_memory, save_infos, revision, token, streaming, num_proc, storage_options, trust_remote_code, **config_kwargs)\r\n 2130 \r\n 2131 # Create a dataset builder\r\n-> 2132 builder_instance = load_dataset_builder(\r\n 2133 path=path,\r\n 2134 name=name,\r\n\r\n[\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/load.py](https:\/\/bcb6shpazyu-496ff2e9c6d22116-0-colab.googleusercontent.com\/outputframe.html?vrz=colab_20241022-060119_RC00_688494744#) in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, token, storage_options, trust_remote_code, _require_default_config_name, **config_kwargs)\r\n 1886 raise ValueError(error_msg)\r\n 1887 \r\n-> 1888 builder_cls = get_dataset_builder_class(dataset_module, dataset_name=dataset_name)\r\n 1889 # Instantiate the dataset builder\r\n 1890 builder_instance: DatasetBuilder = builder_cls(\r\n\r\n[\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/load.py](https:\/\/bcb6shpazyu-496ff2e9c6d22116-0-colab.googleusercontent.com\/outputframe.html?vrz=colab_20241022-060119_RC00_688494744#) in get_dataset_builder_class(dataset_module, dataset_name)\r\n 246 dataset_module.importable_file_path\r\n 247 ) if dataset_module.importable_file_path else nullcontext():\r\n--> 248 builder_cls = import_main_class(dataset_module.module_path)\r\n 249 if dataset_module.builder_configs_parameters.builder_configs:\r\n 250 dataset_name = dataset_name or dataset_module.builder_kwargs.get(\"dataset_name\")\r\n\r\n[\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/load.py](https:\/\/bcb6shpazyu-496ff2e9c6d22116-0-colab.googleusercontent.com\/outputframe.html?vrz=colab_20241022-060119_RC00_688494744#) in import_main_class(module_path)\r\n 167 def import_main_class(module_path) -> Optional[Type[DatasetBuilder]]:\r\n 168 \"\"\"Import a module at module_path and return its main class: a DatasetBuilder\"\"\"\r\n--> 169 module = importlib.import_module(module_path)\r\n 170 # Find the main class in our imported module\r\n 171 module_main_cls = None\r\n\r\n[\/usr\/lib\/python3.10\/importlib\/__init__.py](https:\/\/bcb6shpazyu-496ff2e9c6d22116-0-colab.googleusercontent.com\/outputframe.html?vrz=colab_20241022-060119_RC00_688494744#) in import_module(name, package)\r\n 124 break\r\n 125 level += 1\r\n--> 126 return _bootstrap._gcd_import(name[level:], package, level)\r\n 127 \r\n 128 \r\n\r\n\/usr\/lib\/python3.10\/importlib\/_bootstrap.py in _gcd_import(name, package, level)\r\n\r\n\/usr\/lib\/python3.10\/importlib\/_bootstrap.py in _find_and_load(name, import_)\r\n\r\n\/usr\/lib\/python3.10\/importlib\/_bootstrap.py in _find_and_load_unlocked(name, import_)\r\n\r\n\/usr\/lib\/python3.10\/importlib\/_bootstrap.py in _load_unlocked(spec)\r\n\r\n\/usr\/lib\/python3.10\/importlib\/_bootstrap_external.py in exec_module(self, module)\r\n\r\n\/usr\/lib\/python3.10\/importlib\/_bootstrap.py in _call_with_frames_removed(f, *args, **kwds)\r\n\r\n[~\/.cache\/huggingface\/modules\/datasets_modules\/datasets\/knowledgator--events_classification_biotech\/9c8086d498c3104de3a3c5b6640837e18ccd829dcaca49f1cdffe3eb5c4a6361\/events_classification_biotech.py](https:\/\/bcb6shpazyu-496ff2e9c6d22116-0-colab.googleusercontent.com\/outputframe.html?vrz=colab_20241022-060119_RC00_688494744#) in \r\n 1 import datasets\r\n 2 from datasets import load_dataset\r\n----> 3 from datasets.tasks import TextClassification\r\n 4 \r\n 5 DESCRIPTION = \"\"\"\r\n\r\nModuleNotFoundError: No module named 'datasets.tasks'\r\n\r\n---------------------------------------------------------------------------\r\nNOTE: If your import is failing due to a missing package, you can\r\nmanually install dependencies using either !pip or !apt.\r\n\r\nTo view examples of installing some common dependencies, click the\r\n\"Open Examples\" button below.\r\n---------------------------------------------------------------------------\n\n### Steps to reproduce the bug\n\n!pip install datasets\r\n\r\nfrom datasets import load_dataset\r\n \r\ndataset = load_dataset('knowledgator\/events_classification_biotech') \n\n### Expected behavior\n\nno ModuleNotFoundError \n\n### Environment info\n\ngoogle colab","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7248\/reactions","total_count":1,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7248\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7247","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7247\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7247\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7247\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7247","id":2606230029,"node_id":"I_kwDODunzps6bV-oN","number":7247,"title":"Adding column with dict struction when mapping lead to wrong order","user":{"login":"chchch0109","id":114604968,"node_id":"U_kgDOBtS7qA","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/114604968?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/chchch0109","html_url":"https:\/\/github.com\/chchch0109","followers_url":"https:\/\/api.github.com\/users\/chchch0109\/followers","following_url":"https:\/\/api.github.com\/users\/chchch0109\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/chchch0109\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/chchch0109\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/chchch0109\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/chchch0109\/orgs","repos_url":"https:\/\/api.github.com\/users\/chchch0109\/repos","events_url":"https:\/\/api.github.com\/users\/chchch0109\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/chchch0109\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-10-22T18:55:11Z","updated_at":"2024-10-22T18:55:23Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nin `map()` function, I want to add a new column with a dict structure.\r\n```\r\ndef map_fn(example):\r\n example['text'] = {'user': ..., 'assistant': ...}\r\n return example\r\n```\r\nHowever this leads to a wrong order `{'assistant':..., 'user':...}` in the dataset.\r\nThus I can't concatenate two datasets due to the different feature structures.\r\n[Here](https:\/\/colab.research.google.com\/drive\/1zeaWq9Ith4DKWP_EiBNyLfc8S8I68LyY?usp=sharing) is a minimal reproducible example\r\nThis seems an issue in low level pyarrow library instead of datasets, however, I think datasets should allow concatenate two datasets actually in the same structure.\n\n### Steps to reproduce the bug\n\n[Here](https:\/\/colab.research.google.com\/drive\/1zeaWq9Ith4DKWP_EiBNyLfc8S8I68LyY?usp=sharing) is a minimal reproducible example\n\n### Expected behavior\n\ntwo datasets could be concatenated.\n\n### Environment info\n\nN\/A","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7247\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7247\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7246","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7246\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7246\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7246\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7246","id":2605734447,"node_id":"PR_kwDODunzps5_ehPi","number":7246,"title":"Set dev version","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-10-22T15:04:47Z","updated_at":"2024-10-22T15:07:31Z","closed_at":"2024-10-22T15:04:58Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7246","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7246","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7246.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7246.patch","merged_at":"2024-10-22T15:04:58Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7246\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7246\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7245","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7245\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7245\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7245\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7245","id":2605701235,"node_id":"PR_kwDODunzps5_eaiE","number":7245,"title":"Release: 3.0.2","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-10-22T14:53:34Z","updated_at":"2024-10-22T15:01:50Z","closed_at":"2024-10-22T15:01:47Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7245","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7245","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7245.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7245.patch","merged_at":"2024-10-22T15:01:47Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7245\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7245\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7244","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7244\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7244\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7244\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7244","id":2605461515,"node_id":"PR_kwDODunzps5_dqWP","number":7244,"title":"use huggingface_hub offline mode","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-10-22T13:27:16Z","updated_at":"2024-10-22T14:10:45Z","closed_at":"2024-10-22T14:10:20Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7244","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7244","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7244.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7244.patch","merged_at":"2024-10-22T14:10:20Z"},"body":"and better handling of LocalEntryNotfoundError cc @Wauplin \r\n\r\nfollow up to #7234 ","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7244\/reactions","total_count":1,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7244\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7243","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7243\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7243\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7243\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7243","id":2602853172,"node_id":"I_kwDODunzps6bJGM0","number":7243,"title":"ArrayXD with None as leading dim incompatible with DatasetCardData","user":{"login":"alex-hh","id":5719745,"node_id":"MDQ6VXNlcjU3MTk3NDU=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/5719745?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/alex-hh","html_url":"https:\/\/github.com\/alex-hh","followers_url":"https:\/\/api.github.com\/users\/alex-hh\/followers","following_url":"https:\/\/api.github.com\/users\/alex-hh\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/alex-hh\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/alex-hh\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/alex-hh\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/alex-hh\/orgs","repos_url":"https:\/\/api.github.com\/users\/alex-hh\/repos","events_url":"https:\/\/api.github.com\/users\/alex-hh\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/alex-hh\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2024-10-21T15:08:13Z","updated_at":"2024-10-22T14:18:10Z","closed_at":null,"author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\r\n\r\nCreating a dataset with ArrayXD features leads to errors when downloading from hub due to DatasetCardData removing the Nones\r\n\r\n@lhoestq \r\n\r\n### Steps to reproduce the bug\r\n\r\n```python\r\nimport numpy as np\r\nfrom datasets import Array2D, Dataset, Features, load_dataset\r\n\r\ndef examples_generator():\r\n for i in range(4):\r\n yield {\r\n \"array_1d\": np.zeros((10,1), dtype=\"uint16\"),\r\n \"array_2d\": np.zeros((10, 1), dtype=\"uint16\"),\r\n }\r\n\r\nfeatures = Features(array_1d=Array2D((None,1), \"uint16\"), array_2d=Array2D((None, 1), \"uint16\"))\r\ndataset = Dataset.from_generator(examples_generator, features=features)\r\ndataset.push_to_hub(\"alex-hh\/test_array_1d2d\")\r\nds = load_dataset(\"alex-hh\/test_array_1d2d\")\r\n```\r\n\r\nSource of error appears to be DatasetCardData.to_dict invoking DatasetCardData._remove_none\r\n```python\r\nfrom huggingface_hub import DatasetCardData\r\nfrom datasets.info import DatasetInfosDict\r\n\r\ndataset_card_data = DatasetCardData()\r\nDatasetInfosDict({\"default\": dataset.info.copy()}).to_dataset_card_data(dataset_card_data)\r\nprint(dataset_card_data.to_dict()) # removes Nones in shape\r\n```\r\n\r\n### Expected behavior\r\n\r\nShould be possible to load datasets saved with shape None in leading dimension\r\n\r\n### Environment info\r\n\r\n3.0.2 and latest huggingface_hub","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7243\/reactions","total_count":1,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":1,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7243\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7241","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7241\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7241\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7241\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7241","id":2599899156,"node_id":"I_kwDODunzps6a91AU","number":7241,"title":"`push_to_hub` overwrite argument","user":{"login":"ceferisbarov","id":60838378,"node_id":"MDQ6VXNlcjYwODM4Mzc4","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/60838378?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ceferisbarov","html_url":"https:\/\/github.com\/ceferisbarov","followers_url":"https:\/\/api.github.com\/users\/ceferisbarov\/followers","following_url":"https:\/\/api.github.com\/users\/ceferisbarov\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ceferisbarov\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ceferisbarov\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ceferisbarov\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ceferisbarov\/orgs","repos_url":"https:\/\/api.github.com\/users\/ceferisbarov\/repos","events_url":"https:\/\/api.github.com\/users\/ceferisbarov\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ceferisbarov\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2024-10-20T03:23:26Z","updated_at":"2024-10-24T17:39:08Z","closed_at":"2024-10-24T17:39:08Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nAdd an `overwrite` argument to the `push_to_hub` method.\n\n### Motivation\n\nI want to overwrite a repo without deleting it on Hugging Face. Is this possible? I couldn't find anything in the documentation or tutorials.\n\n### Your contribution\n\nI can create a PR.","closed_by":{"login":"ceferisbarov","id":60838378,"node_id":"MDQ6VXNlcjYwODM4Mzc4","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/60838378?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ceferisbarov","html_url":"https:\/\/github.com\/ceferisbarov","followers_url":"https:\/\/api.github.com\/users\/ceferisbarov\/followers","following_url":"https:\/\/api.github.com\/users\/ceferisbarov\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ceferisbarov\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ceferisbarov\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ceferisbarov\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ceferisbarov\/orgs","repos_url":"https:\/\/api.github.com\/users\/ceferisbarov\/repos","events_url":"https:\/\/api.github.com\/users\/ceferisbarov\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ceferisbarov\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7241\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7241\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7240","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7240\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7240\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7240\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7240","id":2598980027,"node_id":"PR_kwDODunzps5_KxSL","number":7240,"title":"Feature Request: Add functionality to pass split types like train, test in DatasetDict.map","user":{"login":"jp1924","id":93233241,"node_id":"U_kgDOBY6gWQ","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/93233241?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/jp1924","html_url":"https:\/\/github.com\/jp1924","followers_url":"https:\/\/api.github.com\/users\/jp1924\/followers","following_url":"https:\/\/api.github.com\/users\/jp1924\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/jp1924\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/jp1924\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/jp1924\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/jp1924\/orgs","repos_url":"https:\/\/api.github.com\/users\/jp1924\/repos","events_url":"https:\/\/api.github.com\/users\/jp1924\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/jp1924\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-10-19T09:59:12Z","updated_at":"2025-01-06T08:04:08Z","closed_at":"2025-01-06T08:04:08Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7240","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7240","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7240.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7240.patch","merged_at":null},"body":"Hello datasets!\r\n\r\nWe often encounter situations where we need to preprocess data differently depending on split types such as train, valid, and test. \r\n\r\nHowever, while DatasetDict.map has features to pass rank or index, there's no functionality to pass split types. \r\nTherefore, I propose adding a 'with_splits' parameter to DatasetDict, which would allow passing the split type through fn_kwargs.","closed_by":{"login":"jp1924","id":93233241,"node_id":"U_kgDOBY6gWQ","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/93233241?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/jp1924","html_url":"https:\/\/github.com\/jp1924","followers_url":"https:\/\/api.github.com\/users\/jp1924\/followers","following_url":"https:\/\/api.github.com\/users\/jp1924\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/jp1924\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/jp1924\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/jp1924\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/jp1924\/orgs","repos_url":"https:\/\/api.github.com\/users\/jp1924\/repos","events_url":"https:\/\/api.github.com\/users\/jp1924\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/jp1924\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7240\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7240\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7238","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7238\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7238\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7238\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7238","id":2598409993,"node_id":"I_kwDODunzps6a4JcJ","number":7238,"title":"incompatibily issue when using load_dataset with datasets==3.0.1","user":{"login":"jupiterMJM","id":74985234,"node_id":"MDQ6VXNlcjc0OTg1MjM0","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/74985234?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/jupiterMJM","html_url":"https:\/\/github.com\/jupiterMJM","followers_url":"https:\/\/api.github.com\/users\/jupiterMJM\/followers","following_url":"https:\/\/api.github.com\/users\/jupiterMJM\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/jupiterMJM\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/jupiterMJM\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/jupiterMJM\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/jupiterMJM\/orgs","repos_url":"https:\/\/api.github.com\/users\/jupiterMJM\/repos","events_url":"https:\/\/api.github.com\/users\/jupiterMJM\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/jupiterMJM\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-10-18T21:25:23Z","updated_at":"2024-12-09T09:49:32Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nThere is a bug when using load_dataset with dataset version at 3.0.1 .\r\nPlease see below in the \"steps to reproduce the bug\".\r\nTo resolve the bug, I had to downgrade to version 2.21.0\r\nOS: Ubuntu 24 (AWS instance)\r\nPython: same bug under 3.12 and 3.10\r\n\r\n\r\nThe error I had was:\r\nTraceback (most recent call last):\r\n File \"\", line 1, in \r\n File \"\/home\/ubuntu\/miniconda3\/envs\/maxence_env\/lib\/python3.10\/site-packages\/datasets\/load.py\", line 2096, in load_dataset\r\n builder_instance.download_and_prepare(\r\n File \"\/home\/ubuntu\/miniconda3\/envs\/maxence_env\/lib\/python3.10\/site-packages\/datasets\/builder.py\", line 924, in download_and_prepare\r\n self._download_and_prepare(\r\n File \"\/home\/ubuntu\/miniconda3\/envs\/maxence_env\/lib\/python3.10\/site-packages\/datasets\/builder.py\", line 1647, in _download_and_prepare\r\n super()._download_and_prepare(\r\n File \"\/home\/ubuntu\/miniconda3\/envs\/maxence_env\/lib\/python3.10\/site-packages\/datasets\/builder.py\", line 977, in _download_and_prepare\r\n split_generators = self._split_generators(dl_manager, **split_generators_kwargs)\r\n File \"\/home\/ubuntu\/.cache\/huggingface\/modules\/datasets_modules\/datasets\/mozilla-foundation--common_voice_6_0\/cb17afd34f5799f97e8f48398748f83006335b702bd785f9880797838d541b81\/common_voice_6_0.py\", line 159, in _split_generators\r\n archive_path = dl_manager.download(self._get_bundle_url(self.config.name, bundle_url_template))\r\n File \"\/home\/ubuntu\/miniconda3\/envs\/maxence_env\/lib\/python3.10\/site-packages\/datasets\/download\/download_manager.py\", line 150, in download\r\n download_config = self.download_config.copy()\r\n File \"\/home\/ubuntu\/miniconda3\/envs\/maxence_env\/lib\/python3.10\/site-packages\/datasets\/download\/download_config.py\", line 73, in copy\r\n return self.__class__(**{k: copy.deepcopy(v) for k, v in self.__dict__.items()})\r\nTypeError: DownloadConfig.__init__() got an unexpected keyword argument 'ignore_url_params'\n\n### Steps to reproduce the bug\n\n1. install dataset with ```pip install datasets --upgrade```\r\n2. launch python; from datasets import loaad_dataset\r\n3. run load_dataset(\"mozilla-foundation\/common_voice_6_0\")\r\n4. exit python\r\n5. uninstall datasets; then ```pip install datasets==2.21.0```\r\n6. launch python; from datasets import loaad_dataset\r\n7. run load_dataset(\"mozilla-foundation\/common_voice_6_0\")\r\n8. Everything runs great now\n\n### Expected behavior\n\nBe able to download a dataset without error\n\n### Environment info\n\nCopy-and-paste the text below in your GitHub issue.\r\n\r\n- `datasets` version: 3.0.1\r\n- Platform: Linux-6.8.0-1017-aws-x86_64-with-glibc2.39\r\n- Python version: 3.12.4\r\n- `huggingface_hub` version: 0.26.0\r\n- PyArrow version: 17.0.0\r\n- Pandas version: 2.2.3\r\n- `fsspec` version: 2024.6.1","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7238\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7238\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7236","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7236\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7236\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7236\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7236","id":2597358525,"node_id":"PR_kwDODunzps5_GIvw","number":7236,"title":"[MINOR:TYPO] Update arrow_dataset.py","user":{"login":"cakiki","id":3664563,"node_id":"MDQ6VXNlcjM2NjQ1NjM=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/3664563?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/cakiki","html_url":"https:\/\/github.com\/cakiki","followers_url":"https:\/\/api.github.com\/users\/cakiki\/followers","following_url":"https:\/\/api.github.com\/users\/cakiki\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/cakiki\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/cakiki\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/cakiki\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/cakiki\/orgs","repos_url":"https:\/\/api.github.com\/users\/cakiki\/repos","events_url":"https:\/\/api.github.com\/users\/cakiki\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/cakiki\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-10-18T12:10:03Z","updated_at":"2024-10-24T15:06:43Z","closed_at":"2024-10-24T15:06:43Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7236","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7236","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7236.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7236.patch","merged_at":"2024-10-24T15:06:43Z"},"body":"Fix wrong link. \r\n\r\ncsv kwargs docstring link was pointing to pandas json docs.","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7236\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7236\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7234","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7234\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7234\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7234\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7234","id":2594220624,"node_id":"PR_kwDODunzps5-8Z_-","number":7234,"title":"No need for dataset_info","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-10-17T09:54:03Z","updated_at":"2024-10-22T12:30:40Z","closed_at":"2024-10-21T16:44:34Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7234","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7234","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7234.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7234.patch","merged_at":"2024-10-21T16:44:34Z"},"body":"save a useless call to \/api\/datasets\/repo_id","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7234\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7234\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7233","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7233\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7233\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7233\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7233","id":2593903113,"node_id":"I_kwDODunzps6am9IJ","number":7233,"title":"\u6570\u636e\u96c6\u6570\u91cf\u95ee\u9898","user":{"login":"want-well","id":180297268,"node_id":"U_kgDOCr8eNA","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/180297268?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/want-well","html_url":"https:\/\/github.com\/want-well","followers_url":"https:\/\/api.github.com\/users\/want-well\/followers","following_url":"https:\/\/api.github.com\/users\/want-well\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/want-well\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/want-well\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/want-well\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/want-well\/orgs","repos_url":"https:\/\/api.github.com\/users\/want-well\/repos","events_url":"https:\/\/api.github.com\/users\/want-well\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/want-well\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-10-17T07:41:44Z","updated_at":"2024-10-17T07:41:44Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\n\u8fd9\u91cc\u6211\u8fdb\u884c\u5927\u6a21\u578b\u5fae\u8c03\uff0c\u5f53\u6570\u636e\u96c6\u6570\u91cf\u4e3a718\u65f6\uff0c\u6a21\u578b\u53ef\u4ee5\u6b63\u5e38\u5fae\u8c03\uff0c\u4f46\u662f\u5f53\u6211\u6dfb\u52a0\u4e00\u4e2a\u5728\u524d718\u4e2a\u6570\u636e\u96c6\u4e2d\u7684\u6570\u636e\u6216\u8005\u65b0\u589e\u4e00\u4e2a\u6570\u636e\u5c31\u4f1a\u62a5\u9519\n\n### Steps to reproduce the bug\n\n1.\r\n\u8fd9\u91cc\u6211\u7684\u6570\u636e\u96c6\u53ef\u4ee5\u5fae\u8c03\u7684\u6700\u540e\u4e24\u4e2a\u6570\u636e\u96c6\u662f\uff1a\r\n{\r\n \"messages\": [\r\n {\r\n \"role\": \"user\",\r\n \"content\": \"\u5b8c\u6210\u6821\u6b63\u88c5\u7f6e\u8bbe\u8ba1\u540e\u9700\u8981\u8fdb\u884c\u54ea\u4e9b\u5de5\u4f5c\uff1f\"\r\n },\r\n {\r\n \"role\": \"assistant\",\r\n \"content\": \"\u4e00\u65e6\u5b8c\u6210\u6821\u6b63\u88c5\u7f6e\u8bbe\u8ba1\u540e\uff0c\u9700\u8981\u8fdb\u884c\u7cfb\u7edf\u5b9e\u9645\u8c03\u6821\u5de5\u4f5c\uff0c\u6216\u8005\u8fdb\u884cMATLAB\u4eff\u771f\u4ee5\u68c0\u67e5\u7cfb\u7edf\u7684\u65f6\u95f4\u54cd\u5e94\u7279\u6027\u3002\u8fd9\u65f6\uff0c\u9700\u5c06\u7cfb\u7edf\u5efa\u6a21\u65f6\u7701\u7565\u7684\u90e8\u5206\u5c3d\u53ef\u80fd\u52a0\u5165\u7cfb\u7edf\uff0c\u4ee5\u4fdd\u8bc1\u4eff\u771f\u7ed3\u679c\u7684\u903c\u771f\u5ea6\u3002\u5982\u679c\u7531\u4e8e\u7cfb\u7edf\u5404\u79cd\u56fa\u6709\u975e\u7ebf\u6027\u56e0\u7d20\u5f71\u54cd\uff0c\u6216\u8005\u7531\u4e8e\u7cfb\u7edf\u566a\u58f0\u548c\u8d1f\u8f7d\u6548\u5e94\u7b49\u56e0\u7d20\u7684\u5f71\u54cd\uff0c\u4f7f\u5df2\u6821\u6b63\u7cfb\u7edf\u4e0d\u80fd\u6ee1\u8db3\u5168\u90e8\u6027\u80fd\u6307\u6807\u8981\u6c42\uff0c\u5219\u9700\u8981\u9002\u5f53\u8c03\u6574\u6821\u6b63\u88c5\u7f6e\u7684\u5f62\u5f0f\u6216\u53c2\u6570\uff0c\u76f4\u5230\u5df2\u6821\u6b63\u7cfb\u7edf\u6ee1\u8db3\u5168\u90e8\u6027\u80fd\u6307\u6807\u4e3a\u6b62\u3002\"\r\n }\r\n ]\r\n}\r\n\r\n{\r\n \"messages\": [\r\n {\r\n \"role\": \"user\",\r\n \"content\": \"\u4e3a\u4ec0\u4e48\u95ed\u73af\u5e26\u5bbd\u8981\u6c42\u4f1a\u5f71\u54cd\u4e32\u8054\u8d85\u524d\u6821\u6b63\u7684\u6548\u679c\uff1f\"\r\n },\r\n {\r\n \"role\": \"assistant\",\r\n \"content\": \"\u5982\u679c\u5f85\u6821\u6b63\u7cfb\u7edf\u4e0d\u7a33\u5b9a\uff0c\u4e3a\u4e86\u6ee1\u8db3\u76f8\u89d2\u88d5\u5ea6\u7684\u8981\u6c42\uff0c\u8d85\u524d\u7f51\u7edc\u9700\u8981\u63d0\u4f9b\u5f88\u5927\u7684\u76f8\u89d2\u8d85\u524d\u91cf\u3002\u8fd9\u4f1a\u5bfc\u81f4\u8d85\u524d\u7f51\u7edc\u7684a\u503c\u5fc5\u987b\u9009\u5f97\u5f88\u5927\uff0c\u4ece\u800c\u4f7f\u5df2\u6821\u6b63\u7cfb\u7edf\u7684\u5e26\u5bbd\u8fc7\u5927\u3002\u5e26\u5bbd\u8fc7\u5927\u4f1a\u4f7f\u901a\u8fc7\u7cfb\u7edf\u7684\u9ad8\u9891\u566a\u58f0\u7535\u5e73\u53d8\u9ad8\uff0c\u53ef\u80fd\u5bfc\u81f4\u7cfb\u7edf\u5931\u63a7\u3002\u56e0\u6b64\uff0c\u95ed\u73af\u5e26\u5bbd\u7684\u8981\u6c42\u4f1a\u5f71\u54cd\u4e32\u8054\u8d85\u524d\u6821\u6b63\u7684\u6548\u679c\u3002\"\r\n }\r\n ]\r\n}\r\n2.\r\n\u5f53\u6211\u628a\u5012\u6570\u7b2c\u4e8c\u4e2a\u6570\u636e\u96c6\u518d\u6b21\u6dfb\u52a0\u5230\u6570\u636e\u96c6\u4e2d\u65f6\uff0c\u6b64\u65f6\u6211\u7684\u6700\u540e\u4e09\u4e2a\u6570\u636e\u96c6\u662f\r\n{\r\n \"messages\": [\r\n {\r\n \"role\": \"user\",\r\n \"content\": \"\u5b8c\u6210\u6821\u6b63\u88c5\u7f6e\u8bbe\u8ba1\u540e\u9700\u8981\u8fdb\u884c\u54ea\u4e9b\u5de5\u4f5c\uff1f\"\r\n },\r\n {\r\n \"role\": \"assistant\",\r\n \"content\": \"\u4e00\u65e6\u5b8c\u6210\u6821\u6b63\u88c5\u7f6e\u8bbe\u8ba1\u540e\uff0c\u9700\u8981\u8fdb\u884c\u7cfb\u7edf\u5b9e\u9645\u8c03\u6821\u5de5\u4f5c\uff0c\u6216\u8005\u8fdb\u884cMATLAB\u4eff\u771f\u4ee5\u68c0\u67e5\u7cfb\u7edf\u7684\u65f6\u95f4\u54cd\u5e94\u7279\u6027\u3002\u8fd9\u65f6\uff0c\u9700\u5c06\u7cfb\u7edf\u5efa\u6a21\u65f6\u7701\u7565\u7684\u90e8\u5206\u5c3d\u53ef\u80fd\u52a0\u5165\u7cfb\u7edf\uff0c\u4ee5\u4fdd\u8bc1\u4eff\u771f\u7ed3\u679c\u7684\u903c\u771f\u5ea6\u3002\u5982\u679c\u7531\u4e8e\u7cfb\u7edf\u5404\u79cd\u56fa\u6709\u975e\u7ebf\u6027\u56e0\u7d20\u5f71\u54cd\uff0c\u6216\u8005\u7531\u4e8e\u7cfb\u7edf\u566a\u58f0\u548c\u8d1f\u8f7d\u6548\u5e94\u7b49\u56e0\u7d20\u7684\u5f71\u54cd\uff0c\u4f7f\u5df2\u6821\u6b63\u7cfb\u7edf\u4e0d\u80fd\u6ee1\u8db3\u5168\u90e8\u6027\u80fd\u6307\u6807\u8981\u6c42\uff0c\u5219\u9700\u8981\u9002\u5f53\u8c03\u6574\u6821\u6b63\u88c5\u7f6e\u7684\u5f62\u5f0f\u6216\u53c2\u6570\uff0c\u76f4\u5230\u5df2\u6821\u6b63\u7cfb\u7edf\u6ee1\u8db3\u5168\u90e8\u6027\u80fd\u6307\u6807\u4e3a\u6b62\u3002\"\r\n }\r\n ]\r\n}\r\n\r\n{\r\n \"messages\": [\r\n {\r\n \"role\": \"user\",\r\n \"content\": \"\u4e3a\u4ec0\u4e48\u95ed\u73af\u5e26\u5bbd\u8981\u6c42\u4f1a\u5f71\u54cd\u4e32\u8054\u8d85\u524d\u6821\u6b63\u7684\u6548\u679c\uff1f\"\r\n },\r\n {\r\n \"role\": \"assistant\",\r\n \"content\": \"\u5982\u679c\u5f85\u6821\u6b63\u7cfb\u7edf\u4e0d\u7a33\u5b9a\uff0c\u4e3a\u4e86\u6ee1\u8db3\u76f8\u89d2\u88d5\u5ea6\u7684\u8981\u6c42\uff0c\u8d85\u524d\u7f51\u7edc\u9700\u8981\u63d0\u4f9b\u5f88\u5927\u7684\u76f8\u89d2\u8d85\u524d\u91cf\u3002\u8fd9\u4f1a\u5bfc\u81f4\u8d85\u524d\u7f51\u7edc\u7684a\u503c\u5fc5\u987b\u9009\u5f97\u5f88\u5927\uff0c\u4ece\u800c\u4f7f\u5df2\u6821\u6b63\u7cfb\u7edf\u7684\u5e26\u5bbd\u8fc7\u5927\u3002\u5e26\u5bbd\u8fc7\u5927\u4f1a\u4f7f\u901a\u8fc7\u7cfb\u7edf\u7684\u9ad8\u9891\u566a\u58f0\u7535\u5e73\u53d8\u9ad8\uff0c\u53ef\u80fd\u5bfc\u81f4\u7cfb\u7edf\u5931\u63a7\u3002\u56e0\u6b64\uff0c\u95ed\u73af\u5e26\u5bbd\u7684\u8981\u6c42\u4f1a\u5f71\u54cd\u4e32\u8054\u8d85\u524d\u6821\u6b63\u7684\u6548\u679c\u3002\"\r\n }\r\n ]\r\n}\r\n\r\n{\r\n \"messages\": [\r\n {\r\n \"role\": \"user\",\r\n \"content\": \"\u5b8c\u6210\u6821\u6b63\u88c5\u7f6e\u8bbe\u8ba1\u540e\u9700\u8981\u8fdb\u884c\u54ea\u4e9b\u5de5\u4f5c\uff1f\"\r\n },\r\n {\r\n \"role\": \"assistant\",\r\n \"content\": \"\u4e00\u65e6\u5b8c\u6210\u6821\u6b63\u88c5\u7f6e\u8bbe\u8ba1\u540e\uff0c\u9700\u8981\u8fdb\u884c\u7cfb\u7edf\u5b9e\u9645\u8c03\u6821\u5de5\u4f5c\uff0c\u6216\u8005\u8fdb\u884cMATLAB\u4eff\u771f\u4ee5\u68c0\u67e5\u7cfb\u7edf\u7684\u65f6\u95f4\u54cd\u5e94\u7279\u6027\u3002\u8fd9\u65f6\uff0c\u9700\u5c06\u7cfb\u7edf\u5efa\u6a21\u65f6\u7701\u7565\u7684\u90e8\u5206\u5c3d\u53ef\u80fd\u52a0\u5165\u7cfb\u7edf\uff0c\u4ee5\u4fdd\u8bc1\u4eff\u771f\u7ed3\u679c\u7684\u903c\u771f\u5ea6\u3002\u5982\u679c\u7531\u4e8e\u7cfb\u7edf\u5404\u79cd\u56fa\u6709\u975e\u7ebf\u6027\u56e0\u7d20\u5f71\u54cd\uff0c\u6216\u8005\u7531\u4e8e\u7cfb\u7edf\u566a\u58f0\u548c\u8d1f\u8f7d\u6548\u5e94\u7b49\u56e0\u7d20\u7684\u5f71\u54cd\uff0c\u4f7f\u5df2\u6821\u6b63\u7cfb\u7edf\u4e0d\u80fd\u6ee1\u8db3\u5168\u90e8\u6027\u80fd\u6307\u6807\u8981\u6c42\uff0c\u5219\u9700\u8981\u9002\u5f53\u8c03\u6574\u6821\u6b63\u88c5\u7f6e\u7684\u5f62\u5f0f\u6216\u53c2\u6570\uff0c\u76f4\u5230\u5df2\u6821\u6b63\u7cfb\u7edf\u6ee1\u8db3\u5168\u90e8\u6027\u80fd\u6307\u6807\u4e3a\u6b62\u3002\"\r\n }\r\n ]\r\n}\r\n\u8fd9\u65f6\u7cfb\u7edf\u4f1a\u663e\u793abug\uff1a\r\nroot@autodl-container-027f4cad3d-6baf4e64:~\/autodl-tmp# python GLM-4\/finetune_demo\/finetune.py datasets\/ ZhipuAI\/glm-4-9b-chat GLM-4\/finetune_demo\/configs\/lora.yaml\r\nLoading checkpoint shards: 100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 10\/10 [00:02<00:00, 4.04it\/s]\r\nThe installed version of bitsandbytes was compiled without GPU support. 8-bit optimizers, 8-bit multiplication, and GPU quantization are unavailable.\r\ntrainable params: 2,785,280 || all params: 9,402,736,640 || trainable%: 0.0296\r\nGenerating train split: 0 examples [00:00, ? examples\/s]Failed to load JSON from file '\/root\/autodl-tmp\/datasets\/train.jsonl' with error : JSON parse error: Missing a name for object member. in row 718\r\nGenerating train split: 0 examples [00:00, ? examples\/s]\r\n\u256d\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 Traceback (most recent call last) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256e\r\n\u2502 \/root\/miniconda3\/lib\/python3.10\/site-packages\/datasets\/packaged_modules\/json\/json.py:153 in _generate_tables \u2502\r\n\u2502 \u2502\r\n\u2502 150 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 with open( \u2502\r\n\u2502 151 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 file, encoding=self.config.encoding, errors=self.con \u2502\r\n\u2502 152 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 ) as f: \u2502\r\n\u2502 \u2771 153 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 df = pd.read_json(f, dtype_backend=\"pyarrow\") \u2502\r\n\u2502 154 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 except ValueError: \u2502\r\n\u2502 155 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 logger.error(f\"Failed to load JSON from file '{file}' wi \u2502\r\n\u2502 156 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 raise e \u2502\r\n\u2502 \u2502\r\n\u2502 \/root\/miniconda3\/lib\/python3.10\/site-packages\/pandas\/io\/json\/_json.py:815 in read_json \u2502\r\n\u2502 \u2502\r\n\u2502 812 \u2502 if chunksize: \u2502\r\n\u2502 813 \u2502 \u2502 return json_reader \u2502\r\n\u2502 814 \u2502 else: \u2502\r\n\u2502 \u2771 815 \u2502 \u2502 return json_reader.read() \u2502\r\n\u2502 816 \u2502\r\n\u2502 817 \u2502\r\n\u2502 818 class JsonReader(abc.Iterator, Generic[FrameSeriesStrT]): \u2502\r\n\u2502 \u2502\r\n\u2502 \/root\/miniconda3\/lib\/python3.10\/site-packages\/pandas\/io\/json\/_json.py:1025 in read \u2502\r\n\u2502 \u2502\r\n\u2502 1022 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 data_lines = data.split(\"\\n\") \u2502\r\n\u2502 1023 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 obj = self._get_object_parser(self._combine_lines(data_lines)) \u2502\r\n\u2502 1024 \u2502 \u2502 \u2502 \u2502 else: \u2502\r\n\u2502 \u2771 1025 \u2502 \u2502 \u2502 \u2502 \u2502 obj = self._get_object_parser(self.data) \u2502\r\n\u2502 1026 \u2502 \u2502 \u2502 \u2502 if self.dtype_backend is not lib.no_default: \u2502\r\n\u2502 1027 \u2502 \u2502 \u2502 \u2502 \u2502 return obj.convert_dtypes( \u2502\r\n\u2502 1028 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 infer_objects=False, dtype_backend=self.dtype_backend \u2502\r\n\u2502 \u2502\r\n\u2502 \/root\/miniconda3\/lib\/python3.10\/site-packages\/pandas\/io\/json\/_json.py:1051 in _get_object_parser \u2502\r\n\u2502 \u2502\r\n\u2502 1048 \u2502 \u2502 } \u2502\r\n\u2502 1049 \u2502 \u2502 obj = None \u2502\r\n\u2502 1050 \u2502 \u2502 if typ == \"frame\": \u2502\r\n\u2502 \u2771 1051 \u2502 \u2502 \u2502 obj = FrameParser(json, **kwargs).parse() \u2502\r\n\u2502 1052 \u2502 \u2502 \u2502\r\n\u2502 1053 \u2502 \u2502 if typ == \"series\" or obj is None: \u2502\r\n\u2502 1054 \u2502 \u2502 \u2502 if not isinstance(dtype, bool): \u2502\r\n\u2502 \u2502\r\n\u2502 \/root\/miniconda3\/lib\/python3.10\/site-packages\/pandas\/io\/json\/_json.py:1187 in parse \u2502\r\n\u2502 \u2502\r\n\u2502 1184 \u2502 \u2502\r\n\u2502 1185 \u2502 @final \u2502\r\n\u2502 1186 \u2502 def parse(self): \u2502\r\n\u2502 \u2771 1187 \u2502 \u2502 self._parse() \u2502\r\n\u2502 1188 \u2502 \u2502 \u2502\r\n\u2502 1189 \u2502 \u2502 if self.obj is None: \u2502\r\n\u2502 1190 \u2502 \u2502 \u2502 return None \u2502\r\n\u2502 \u2502\r\n\u2502 \/root\/miniconda3\/lib\/python3.10\/site-packages\/pandas\/io\/json\/_json.py:1403 in _parse \u2502\r\n\u2502 \u2502\r\n\u2502 1400 \u2502 \u2502 \u2502\r\n\u2502 1401 \u2502 \u2502 if orient == \"columns\": \u2502\r\n\u2502 1402 \u2502 \u2502 \u2502 self.obj = DataFrame( \u2502\r\n\u2502 \u2771 1403 \u2502 \u2502 \u2502 \u2502 ujson_loads(json, precise_float=self.precise_float), dtype=None \u2502\r\n\u2502 1404 \u2502 \u2502 \u2502 ) \u2502\r\n\u2502 1405 \u2502 \u2502 elif orient == \"split\": \u2502\r\n\u2502 1406 \u2502 \u2502 \u2502 decoded = { \u2502\r\n\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f\r\nValueError: Trailing data\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\n\u256d\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 Traceback (most recent call last) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256e\r\n\u2502 \/root\/miniconda3\/lib\/python3.10\/site-packages\/datasets\/builder.py:1997 in _prepare_split_single \u2502\r\n\u2502 \u2502\r\n\u2502 1994 \u2502 \u2502 \u2502 ) \u2502\r\n\u2502 1995 \u2502 \u2502 \u2502 try: \u2502\r\n\u2502 1996 \u2502 \u2502 \u2502 \u2502 _time = time.time() \u2502\r\n\u2502 \u2771 1997 \u2502 \u2502 \u2502 \u2502 for _, table in generator: \u2502\r\n\u2502 1998 \u2502 \u2502 \u2502 \u2502 \u2502 if max_shard_size is not None and writer._num_bytes > max_shard_size \u2502\r\n\u2502 1999 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 num_examples, num_bytes = writer.finalize() \u2502\r\n\u2502 2000 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 writer.close() \u2502\r\n\u2502 \u2502\r\n\u2502 \/root\/miniconda3\/lib\/python3.10\/site-packages\/datasets\/packaged_modules\/json\/json.py:156 in _generate_tables \u2502\r\n\u2502 \u2502\r\n\u2502 153 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 df = pd.read_json(f, dtype_backend=\"pyarrow\") \u2502\r\n\u2502 154 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 except ValueError: \u2502\r\n\u2502 155 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 logger.error(f\"Failed to load JSON from file '{file}' wi \u2502\r\n\u2502 \u2771 156 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 raise e \u2502\r\n\u2502 157 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 if df.columns.tolist() == [0]: \u2502\r\n\u2502 158 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 df.columns = list(self.config.features) if self.config.f \u2502\r\n\u2502 159 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 try: \u2502\r\n\u2502 \u2502\r\n\u2502 \/root\/miniconda3\/lib\/python3.10\/site-packages\/datasets\/packaged_modules\/json\/json.py:130 in _generate_tables \u2502\r\n\u2502 \u2502\r\n\u2502 127 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 try: \u2502\r\n\u2502 128 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 while True: \u2502\r\n\u2502 129 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 try: \u2502\r\n\u2502 \u2771 130 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 pa_table = paj.read_json( \u2502\r\n\u2502 131 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 io.BytesIO(batch), read_options=paj.ReadOptions( \u2502\r\n\u2502 132 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 ) \u2502\r\n\u2502 133 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 break \u2502\r\n\u2502 \u2502\r\n\u2502 in pyarrow._json.read_json:308 \u2502\r\n\u2502 \u2502\r\n\u2502 in pyarrow.lib.pyarrow_internal_check_status:154 \u2502\r\n\u2502 \u2502\r\n\u2502 in pyarrow.lib.check_status:91 \u2502\r\n\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f\r\nArrowInvalid: JSON parse error: Missing a name for object member. in row 718\r\n\r\nThe above exception was the direct cause of the following exception:\r\n\r\n\u256d\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 Traceback (most recent call last) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256e\r\n\u2502 \/root\/autodl-tmp\/GLM-4\/finetune_demo\/finetune.py:406 in main \u2502\r\n\u2502 \u2502\r\n\u2502 403 ): \u2502\r\n\u2502 404 \u2502 ft_config = FinetuningConfig.from_file(config_file) \u2502\r\n\u2502 405 \u2502 tokenizer, model = load_tokenizer_and_model(model_dir, peft_config=ft_config.peft_co \u2502\r\n\u2502 \u2771 406 \u2502 data_manager = DataManager(data_dir, ft_config.data_config) \u2502\r\n\u2502 407 \u2502 \u2502\r\n\u2502 408 \u2502 train_dataset = data_manager.get_dataset( \u2502\r\n\u2502 409 \u2502 \u2502 Split.TRAIN, \u2502\r\n\u2502 \u2502\r\n\u2502 \/root\/autodl-tmp\/GLM-4\/finetune_demo\/finetune.py:204 in __init__ \u2502\r\n\u2502 \u2502\r\n\u2502 201 \u2502 def __init__(self, data_dir: str, data_config: DataConfig): \u2502\r\n\u2502 202 \u2502 \u2502 self._num_proc = data_config.num_proc \u2502\r\n\u2502 203 \u2502 \u2502 \u2502\r\n\u2502 \u2771 204 \u2502 \u2502 self._dataset_dct = _load_datasets( \u2502\r\n\u2502 205 \u2502 \u2502 \u2502 data_dir, \u2502\r\n\u2502 206 \u2502 \u2502 \u2502 data_config.data_format, \u2502\r\n\u2502 207 \u2502 \u2502 \u2502 data_config.data_files, \u2502\r\n\u2502 \u2502\r\n\u2502 \/root\/autodl-tmp\/GLM-4\/finetune_demo\/finetune.py:189 in _load_datasets \u2502\r\n\u2502 \u2502\r\n\u2502 186 \u2502 \u2502 num_proc: Optional[int], \u2502\r\n\u2502 187 ) -> DatasetDict: \u2502\r\n\u2502 188 \u2502 if data_format == '.jsonl': \u2502\r\n\u2502 \u2771 189 \u2502 \u2502 dataset_dct = load_dataset( \u2502\r\n\u2502 190 \u2502 \u2502 \u2502 data_dir, \u2502\r\n\u2502 191 \u2502 \u2502 \u2502 data_files=data_files, \u2502\r\n\u2502 192 \u2502 \u2502 \u2502 split=None, \u2502\r\n\u2502 \u2502\r\n\u2502 \/root\/miniconda3\/lib\/python3.10\/site-packages\/datasets\/load.py:2616 in load_dataset \u2502\r\n\u2502 \u2502\r\n\u2502 2613 \u2502 \u2502 return builder_instance.as_streaming_dataset(split=split) \u2502\r\n\u2502 2614 \u2502 \u2502\r\n\u2502 2615 \u2502 # Download and prepare data \u2502\r\n\u2502 \u2771 2616 \u2502 builder_instance.download_and_prepare( \u2502\r\n\u2502 2617 \u2502 \u2502 download_config=download_config, \u2502\r\n\u2502 2618 \u2502 \u2502 download_mode=download_mode, \u2502\r\n\u2502 2619 \u2502 \u2502 verification_mode=verification_mode, \u2502\r\n\u2502 \u2502\r\n\u2502 \/root\/miniconda3\/lib\/python3.10\/site-packages\/datasets\/builder.py:1029 in download_and_prepare \u2502\r\n\u2502 \u2502\r\n\u2502 1026 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 prepare_split_kwargs[\"max_shard_size\"] = max_shard_size \u2502\r\n\u2502 1027 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 if num_proc is not None: \u2502\r\n\u2502 1028 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 prepare_split_kwargs[\"num_proc\"] = num_proc \u2502\r\n\u2502 \u2771 1029 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 self._download_and_prepare( \u2502\r\n\u2502 1030 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 dl_manager=dl_manager, \u2502\r\n\u2502 1031 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 verification_mode=verification_mode, \u2502\r\n\u2502 1032 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 **prepare_split_kwargs, \u2502\r\n\u2502 \u2502\r\n\u2502 \/root\/miniconda3\/lib\/python3.10\/site-packages\/datasets\/builder.py:1124 in _download_and_prepare \u2502\r\n\u2502 \u2502\r\n\u2502 1121 \u2502 \u2502 \u2502 \u2502\r\n\u2502 1122 \u2502 \u2502 \u2502 try: \u2502\r\n\u2502 1123 \u2502 \u2502 \u2502 \u2502 # Prepare split will record examples associated to the split \u2502\r\n\u2502 \u2771 1124 \u2502 \u2502 \u2502 \u2502 self._prepare_split(split_generator, **prepare_split_kwargs) \u2502\r\n\u2502 1125 \u2502 \u2502 \u2502 except OSError as e: \u2502\r\n\u2502 1126 \u2502 \u2502 \u2502 \u2502 raise OSError( \u2502\r\n\u2502 1127 \u2502 \u2502 \u2502 \u2502 \u2502 \"Cannot find data file. \" \u2502\r\n\u2502 \u2502\r\n\u2502 \/root\/miniconda3\/lib\/python3.10\/site-packages\/datasets\/builder.py:1884 in _prepare_split \u2502\r\n\u2502 \u2502\r\n\u2502 1881 \u2502 \u2502 \u2502 gen_kwargs = split_generator.gen_kwargs \u2502\r\n\u2502 1882 \u2502 \u2502 \u2502 job_id = 0 \u2502\r\n\u2502 1883 \u2502 \u2502 \u2502 with pbar: \u2502\r\n\u2502 \u2771 1884 \u2502 \u2502 \u2502 \u2502 for job_id, done, content in self._prepare_split_single( \u2502\r\n\u2502 1885 \u2502 \u2502 \u2502 \u2502 \u2502 gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args \u2502\r\n\u2502 1886 \u2502 \u2502 \u2502 \u2502 ): \u2502\r\n\u2502 1887 \u2502 \u2502 \u2502 \u2502 \u2502 if done: \u2502\r\n\u2502 \u2502\r\n\u2502 \/root\/miniconda3\/lib\/python3.10\/site-packages\/datasets\/builder.py:2040 in _prepare_split_single \u2502\r\n\u2502 \u2502\r\n\u2502 2037 \u2502 \u2502 \u2502 \u2502 e = e.__context__ \u2502\r\n\u2502 2038 \u2502 \u2502 \u2502 if isinstance(e, DatasetGenerationError): \u2502\r\n\u2502 2039 \u2502 \u2502 \u2502 \u2502 raise \u2502\r\n\u2502 \u2771 2040 \u2502 \u2502 \u2502 raise DatasetGenerationError(\"An error occurred while generating the dataset \u2502\r\n\u2502 2041 \u2502 \u2502 \u2502\r\n\u2502 2042 \u2502 \u2502 yield job_id, True, (total_num_examples, total_num_bytes, writer._features, num_ \u2502\r\n\u2502 2043 \u2502\r\n\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f\r\nDatasetGenerationError: An error occurred while generating the dataset\r\n3.\u8bf7\u95ee\u662f\u5426\u53ef\u4ee5\u5e2e\u6211\u89e3\u51b3\r\n\n\n### Expected behavior\n\n\u5e0c\u671b\u95ee\u9898\u53ef\u4ee5\u5f97\u5230\u89e3\u51b3\n\n### Environment info\n\nCopy-and-paste the text below in your GitHub issue.\r\n\r\n- `datasets` version: 2.20.0\r\n- Platform: Linux-4.19.90-2107.6.0.0192.8.oe1.bclinux.x86_64-x86_64-with-glibc2.35\r\n- Python version: 3.10.8\r\n- `huggingface_hub` version: 0.24.6\r\n- PyArrow version: 16.1.0\r\n- Pandas version: 2.2.2\r\n- `fsspec` version: 2023.12.2","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7233\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7233\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7232","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7232\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7232\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7232\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7232","id":2593720548,"node_id":"PR_kwDODunzps5-62rY","number":7232,"title":"(Super tiny doc update) Mention to_polars","user":{"login":"fzyzcjy","id":5236035,"node_id":"MDQ6VXNlcjUyMzYwMzU=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/5236035?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/fzyzcjy","html_url":"https:\/\/github.com\/fzyzcjy","followers_url":"https:\/\/api.github.com\/users\/fzyzcjy\/followers","following_url":"https:\/\/api.github.com\/users\/fzyzcjy\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/fzyzcjy\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/fzyzcjy\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/fzyzcjy\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/fzyzcjy\/orgs","repos_url":"https:\/\/api.github.com\/users\/fzyzcjy\/repos","events_url":"https:\/\/api.github.com\/users\/fzyzcjy\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/fzyzcjy\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-10-17T06:08:53Z","updated_at":"2024-10-24T23:11:05Z","closed_at":"2024-10-24T15:06:16Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7232","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7232","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7232.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7232.patch","merged_at":"2024-10-24T15:06:16Z"},"body":"polars is also quite popular now, thus this tiny update can tell users polars is supported","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7232\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7232\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7231","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7231\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7231\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7231\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7231","id":2592011737,"node_id":"PR_kwDODunzps5-1jP8","number":7231,"title":"Fix typo in image dataset docs","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-10-16T14:05:46Z","updated_at":"2024-10-16T17:06:21Z","closed_at":"2024-10-16T17:06:19Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7231","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7231","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7231.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7231.patch","merged_at":"2024-10-16T17:06:19Z"},"body":"Fix typo in image dataset docs.\r\n\r\nTypo reported by @datavistics.","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7231\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7231\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7230","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7230\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7230\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7230\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7230","id":2589531942,"node_id":"PR_kwDODunzps5-ttUV","number":7230,"title":"Video support","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-10-15T18:17:29Z","updated_at":"2024-10-24T16:39:51Z","closed_at":"2024-10-24T16:39:50Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7230","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7230","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7230.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7230.patch","merged_at":"2024-10-24T16:39:50Z"},"body":"(wip and experimental)\r\n\r\nadding the `Video` type based on `VideoReader` from `decord`\r\n\r\n```python\r\n>>>from datasets import load_dataset\r\n>>> ds = load_dataset(\"path\/to\/videos\", split=\"train\").with_format(\"torch\")\r\n>>> print(ds[0][\"video\"])\r\n\r\n>>> print(ds[0][\"video\"][0])\r\ntensor([[[73, 73, 73],\r\n [73, 73, 73],\r\n [73, 73, 73],\r\n ...,\r\n [23, 23, 23],\r\n [23, 23, 23],\r\n [23, 23, 23]]], dtype=torch.uint8)\r\n```\r\n\r\nthe storage is the same as for audio and images: `{\"path\": pa.string(), \"bytes\": pa.binary()}` and I did a small to keep the hf:\/\/ URL in the \"path\" field if possible, this way the viewer can link to fiels on the hub if possible","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7230\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7230\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7229","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7229\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7229\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7229\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7229","id":2588847398,"node_id":"PR_kwDODunzps5-rgrx","number":7229,"title":"handle config_name=None in push_to_hub","user":{"login":"alex-hh","id":5719745,"node_id":"MDQ6VXNlcjU3MTk3NDU=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/5719745?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/alex-hh","html_url":"https:\/\/github.com\/alex-hh","followers_url":"https:\/\/api.github.com\/users\/alex-hh\/followers","following_url":"https:\/\/api.github.com\/users\/alex-hh\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/alex-hh\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/alex-hh\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/alex-hh\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/alex-hh\/orgs","repos_url":"https:\/\/api.github.com\/users\/alex-hh\/repos","events_url":"https:\/\/api.github.com\/users\/alex-hh\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/alex-hh\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-10-15T13:48:57Z","updated_at":"2024-10-24T17:51:52Z","closed_at":"2024-10-24T17:51:52Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7229","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7229","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7229.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7229.patch","merged_at":null},"body":"This caught me out - thought it might be better to explicitly handle None?","closed_by":{"login":"alex-hh","id":5719745,"node_id":"MDQ6VXNlcjU3MTk3NDU=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/5719745?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/alex-hh","html_url":"https:\/\/github.com\/alex-hh","followers_url":"https:\/\/api.github.com\/users\/alex-hh\/followers","following_url":"https:\/\/api.github.com\/users\/alex-hh\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/alex-hh\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/alex-hh\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/alex-hh\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/alex-hh\/orgs","repos_url":"https:\/\/api.github.com\/users\/alex-hh\/repos","events_url":"https:\/\/api.github.com\/users\/alex-hh\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/alex-hh\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7229\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7229\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7228","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7228\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7228\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7228\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7228","id":2587310094,"node_id":"I_kwDODunzps6aNzgO","number":7228,"title":"Composite (multi-column) features","user":{"login":"alex-hh","id":5719745,"node_id":"MDQ6VXNlcjU3MTk3NDU=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/5719745?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/alex-hh","html_url":"https:\/\/github.com\/alex-hh","followers_url":"https:\/\/api.github.com\/users\/alex-hh\/followers","following_url":"https:\/\/api.github.com\/users\/alex-hh\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/alex-hh\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/alex-hh\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/alex-hh\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/alex-hh\/orgs","repos_url":"https:\/\/api.github.com\/users\/alex-hh\/repos","events_url":"https:\/\/api.github.com\/users\/alex-hh\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/alex-hh\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-10-14T23:59:19Z","updated_at":"2024-10-15T11:17:15Z","closed_at":null,"author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\r\n\r\nStructured data types (graphs etc.) might often be most efficiently stored as multiple columns, which then need to be combined during feature decoding\r\n\r\nAlthough it is currently possible to nest features as structs, my impression is that in particular when dealing with e.g. a feature composed of multiple numpy array \/ ArrayXD's, it would be more efficient to store each ArrayXD as a separate column (though I'm not sure by how much)\r\n\r\nPerhaps specification \/ implementation could be supported by something like:\r\n\r\n```\r\nfeatures=Features(**{(\"feature0\", \"feature1\")=Features(feature0=Array2D((None,10), dtype=\"float32\"), feature1=Array2D((None,10), dtype=\"float32\"))\r\n```\r\n\r\n### Motivation\r\n\r\nDefining efficient composite feature types based on numpy arrays for representing data such as graphs with multiple node and edge attributes is currently challenging.\r\n\r\n### Your contribution\r\n\r\nPossibly able to contribute","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7228\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7228\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7227","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7227\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7227\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7227\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7227","id":2587048312,"node_id":"PR_kwDODunzps5-l-OE","number":7227,"title":"fast array extraction","user":{"login":"alex-hh","id":5719745,"node_id":"MDQ6VXNlcjU3MTk3NDU=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/5719745?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/alex-hh","html_url":"https:\/\/github.com\/alex-hh","followers_url":"https:\/\/api.github.com\/users\/alex-hh\/followers","following_url":"https:\/\/api.github.com\/users\/alex-hh\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/alex-hh\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/alex-hh\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/alex-hh\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/alex-hh\/orgs","repos_url":"https:\/\/api.github.com\/users\/alex-hh\/repos","events_url":"https:\/\/api.github.com\/users\/alex-hh\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/alex-hh\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2024-10-14T20:51:32Z","updated_at":"2025-01-28T09:39:26Z","closed_at":null,"author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7227","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7227","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7227.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7227.patch","merged_at":null},"body":"Implements #7210 using method suggested in https:\/\/github.com\/huggingface\/datasets\/pull\/7207#issuecomment-2411789307\r\n\r\n\r\n```python\r\nimport numpy as np\r\nfrom datasets import Dataset, Features, Array3D\r\nfeatures=Features(**{\"array0\": Array3D((None, 10, 10), dtype=\"float32\"), \"array1\": Array3D((None,10,10), dtype=\"float32\")})\r\ndataset = Dataset.from_dict({f\"array{i}\": [np.zeros((x,10,10), dtype=np.float32) for x in [2000,1000]*25] for i in range(2)}, features=features)\r\n```\r\n~0.02 s vs 0.9s on main\r\n\r\n```python\r\nds = dataset.to_iterable_dataset()\r\nt0 = time.time()\r\nfor ex in ds:\r\n pass\r\nt1 = time.time()\r\n```\r\n< 0.01 s vs 1.3 s on main\r\n\r\n@lhoestq I can see this breaks a bunch of array-related tests but can update the test cases if you would support making this change?\r\n\r\nI also added an Array1D feature which will always be decoded into a numpy array and likewise improves extraction performance:\r\n\r\n```python\r\nfrom datasets import Dataset, Features, Array1D, Sequence, Value\r\narray_features=Features(**{\"array0\": Array1D((None,), dtype=\"float32\"), \"array1\": Array1D((None,), dtype=\"float32\")})\r\nsequence_features=Features(**{\"array0\": Sequence(feature=Value(\"float32\"), length=-1), \"array1\": Sequence(feature=Value(\"float32\"), length=-1)})\r\narray_dataset = Dataset.from_dict({f\"array{i}\": [np.zeros((x,), dtype=np.float32) for x in [20000,10000]*25] for i in range(2)}, features=array_features)\r\nsequence_dataset = Dataset.from_dict({f\"array{i}\": [np.zeros((x,), dtype=np.float32) for x in [20000,10000]*25] for i in range(2)}, features=sequence_features)\r\n\r\n\r\n```python\r\nt0 = time.time()\r\nfor ex in array_dataset.to_iterable_dataset():\r\n pass\r\nt1 = time.time()\r\n```\r\n< 0.01 s\r\n\r\n```python\r\nt0 = time.time()\r\nfor ex in sequence_dataset.to_iterable_dataset():\r\n pass\r\nt1 = time.time()\r\n```\r\n~1.1s\r\n\r\nAnd also added support for extracting structs of arrays as dicts of numpy arrays:\r\n\r\n```python\r\nimport numpy as np\r\nfrom datasets import Dataset, Features, Array3D, Sequence\r\nfeatures=Features(struct={\"array0\": Array3D((None,10,10), dtype=\"float32\"), \"array1\": Array3D((None,10,10), dtype=\"float32\")}, _list=Sequence(feature=Array3D((None,10,10), dtype=\"float32\")))\r\ndataset = Dataset.from_dict({\"struct\": [{f\"array{i}\": np.zeros((x,10,10), dtype=np.float32) for i in range(2)} for x in [2000,1000]*25], \"_list\": [[np.zeros((x,10,10), dtype=np.float32) for i in range(2)] for x in [2000,1000]*25]}, features=features)\r\n```\r\n\r\n```python\r\nt0 = time.time()\r\nfor ex in dataset.to_iterable_dataset():\r\n pass\r\nt1 = time.time()\r\nassert isinstance(ex[\"struct\"][\"array0\"], np.ndarray) and ex[\"struct\"][\"array0\"].ndim == 3\r\n```\r\n~0.02 s and no exception vs ~7s with an exception on main","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7227\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7227\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7226","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7226\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7226\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7226\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7226","id":2586920351,"node_id":"I_kwDODunzps6aMUWf","number":7226,"title":"Add R as a How to use from the Polars (R) Library as an option","user":{"login":"ran-codes","id":45013044,"node_id":"MDQ6VXNlcjQ1MDEzMDQ0","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/45013044?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ran-codes","html_url":"https:\/\/github.com\/ran-codes","followers_url":"https:\/\/api.github.com\/users\/ran-codes\/followers","following_url":"https:\/\/api.github.com\/users\/ran-codes\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ran-codes\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ran-codes\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ran-codes\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ran-codes\/orgs","repos_url":"https:\/\/api.github.com\/users\/ran-codes\/repos","events_url":"https:\/\/api.github.com\/users\/ran-codes\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ran-codes\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-10-14T19:56:07Z","updated_at":"2024-10-14T19:57:13Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\r\n\r\nThe boiler plate code to access a dataset via the hugging face file system is very useful. Please addd \r\n\r\n\r\n## Add Polars (R) option\r\nThe equivailent code works, because the [Polars-R](https:\/\/github.com\/pola-rs\/r-polars) wrapper has hugging faces funcitonaliy as well.\r\n\r\n```r\r\nlibrary(polars)\r\n\r\ndf <- pl$read_parquet(\"hf:\/\/datasets\/SALURBAL\/core__admin_cube_public\/core__admin_cube_public.parquet\")\r\n```\r\n\r\n## Polars (python) option\r\n![image](https:\/\/github.com\/user-attachments\/assets\/8f1bcd19-e578-4b18-b324-7cc00b80ac0a)\r\n\r\n\r\n## Libraries Currently\r\n\r\n![image](https:\/\/github.com\/user-attachments\/assets\/0cf50063-f9db-443c-97b4-3ef0664b6e6e)\r\n\r\n\r\n\r\n\r\n### Motivation\r\n\r\nThere are many data\/analysis\/research\/statistics teams (particularly in academia and pharma) that use R as the default language. R has great integration with most of the newer data techs (arrow, parquet, polars) and having this included could really help in bringing this community into the hugging faces ecosystem.\r\n\r\n**This is a small\/low-hanging-fruit front end change but would make a big impact expanding the community**\r\n\r\n### Your contribution\r\n\r\nI am not sure which repositroy this should be in, but I have experience in R, Python and JS and happy to submit a PR in the appropriate repository. ","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7226\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7226\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7225","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7225\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7225\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7225\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7225","id":2586229216,"node_id":"I_kwDODunzps6aJrng","number":7225,"title":"Huggingface GIT returns null as Content-Type instead of application\/x-git-receive-pack-result","user":{"login":"padmalcom","id":3961950,"node_id":"MDQ6VXNlcjM5NjE5NTA=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/3961950?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/padmalcom","html_url":"https:\/\/github.com\/padmalcom","followers_url":"https:\/\/api.github.com\/users\/padmalcom\/followers","following_url":"https:\/\/api.github.com\/users\/padmalcom\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/padmalcom\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/padmalcom\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/padmalcom\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/padmalcom\/orgs","repos_url":"https:\/\/api.github.com\/users\/padmalcom\/repos","events_url":"https:\/\/api.github.com\/users\/padmalcom\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/padmalcom\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-10-14T14:33:06Z","updated_at":"2024-10-14T14:33:06Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nWe push changes to our datasets programmatically. Our git client jGit reports that the hf git server returns null as Content-Type after a push.\n\n### Steps to reproduce the bug\n\nA basic kotlin application:\r\n```\r\n val person = PersonIdent(\r\n \"padmalcom\",\r\n \"padmalcom@sth.com\"\r\n )\r\n\r\n val cp = UsernamePasswordCredentialsProvider(\r\n \"padmalcom\",\r\n \"mysecrettoken\"\r\n )\r\n\r\n val git =\r\n KGit.cloneRepository {\r\n setURI(\"https:\/\/huggingface.co\/datasets\/sth\/images\")\r\n setTimeout(60)\r\n setProgressMonitor(TextProgressMonitor())\r\n setCredentialsProvider(cp)\r\n }\r\n\r\n FileOutputStream(\".\/images\/images.csv\").apply { writeCsv(images) }\r\n git.add {\r\n addFilepattern(\"images.csv\")\r\n }\r\n\r\n for (i in images) {\r\n FileUtils.copyFile(\r\n File(\".\/files\/${i.id}\"),\r\n File(\".\/images\/${i.id + File(i.fileName).extension }\")\r\n )\r\n git.add {\r\n addFilepattern(\"${i.id + File(i.fileName).extension }\")\r\n }\r\n }\r\n\r\n val revCommit = git.commit {\r\n author = person\r\n message = \"Uploading images at \" + LocalDateTime.now()\r\n .format(DateTimeFormatter.ISO_DATE_TIME)\r\n setCredentialsProvider(cp)\r\n }\r\n\r\n val push = git.push {\r\n setCredentialsProvider(cp)\r\n }\r\n```\n\n### Expected behavior\n\nThe git server is expected to return the Content-Type _application\/x-git-receive-pack-result_.\n\n### Environment info\n\nIt is independent from the datasets library.","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7225\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7225\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7224","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7224\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7224\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7224\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7224","id":2583233980,"node_id":"PR_kwDODunzps5-bLNR","number":7224,"title":"fallback to default feature casting in case custom features not available during dataset loading","user":{"login":"alex-hh","id":5719745,"node_id":"MDQ6VXNlcjU3MTk3NDU=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/5719745?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/alex-hh","html_url":"https:\/\/github.com\/alex-hh","followers_url":"https:\/\/api.github.com\/users\/alex-hh\/followers","following_url":"https:\/\/api.github.com\/users\/alex-hh\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/alex-hh\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/alex-hh\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/alex-hh\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/alex-hh\/orgs","repos_url":"https:\/\/api.github.com\/users\/alex-hh\/repos","events_url":"https:\/\/api.github.com\/users\/alex-hh\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/alex-hh\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-10-12T16:13:56Z","updated_at":"2024-10-12T16:13:56Z","closed_at":null,"author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7224","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7224","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7224.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7224.patch","merged_at":null},"body":"a fix for #7223 in case datasets is happy to support this kind of extensibility! seems cool \/ powerful for allowing sharing of datasets with potentially different feature types","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7224\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7224\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7223","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7223\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7223\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7223\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7223","id":2583231590,"node_id":"I_kwDODunzps6Z-Pxm","number":7223,"title":"Fallback to arrow defaults when loading dataset with custom features that aren't registered locally","user":{"login":"alex-hh","id":5719745,"node_id":"MDQ6VXNlcjU3MTk3NDU=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/5719745?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/alex-hh","html_url":"https:\/\/github.com\/alex-hh","followers_url":"https:\/\/api.github.com\/users\/alex-hh\/followers","following_url":"https:\/\/api.github.com\/users\/alex-hh\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/alex-hh\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/alex-hh\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/alex-hh\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/alex-hh\/orgs","repos_url":"https:\/\/api.github.com\/users\/alex-hh\/repos","events_url":"https:\/\/api.github.com\/users\/alex-hh\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/alex-hh\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-10-12T16:08:20Z","updated_at":"2024-10-12T16:08:20Z","closed_at":null,"author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nDatasets allows users to create and register custom features.\r\n\r\nHowever if datasets are then pushed to the hub, this means that anyone calling load_dataset without registering the custom Features in the same way as the dataset creator will get an error message.\r\n\r\nIt would be nice to offer a fallback in this case.\n\n### Steps to reproduce the bug\n\n```python\r\nload_dataset(\"alex-hh\/custom-features-example\")\r\n```\r\n(Dataset creation process - must be run in separate session so that NewFeature isn't registered in session in which download is attempted:)\r\n\r\n```python\r\nfrom dataclasses import dataclass, field\r\nimport pyarrow as pa\r\nfrom datasets.features.features import register_feature\r\n\r\nfrom datasets import Dataset, Features, Value, load_dataset\r\nfrom datasets import Feature\r\n\r\n@dataclass\r\nclass NewFeature(Feature):\r\n _type: str = field(default=\"NewFeature\", init=False, repr=False)\r\n def __call__(self):\r\n return pa.int32()\r\n\r\ndef examples_generator():\r\n for i in range(5):\r\n yield {\"feature\": i}\r\n\r\nds = Dataset.from_generator(examples_generator, features=Features(feature=NewFeature()))\r\nds.push_to_hub(\"alex-hh\/custom-features-example\")\r\nregister_feature(NewFeature, \"NewFeature\")\r\n```\r\n\r\n\n\n### Expected behavior\n\nIt would be nice, and offer greater extensibility, if there was some kind of graceful fallback mechanism in place for cases where user-defined features are stored in the dataset but not available locally.\n\n### Environment info\n\n3.0.2","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7223\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7223\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7222","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7222\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7222\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7222\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7222","id":2582678033,"node_id":"I_kwDODunzps6Z8IoR","number":7222,"title":"TypeError: Couldn't cast array of type string to null in long json","user":{"login":"nokados","id":5142577,"node_id":"MDQ6VXNlcjUxNDI1Nzc=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/5142577?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/nokados","html_url":"https:\/\/github.com\/nokados","followers_url":"https:\/\/api.github.com\/users\/nokados\/followers","following_url":"https:\/\/api.github.com\/users\/nokados\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/nokados\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/nokados\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/nokados\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/nokados\/orgs","repos_url":"https:\/\/api.github.com\/users\/nokados\/repos","events_url":"https:\/\/api.github.com\/users\/nokados\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/nokados\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2024-10-12T08:14:59Z","updated_at":"2025-07-21T03:07:32Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nIn general, changing the type from string to null is allowed within a dataset \u2014 there are even examples of this in the documentation.\r\n\r\nHowever, if the dataset is large and unevenly distributed, this allowance stops working. The schema gets locked in after reading a chunk. \r\n\r\nConsequently, if all values in the first chunk of a field are, for example, null, the field will be locked as type null, and if a string appears in that field in the second chunk, it will trigger this error:\r\n\r\n
\r\n Traceback <\/summary>\r\n\r\n```\r\n TypeError Traceback (most recent call last)\r\n\r\n[\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/builder.py](https:\/\/localhost:8080\/#) in _prepare_split_single(self, gen_kwargs, fpath, file_format, max_shard_size, job_id)\r\n 1868 try:\r\n-> 1869 writer.write_table(table)\r\n 1870 except CastError as cast_error:\r\n\r\n14 frames\r\n\r\n[\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/arrow_writer.py](https:\/\/localhost:8080\/#) in write_table(self, pa_table, writer_batch_size)\r\n 579 pa_table = pa_table.combine_chunks()\r\n--> 580 pa_table = table_cast(pa_table, self._schema)\r\n 581 if self.embed_local_files:\r\n\r\n[\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/table.py](https:\/\/localhost:8080\/#) in table_cast(table, schema)\r\n 2291 if table.schema != schema:\r\n-> 2292 return cast_table_to_schema(table, schema)\r\n 2293 elif table.schema.metadata != schema.metadata:\r\n\r\n[\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/table.py](https:\/\/localhost:8080\/#) in cast_table_to_schema(table, schema)\r\n 2244 )\r\n-> 2245 arrays = [\r\n 2246 cast_array_to_feature(\r\n\r\n[\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/table.py](https:\/\/localhost:8080\/#) in (.0)\r\n 2245 arrays = [\r\n-> 2246 cast_array_to_feature(\r\n 2247 table[name] if name in table_column_names else pa.array([None] * len(table), type=schema.field(name).type),\r\n\r\n[\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/table.py](https:\/\/localhost:8080\/#) in wrapper(array, *args, **kwargs)\r\n 1794 if isinstance(array, pa.ChunkedArray):\r\n-> 1795 return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])\r\n 1796 else:\r\n\r\n[\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/table.py](https:\/\/localhost:8080\/#) in (.0)\r\n 1794 if isinstance(array, pa.ChunkedArray):\r\n-> 1795 return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])\r\n 1796 else:\r\n\r\n[\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/table.py](https:\/\/localhost:8080\/#) in cast_array_to_feature(array, feature, allow_primitive_to_str, allow_decimal_to_str)\r\n 2101 elif not isinstance(feature, (Sequence, dict, list, tuple)):\r\n-> 2102 return array_cast(\r\n 2103 array,\r\n\r\n[\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/table.py](https:\/\/localhost:8080\/#) in wrapper(array, *args, **kwargs)\r\n 1796 else:\r\n-> 1797 return func(array, *args, **kwargs)\r\n 1798 \r\n\r\n[\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/table.py](https:\/\/localhost:8080\/#) in array_cast(array, pa_type, allow_primitive_to_str, allow_decimal_to_str)\r\n 1947 if pa.types.is_null(pa_type) and not pa.types.is_null(array.type):\r\n-> 1948 raise TypeError(f\"Couldn't cast array of type {_short_str(array.type)} to {_short_str(pa_type)}\")\r\n 1949 return array.cast(pa_type)\r\n\r\nTypeError: Couldn't cast array of type string to null\r\n\r\n\r\nThe above exception was the direct cause of the following exception:\r\n\r\nDatasetGenerationError Traceback (most recent call last)\r\n\r\n[](https:\/\/localhost:8080\/#) in ()\r\n----> 1 dd = load_dataset(\"json\", data_files=[\"TEST.json\"])\r\n\r\n[\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/load.py](https:\/\/localhost:8080\/#) in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, verification_mode, keep_in_memory, save_infos, revision, token, streaming, num_proc, storage_options, trust_remote_code, **config_kwargs)\r\n 2094 \r\n 2095 # Download and prepare data\r\n-> 2096 builder_instance.download_and_prepare(\r\n 2097 download_config=download_config,\r\n 2098 download_mode=download_mode,\r\n\r\n[\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/builder.py](https:\/\/localhost:8080\/#) in download_and_prepare(self, output_dir, download_config, download_mode, verification_mode, dl_manager, base_path, file_format, max_shard_size, num_proc, storage_options, **download_and_prepare_kwargs)\r\n 922 if num_proc is not None:\r\n 923 prepare_split_kwargs[\"num_proc\"] = num_proc\r\n--> 924 self._download_and_prepare(\r\n 925 dl_manager=dl_manager,\r\n 926 verification_mode=verification_mode,\r\n\r\n[\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/builder.py](https:\/\/localhost:8080\/#) in _download_and_prepare(self, dl_manager, verification_mode, **prepare_split_kwargs)\r\n 997 try:\r\n 998 # Prepare split will record examples associated to the split\r\n--> 999 self._prepare_split(split_generator, **prepare_split_kwargs)\r\n 1000 except OSError as e:\r\n 1001 raise OSError(\r\n\r\n[\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/builder.py](https:\/\/localhost:8080\/#) in _prepare_split(self, split_generator, file_format, num_proc, max_shard_size)\r\n 1738 job_id = 0\r\n 1739 with pbar:\r\n-> 1740 for job_id, done, content in self._prepare_split_single(\r\n 1741 gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args\r\n 1742 ):\r\n\r\n[\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/builder.py](https:\/\/localhost:8080\/#) in _prepare_split_single(self, gen_kwargs, fpath, file_format, max_shard_size, job_id)\r\n 1894 if isinstance(e, DatasetGenerationError):\r\n 1895 raise\r\n-> 1896 raise DatasetGenerationError(\"An error occurred while generating the dataset\") from e\r\n 1897 \r\n 1898 yield job_id, True, (total_num_examples, total_num_bytes, writer._features, num_shards, shard_lengths)\r\n\r\nDatasetGenerationError: An error occurred while generating the dataset\r\n```\r\n\r\n<\/details>\n\n### Steps to reproduce the bug\n\n```python\r\nimport json\r\nfrom datasets import load_dataset\r\n\r\nwith open(\"TEST.json\", \"w\") as f:\r\n row = {\"ballast\": \"qwerty\" * 1000, \"b\": None}\r\n row_str = json.dumps(row) + \"\\n\"\r\n line_size = len(row_str)\r\n chunk_size = 10 << 20\r\n lines_in_chunk = chunk_size \/\/ line_size + 1\r\n print(f\"Writing {lines_in_chunk} lines\")\r\n for i in range(lines_in_chunk):\r\n f.write(row_str)\r\n null_row = {\"ballast\": \"Gotcha\", \"b\": \"Not Null\"}\r\n f.write(json.dumps(null_row) + \"\\n\")\r\n\r\nload_dataset(\"json\", data_files=[\"TEST.json\"])\r\n```\n\n### Expected behavior\n\nConcatenation of the chunks without errors\n\n### Environment info\n\n- `datasets` version: 3.0.1\r\n- Platform: Linux-6.1.85+-x86_64-with-glibc2.35\r\n- Python version: 3.10.12\r\n- `huggingface_hub` version: 0.24.7\r\n- PyArrow version: 16.1.0\r\n- Pandas version: 2.2.2\r\n- `fsspec` version: 2024.6.1","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7222\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7222\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7221","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7221\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7221\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7221\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7221","id":2582114631,"node_id":"PR_kwDODunzps5-YNI8","number":7221,"title":"add CustomFeature base class to support user-defined features with encoding\/decoding logic","user":{"login":"alex-hh","id":5719745,"node_id":"MDQ6VXNlcjU3MTk3NDU=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/5719745?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/alex-hh","html_url":"https:\/\/github.com\/alex-hh","followers_url":"https:\/\/api.github.com\/users\/alex-hh\/followers","following_url":"https:\/\/api.github.com\/users\/alex-hh\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/alex-hh\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/alex-hh\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/alex-hh\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/alex-hh\/orgs","repos_url":"https:\/\/api.github.com\/users\/alex-hh\/repos","events_url":"https:\/\/api.github.com\/users\/alex-hh\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/alex-hh\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-10-11T20:10:27Z","updated_at":"2025-01-28T09:40:29Z","closed_at":"2025-01-28T09:40:29Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7221","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7221","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7221.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7221.patch","merged_at":null},"body":"intended as fix for #7220 if this kind of extensibility is something that datasets is willing to support!\r\n\r\n\r\n```python\r\nfrom datasets.features.features import CustomFeature\r\n\r\n\r\nclass ListOfStrs(CustomFeature):\r\n requires_encoding = True\r\n def _encode_example(self, value):\r\n if isinstance(value, str):\r\n return [str]\r\n else:\r\n return value\r\nfeats = Features(strlist=ListOfStrs())\r\nfeats.encode_example({\"strlist\": \"a\"})[\"strlist\"] == feats[\"strlist\"].encode_example(\"a\")\r\n```","closed_by":{"login":"alex-hh","id":5719745,"node_id":"MDQ6VXNlcjU3MTk3NDU=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/5719745?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/alex-hh","html_url":"https:\/\/github.com\/alex-hh","followers_url":"https:\/\/api.github.com\/users\/alex-hh\/followers","following_url":"https:\/\/api.github.com\/users\/alex-hh\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/alex-hh\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/alex-hh\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/alex-hh\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/alex-hh\/orgs","repos_url":"https:\/\/api.github.com\/users\/alex-hh\/repos","events_url":"https:\/\/api.github.com\/users\/alex-hh\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/alex-hh\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7221\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7221\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7220","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7220\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7220\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7220\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7220","id":2582036110,"node_id":"I_kwDODunzps6Z5r6O","number":7220,"title":"Custom features not compatible with special encoding\/decoding logic","user":{"login":"alex-hh","id":5719745,"node_id":"MDQ6VXNlcjU3MTk3NDU=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/5719745?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/alex-hh","html_url":"https:\/\/github.com\/alex-hh","followers_url":"https:\/\/api.github.com\/users\/alex-hh\/followers","following_url":"https:\/\/api.github.com\/users\/alex-hh\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/alex-hh\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/alex-hh\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/alex-hh\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/alex-hh\/orgs","repos_url":"https:\/\/api.github.com\/users\/alex-hh\/repos","events_url":"https:\/\/api.github.com\/users\/alex-hh\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/alex-hh\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-10-11T19:20:11Z","updated_at":"2024-11-08T15:10:58Z","closed_at":null,"author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\r\n\r\nIt is possible to register custom features using datasets.features.features.register_feature (https:\/\/github.com\/huggingface\/datasets\/pull\/6727)\r\n\r\nHowever such features are not compatible with Features.encode_example\/decode_example if they require special encoding \/ decoding logic because encode_nested_example \/ decode_nested_example checks whether the feature is in a fixed list of encodable types:\r\n\r\nhttps:\/\/github.com\/huggingface\/datasets\/blob\/16a121d7821a7691815a966270f577e2c503473f\/src\/datasets\/features\/features.py#L1349\r\n\r\nThis prevents the extensibility of features to complex cases\r\n\r\n### Steps to reproduce the bug\r\n\r\n```python\r\nclass ListOfStrs:\r\n def encode_example(self, value):\r\n if isinstance(value, str):\r\n return [str]\r\n else:\r\n return value\r\nfeats = Features(strlist=ListOfStrs())\r\nassert feats.encode_example({\"strlist\": \"a\"})[\"strlist\"] = feats[\"strlist\"].encode_example(\"a\")}\r\n```\r\n\r\n### Expected behavior\r\n\r\nRegistered feature types should be encoded based on some property of the feature (e.g. requires_encoding)?\r\n\r\n### Environment info\r\n\r\n3.0.2","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7220\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7220\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7219","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7219\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7219\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7219\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7219","id":2581708084,"node_id":"PR_kwDODunzps5-XAQF","number":7219,"title":"bump fsspec","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-10-11T15:56:36Z","updated_at":"2024-10-14T08:21:56Z","closed_at":"2024-10-14T08:21:55Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7219","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7219","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7219.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7219.patch","merged_at":"2024-10-14T08:21:55Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7219\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7219\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7217","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7217\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7217\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7217\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7217","id":2581095098,"node_id":"I_kwDODunzps6Z2GK6","number":7217,"title":"ds.map(f, num_proc=10) is slower than df.apply","user":{"login":"lanlanlanlanlanlan365","id":178981231,"node_id":"U_kgDOCqsJbw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/178981231?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lanlanlanlanlanlan365","html_url":"https:\/\/github.com\/lanlanlanlanlanlan365","followers_url":"https:\/\/api.github.com\/users\/lanlanlanlanlanlan365\/followers","following_url":"https:\/\/api.github.com\/users\/lanlanlanlanlanlan365\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lanlanlanlanlanlan365\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lanlanlanlanlanlan365\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lanlanlanlanlanlan365\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lanlanlanlanlanlan365\/orgs","repos_url":"https:\/\/api.github.com\/users\/lanlanlanlanlanlan365\/repos","events_url":"https:\/\/api.github.com\/users\/lanlanlanlanlanlan365\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lanlanlanlanlanlan365\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2024-10-11T11:04:05Z","updated_at":"2025-02-28T21:21:01Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\npandas columns: song_id, song_name\r\nds = Dataset.from_pandas(df)\r\n\r\ndef has_cover(song_name):\r\n if song_name is None or pd.isna(song_name):\r\n return False\r\n return 'cover' in song_name.lower()\r\n\r\ndf['has_cover'] = df.song_name.progress_apply(has_cover)\r\nds = ds.map(lambda x: {'has_cover': has_cover(x['song_name'])}, num_proc=10)\r\n\r\ntime cost: \r\n1. df.apply: 100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 12500592\/12500592 [00:13<00:00, 959825.47it\/s]\r\n2. ds.map: Map\u2007(num_proc=10):\u2007\u200731%\r\n\u20073899028\/12500592\u2007[00:28<00:38,\u2007222532.89\u2007examples\/s]\n\n### Steps to reproduce the bug\n\npandas columns: song_id, song_name\r\nds = Dataset.from_pandas(df)\r\n\r\ndef has_cover(song_name):\r\n if song_name is None or pd.isna(song_name):\r\n return False\r\n return 'cover' in song_name.lower()\r\n\r\ndf['has_cover'] = df.song_name.progress_apply(has_cover)\r\nds = ds.map(lambda x: {'has_cover': has_cover(x['song_name'])}, num_proc=10)\n\n### Expected behavior\n\nds.map is ~num_proc faster than df.apply\n\n### Environment info\n\npandas: 2.2.2\r\ndatasets: 2.19.1","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7217\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7217\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7215","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7215\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7215\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7215\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7215","id":2579942939,"node_id":"I_kwDODunzps6Zxs4b","number":7215,"title":"Iterable dataset map with explicit features causes slowdown for Sequence features","user":{"login":"alex-hh","id":5719745,"node_id":"MDQ6VXNlcjU3MTk3NDU=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/5719745?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/alex-hh","html_url":"https:\/\/github.com\/alex-hh","followers_url":"https:\/\/api.github.com\/users\/alex-hh\/followers","following_url":"https:\/\/api.github.com\/users\/alex-hh\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/alex-hh\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/alex-hh\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/alex-hh\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/alex-hh\/orgs","repos_url":"https:\/\/api.github.com\/users\/alex-hh\/repos","events_url":"https:\/\/api.github.com\/users\/alex-hh\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/alex-hh\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-10-10T22:08:20Z","updated_at":"2024-10-10T22:10:32Z","closed_at":null,"author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\r\n\r\nWhen performing map, it's nice to be able to pass the new feature type, and indeed required by interleave and concatenate datasets.\r\n\r\nHowever, this can cause a major slowdown for certain types of array features due to the features being re-encoded.\r\n\r\nThis is separate to the slowdown reported in #7206 \r\n\r\n### Steps to reproduce the bug\r\n\r\n```\r\nfrom datasets import Dataset, Features, Array3D, Sequence, Value\r\nimport numpy as np\r\nimport time\r\nfeatures=Features(**{\"array0\": Sequence(feature=Value(\"float32\"), length=-1), \"array1\": Sequence(feature=Value(\"float32\"), length=-1)})\r\ndataset = Dataset.from_dict({f\"array{i}\": [np.zeros((x,), dtype=np.float32) for x in [5000,10000]*25] for i in range(2)}, features=features)\r\n```\r\n\r\n```\r\nds = dataset.to_iterable_dataset()\r\nds = ds.with_format(\"numpy\").map(lambda x: x)\r\nt0 = time.time()\r\nfor ex in ds:\r\n pass\r\nt1 = time.time()\r\n```\r\n~1.5 s on main\r\n\r\n\r\n```\r\nds = dataset.to_iterable_dataset()\r\nds = ds.with_format(\"numpy\").map(lambda x: x, features=features)\r\nt0 = time.time()\r\nfor ex in ds:\r\n pass\r\nt1 = time.time()\r\n```\r\n~ 3 s on main\r\n\r\n### Expected behavior\r\n\r\nI'm not 100% sure whether passing new feature types to formatted outputs of map should be supported or not, but assuming it should, then there should be a cost-free way to specify the new feature type - knowing feature type is required by interleave_datasets and concatenate_datasets for example\r\n\r\n### Environment info\r\n\r\n3.0.2","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7215\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7215\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7214","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7214\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7214\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7214\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7214","id":2578743713,"node_id":"I_kwDODunzps6ZtIGh","number":7214,"title":"Formatted map + with_format(None) changes array dtype for iterable datasets","user":{"login":"alex-hh","id":5719745,"node_id":"MDQ6VXNlcjU3MTk3NDU=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/5719745?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/alex-hh","html_url":"https:\/\/github.com\/alex-hh","followers_url":"https:\/\/api.github.com\/users\/alex-hh\/followers","following_url":"https:\/\/api.github.com\/users\/alex-hh\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/alex-hh\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/alex-hh\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/alex-hh\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/alex-hh\/orgs","repos_url":"https:\/\/api.github.com\/users\/alex-hh\/repos","events_url":"https:\/\/api.github.com\/users\/alex-hh\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/alex-hh\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-10-10T12:45:16Z","updated_at":"2024-10-12T16:55:57Z","closed_at":null,"author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\r\n\r\nWhen applying with_format -> map -> with_format(None), array dtypes seem to change, even if features are passed \r\n\r\n### Steps to reproduce the bug\r\n\r\n```python\r\nfeatures=Features(**{\"array0\": Array3D((None, 10, 10), dtype=\"float32\")})\r\ndataset = Dataset.from_dict({f\"array0\": [np.zeros((100,10,10), dtype=np.float32)]*25}, features=features)\r\nds = dataset.to_iterable_dataset().with_format(\"numpy\").map(lambda x: x, features=features)\r\nex_0 = next(iter(ds))\r\nds = dataset.to_iterable_dataset().with_format(\"numpy\").map(lambda x: x, features=features).with_format(None)\r\nex_1 = next(iter(ds))\r\nassert ex_1[\"array0\"].dtype == ex_0[\"array0\"].dtype, f\"{ex_1['array0'].dtype} {ex_0['array0'].dtype}\"\r\n```\r\n\r\n\r\n### Expected behavior\r\n\r\nDtypes should be preserved.\r\n\r\n### Environment info\r\n\r\n3.0.2","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7214\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7214\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7213","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7213\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7213\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7213\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7213","id":2578675565,"node_id":"I_kwDODunzps6Zs3dt","number":7213,"title":"Add with_rank to Dataset.from_generator","user":{"login":"muthissar","id":17828087,"node_id":"MDQ6VXNlcjE3ODI4MDg3","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/17828087?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/muthissar","html_url":"https:\/\/github.com\/muthissar","followers_url":"https:\/\/api.github.com\/users\/muthissar\/followers","following_url":"https:\/\/api.github.com\/users\/muthissar\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/muthissar\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/muthissar\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/muthissar\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/muthissar\/orgs","repos_url":"https:\/\/api.github.com\/users\/muthissar\/repos","events_url":"https:\/\/api.github.com\/users\/muthissar\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/muthissar\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-10-10T12:15:29Z","updated_at":"2024-10-10T12:17:11Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\r\n\r\nAdd `with_rank` to `Dataset.from_generator` similar to `Dataset.map` and `Dataset.filter`. \r\n\r\n### Motivation\r\n\r\nAs for `Dataset.map` and `Dataset.filter`, this is useful when creating cache files using multi-GPU, where the rank can be used to select GPU IDs. For now, rank can be added in the `gen_kwars` argument; however, this, in turn, includes the rank when computing the fingerprint.\r\n\r\n### Your contribution\r\n\r\nAdded #7199 which passes rank based on the `job_id` set by `num_proc`.","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7213\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7213\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7212","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7212\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7212\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7212\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7212","id":2578641259,"node_id":"I_kwDODunzps6ZsvFr","number":7212,"title":"Windows do not supprot signal.alarm and singal.signal","user":{"login":"TomasJavurek","id":33832672,"node_id":"MDQ6VXNlcjMzODMyNjcy","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/33832672?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/TomasJavurek","html_url":"https:\/\/github.com\/TomasJavurek","followers_url":"https:\/\/api.github.com\/users\/TomasJavurek\/followers","following_url":"https:\/\/api.github.com\/users\/TomasJavurek\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/TomasJavurek\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/TomasJavurek\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/TomasJavurek\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/TomasJavurek\/orgs","repos_url":"https:\/\/api.github.com\/users\/TomasJavurek\/repos","events_url":"https:\/\/api.github.com\/users\/TomasJavurek\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/TomasJavurek\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-10-10T12:00:19Z","updated_at":"2024-10-10T12:00:19Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nsignal.alarm and signal.signal are used in the load.py module, but these are not supported by Windows.\n\n### Steps to reproduce the bug\n\n lighteval accelerate --model_args \"pretrained=gpt2,trust_remote_code=True\" --tasks \"community|kinit_sts\" --custom_tasks \"community_tasks\/kinit_evals.py\" --output_dir \".\/evals\"\n\n### Expected behavior\n\nproceed with input(..) method\n\n### Environment info\n\nWindows 11","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7212\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7212\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7211","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7211\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7211\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7211\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7211","id":2576400502,"node_id":"I_kwDODunzps6ZkMB2","number":7211,"title":"Describe only selected fields in README","user":{"login":"alozowski","id":67658835,"node_id":"MDQ6VXNlcjY3NjU4ODM1","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/67658835?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/alozowski","html_url":"https:\/\/github.com\/alozowski","followers_url":"https:\/\/api.github.com\/users\/alozowski\/followers","following_url":"https:\/\/api.github.com\/users\/alozowski\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/alozowski\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/alozowski\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/alozowski\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/alozowski\/orgs","repos_url":"https:\/\/api.github.com\/users\/alozowski\/repos","events_url":"https:\/\/api.github.com\/users\/alozowski\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/alozowski\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-10-09T16:25:47Z","updated_at":"2024-10-09T16:25:47Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nHi Datasets team! \r\n\r\nIs it possible to add the ability to describe only selected fields of the dataset files in `README.md`? For example, I have this open dataset ([open-llm-leaderboard\/results](https:\/\/huggingface.co\/datasets\/open-llm-leaderboard\/results?row=0)) and I want to describe only some fields in order not to overcomplicate the Dataset Preview and filter out some fields \n\n### Motivation\n\nThe `Results` dataset for the Open LLM Leaderboard contains json files with a complex nested structure. I would like to add `README.md` there to use the SQL console, for example. But if I describe the structure of this dataset completely, it will overcomplicate the use of Dataset Preview and the total number of columns will exceed 50 \n\n### Your contribution\n\nI'm afraid I'm not familiar with the project structure, so I won't be able to open a PR, but I'll try to help with something else if possible","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7211\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7211\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7210","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7210\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7210\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7210\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7210","id":2575883939,"node_id":"I_kwDODunzps6ZiN6j","number":7210,"title":"Convert Array features to numpy arrays rather than lists by default","user":{"login":"alex-hh","id":5719745,"node_id":"MDQ6VXNlcjU3MTk3NDU=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/5719745?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/alex-hh","html_url":"https:\/\/github.com\/alex-hh","followers_url":"https:\/\/api.github.com\/users\/alex-hh\/followers","following_url":"https:\/\/api.github.com\/users\/alex-hh\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/alex-hh\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/alex-hh\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/alex-hh\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/alex-hh\/orgs","repos_url":"https:\/\/api.github.com\/users\/alex-hh\/repos","events_url":"https:\/\/api.github.com\/users\/alex-hh\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/alex-hh\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-10-09T13:05:21Z","updated_at":"2024-10-09T13:05:21Z","closed_at":null,"author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nIt is currently quite easy to cause massive slowdowns when using datasets and not familiar with the underlying data conversions by e.g. making bad choices of formatting.\r\n\r\nWould it be more user-friendly to set defaults that avoid this as much as possible? e.g. format Array features as numpy arrays rather than python lists\n\n### Motivation\n\nDefault array formatting leads to slow performance: e.g.\r\n\r\n```python\r\nimport numpy as np\r\nfrom datasets import Dataset, Features, Array3D\r\nfeatures=Features(**{\"array0\": Array3D((None, 10, 10), dtype=\"float32\"), \"array1\": Array3D((None,10,10), dtype=\"float32\")})\r\ndataset = Dataset.from_dict({f\"array{i}\": [np.zeros((x,10,10), dtype=np.float32) for x in [2000,1000]*25] for i in range(2)}, features=features)\r\n```\r\n\r\n```python\r\nt0 = time.time()\r\nfor ex in ds:\r\n pass\r\nt1 = time.time()\r\n```\r\n~1.4 s\r\n\r\n```python\r\nds = dataset.to_iterable_dataset()\r\nt0 = time.time()\r\nfor ex in ds:\r\n pass\r\nt1 = time.time()\r\n```\r\n~10s\r\n\r\n```python\r\nds = dataset.with_format(\"numpy\")\r\nt0 = time.time()\r\nfor ex in ds:\r\n pass\r\nt1 = time.time()\r\n```\r\n~0.04s\r\n\r\n```python\r\nds = dataset.to_iterable_dataset().with_format(\"numpy\")\r\nt0 = time.time()\r\nfor ex in ds:\r\n pass\r\nt1 = time.time()\r\n```\r\n~0.04s\n\n### Your contribution\n\nMay be able to contribute","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7210\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7210\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7209","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7209\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7209\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7209\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7209","id":2575526651,"node_id":"PR_kwDODunzps5-D6_P","number":7209,"title":"Preserve features in iterable dataset.filter","user":{"login":"alex-hh","id":5719745,"node_id":"MDQ6VXNlcjU3MTk3NDU=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/5719745?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/alex-hh","html_url":"https:\/\/github.com\/alex-hh","followers_url":"https:\/\/api.github.com\/users\/alex-hh\/followers","following_url":"https:\/\/api.github.com\/users\/alex-hh\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/alex-hh\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/alex-hh\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/alex-hh\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/alex-hh\/orgs","repos_url":"https:\/\/api.github.com\/users\/alex-hh\/repos","events_url":"https:\/\/api.github.com\/users\/alex-hh\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/alex-hh\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2024-10-09T10:42:05Z","updated_at":"2024-10-16T11:27:22Z","closed_at":"2024-10-09T16:04:07Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7209","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7209","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7209.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7209.patch","merged_at":"2024-10-09T16:04:07Z"},"body":"Fixes example in #7208 - I'm not sure what other checks I should do? @lhoestq \r\n\r\nI also haven't thought hard about the concatenate \/ interleaving example iterables but think this might work assuming that features are either all identical or None?","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7209\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7209\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7208","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7208\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7208\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7208\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7208","id":2575484256,"node_id":"I_kwDODunzps6ZgsVg","number":7208,"title":"Iterable dataset.filter should not override features","user":{"login":"alex-hh","id":5719745,"node_id":"MDQ6VXNlcjU3MTk3NDU=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/5719745?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/alex-hh","html_url":"https:\/\/github.com\/alex-hh","followers_url":"https:\/\/api.github.com\/users\/alex-hh\/followers","following_url":"https:\/\/api.github.com\/users\/alex-hh\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/alex-hh\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/alex-hh\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/alex-hh\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/alex-hh\/orgs","repos_url":"https:\/\/api.github.com\/users\/alex-hh\/repos","events_url":"https:\/\/api.github.com\/users\/alex-hh\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/alex-hh\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-10-09T10:23:45Z","updated_at":"2024-10-09T16:08:46Z","closed_at":"2024-10-09T16:08:45Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nWhen calling filter on an iterable dataset, the features get set to None\n\n### Steps to reproduce the bug\n\nimport numpy as np\r\nimport time\r\nfrom datasets import Dataset, Features, Array3D\r\n\r\n```python\r\nfeatures=Features(**{\"array0\": Array3D((None, 10, 10), dtype=\"float32\"), \"array1\": Array3D((None,10,10), dtype=\"float32\")})\r\ndataset = Dataset.from_dict({f\"array{i}\": [np.zeros((x,10,10), dtype=np.float32) for x in [2000,1000]*25] for i in range(2)}, features=features)\r\nds = dataset.to_iterable_dataset()\r\norig_column_names = ds.column_names\r\nds = ds.filter(lambda x: True)\r\nassert ds.column_names == orig_column_names\r\n```\n\n### Expected behavior\n\nFilter should preserve features information\n\n### Environment info\n\n3.0.2","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7208\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7208\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7207","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7207\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7207\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7207\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7207","id":2573582335,"node_id":"PR_kwDODunzps59-Dms","number":7207,"title":"apply formatting after iter_arrow to speed up format -> map, filter for iterable datasets","user":{"login":"alex-hh","id":5719745,"node_id":"MDQ6VXNlcjU3MTk3NDU=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/5719745?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/alex-hh","html_url":"https:\/\/github.com\/alex-hh","followers_url":"https:\/\/api.github.com\/users\/alex-hh\/followers","following_url":"https:\/\/api.github.com\/users\/alex-hh\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/alex-hh\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/alex-hh\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/alex-hh\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/alex-hh\/orgs","repos_url":"https:\/\/api.github.com\/users\/alex-hh\/repos","events_url":"https:\/\/api.github.com\/users\/alex-hh\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/alex-hh\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":17,"created_at":"2024-10-08T15:44:53Z","updated_at":"2025-01-14T18:36:03Z","closed_at":"2025-01-14T16:59:30Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7207","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7207","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7207.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7207.patch","merged_at":"2025-01-14T16:59:30Z"},"body":"I got to this by hacking around a bit but it seems to solve #7206 \r\n\r\nI have no idea if this approach makes sense or would break something else? \r\n\r\nCould maybe work on a full pr if this looks reasonable @lhoestq ? I imagine the same issue might affect other iterable dataset methods?","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7207\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7207\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7206","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7206\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7206\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7206\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7206","id":2573567467,"node_id":"I_kwDODunzps6ZZYXr","number":7206,"title":"Slow iteration for iterable dataset with numpy formatting for array data","user":{"login":"alex-hh","id":5719745,"node_id":"MDQ6VXNlcjU3MTk3NDU=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/5719745?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/alex-hh","html_url":"https:\/\/github.com\/alex-hh","followers_url":"https:\/\/api.github.com\/users\/alex-hh\/followers","following_url":"https:\/\/api.github.com\/users\/alex-hh\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/alex-hh\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/alex-hh\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/alex-hh\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/alex-hh\/orgs","repos_url":"https:\/\/api.github.com\/users\/alex-hh\/repos","events_url":"https:\/\/api.github.com\/users\/alex-hh\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/alex-hh\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-10-08T15:38:11Z","updated_at":"2024-10-17T17:14:52Z","closed_at":null,"author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\r\n\r\nWhen working with large arrays, setting with_format to e.g. numpy then applying map causes a significant slowdown for iterable datasets.\r\n\r\n### Steps to reproduce the bug\r\n\r\n```python\r\nimport numpy as np\r\nimport time\r\nfrom datasets import Dataset, Features, Array3D\r\n\r\nfeatures=Features(**{\"array0\": Array3D((None, 10, 10), dtype=\"float32\"), \"array1\": Array3D((None,10,10), dtype=\"float32\")})\r\ndataset = Dataset.from_dict({f\"array{i}\": [np.zeros((x,10,10), dtype=np.float32) for x in [2000,1000]*25] for i in range(2)}, features=features)\r\n```\r\n\r\nThen\r\n```python\r\nds = dataset.to_iterable_dataset()\r\nds = ds.with_format(\"numpy\").map(lambda x: x)\r\nt0 = time.time()\r\nfor ex in ds:\r\n pass\r\nt1 = time.time()\r\nprint(t1-t0)\r\n```\r\n\r\ntakes 27 s, whereas\r\n\r\n```python\r\nds = dataset.to_iterable_dataset()\r\nds = ds.with_format(\"numpy\")\r\nds = dataset.to_iterable_dataset()\r\nt0 = time.time()\r\nfor ex in ds:\r\n pass\r\nt1 = time.time()\r\nprint(t1 - t0)\r\n```\r\n\r\ntakes ~1s\r\n\r\n### Expected behavior\r\n\r\nMap should not introduce a slowdown when formatting is enabled.\r\n\r\n### Environment info\r\n\r\n3.0.2","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7206\/reactions","total_count":1,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7206\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7205","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7205\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7205\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7205\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7205","id":2573490859,"node_id":"PR_kwDODunzps599w0I","number":7205,"title":"fix ci benchmark","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-10-08T15:06:18Z","updated_at":"2024-10-08T15:25:28Z","closed_at":"2024-10-08T15:25:25Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7205","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7205","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7205.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7205.patch","merged_at":"2024-10-08T15:25:25Z"},"body":"we're not using the benchmarks anymore + they were not working anyway due to token permissions\r\n\r\nI keep the code in case we ever want to re-run the benchmark manually","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7205\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7205\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7204","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7204\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7204\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7204\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7204","id":2573289063,"node_id":"PR_kwDODunzps599Hem","number":7204,"title":"fix unbatched arrow map for iterable datasets","user":{"login":"alex-hh","id":5719745,"node_id":"MDQ6VXNlcjU3MTk3NDU=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/5719745?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/alex-hh","html_url":"https:\/\/github.com\/alex-hh","followers_url":"https:\/\/api.github.com\/users\/alex-hh\/followers","following_url":"https:\/\/api.github.com\/users\/alex-hh\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/alex-hh\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/alex-hh\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/alex-hh\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/alex-hh\/orgs","repos_url":"https:\/\/api.github.com\/users\/alex-hh\/repos","events_url":"https:\/\/api.github.com\/users\/alex-hh\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/alex-hh\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-10-08T13:54:09Z","updated_at":"2024-10-08T14:19:47Z","closed_at":"2024-10-08T14:19:47Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7204","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7204","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7204.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7204.patch","merged_at":"2024-10-08T14:19:46Z"},"body":"Fixes the bug when applying map to an arrow-formatted iterable dataset described here:\r\n\r\nhttps:\/\/github.com\/huggingface\/datasets\/issues\/6833#issuecomment-2399903885\r\n\r\n```python\r\n\r\nfrom datasets import load_dataset\r\nds = load_dataset(\"rotten_tomatoes\", split=\"train\", streaming=True)\r\nds = ds.with_format(\"arrow\").map(lambda x: x)\r\nfor ex in ds:\r\n pass\r\n```\r\n\r\n@lhoestq ","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7204\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7204\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7203","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7203\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7203\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7203\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7203","id":2573154222,"node_id":"PR_kwDODunzps598skr","number":7203,"title":"with_format docstring","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-10-08T13:05:19Z","updated_at":"2024-10-08T13:13:12Z","closed_at":"2024-10-08T13:13:05Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7203","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7203","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7203.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7203.patch","merged_at":"2024-10-08T13:13:05Z"},"body":"reported at https:\/\/github.com\/huggingface\/datasets\/issues\/3444","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7203\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7203\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7202","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7202\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7202\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7202\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7202","id":2572583798,"node_id":"I_kwDODunzps6ZVoN2","number":7202,"title":"`from_parquet` return type annotation","user":{"login":"saiden89","id":45285915,"node_id":"MDQ6VXNlcjQ1Mjg1OTE1","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/45285915?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/saiden89","html_url":"https:\/\/github.com\/saiden89","followers_url":"https:\/\/api.github.com\/users\/saiden89\/followers","following_url":"https:\/\/api.github.com\/users\/saiden89\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/saiden89\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/saiden89\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/saiden89\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/saiden89\/orgs","repos_url":"https:\/\/api.github.com\/users\/saiden89\/repos","events_url":"https:\/\/api.github.com\/users\/saiden89\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/saiden89\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-10-08T09:08:10Z","updated_at":"2024-10-08T09:08:10Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nAs already posted in https:\/\/github.com\/microsoft\/pylance-release\/issues\/6534, the correct type hinting fails when building a dataset using the `from_parquet` constructor.\r\nTheir suggestion is to comprehensively annotate the method's return type to better align with the docstring information.\n\n### Steps to reproduce the bug\n\n```python\r\nfrom datasets import Dataset\r\n\r\ndataset = Dataset.from_parquet(path_or_paths=\"file\")\r\ndataset.map(lambda x: {\"new\": x[\"old\"]}, batched=True)\r\n```\n\n### Expected behavior\n\nmap is a [valid](https:\/\/huggingface.co\/docs\/datasets\/v3.0.1\/en\/package_reference\/main_classes#datasets.Dataset.map), no error should be thrown.\n\n### Environment info\n\n- `datasets` version: 3.0.1\r\n- Platform: macOS-15.0.1-arm64-arm-64bit\r\n- Python version: 3.12.6\r\n- `huggingface_hub` version: 0.25.1\r\n- PyArrow version: 17.0.0\r\n- Pandas version: 2.2.3\r\n- `fsspec` version: 2024.6.1","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7202\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7202\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7201","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7201\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7201\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7201\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7201","id":2569837015,"node_id":"I_kwDODunzps6ZLJnX","number":7201,"title":"`load_dataset()` of images from a single directory where `train.png` image exists","user":{"login":"SagiPolaczek","id":56922146,"node_id":"MDQ6VXNlcjU2OTIyMTQ2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/56922146?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/SagiPolaczek","html_url":"https:\/\/github.com\/SagiPolaczek","followers_url":"https:\/\/api.github.com\/users\/SagiPolaczek\/followers","following_url":"https:\/\/api.github.com\/users\/SagiPolaczek\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/SagiPolaczek\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/SagiPolaczek\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/SagiPolaczek\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/SagiPolaczek\/orgs","repos_url":"https:\/\/api.github.com\/users\/SagiPolaczek\/repos","events_url":"https:\/\/api.github.com\/users\/SagiPolaczek\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/SagiPolaczek\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-10-07T09:14:17Z","updated_at":"2024-10-07T09:14:17Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nHey!\r\nFirstly, thanks for maintaining such framework!\r\n\r\nI had a small issue, where I wanted to load a custom dataset of image+text captioning. I had all of my images in a single directory, and one of the images had the name `train.png`. Then, the loaded dataset had only this image.\r\n\r\nI guess it's related to \"train\" as a split name, but it's definitely an unexpected behavior :)\r\nUnfortunately I don't have time to submit a proper PR. I'm attaching a toy example to reproduce the issue.\r\n\r\nThanks,\r\nSagi\n\n### Steps to reproduce the bug\n\nAll of the steps I'm attaching are in a fresh env :)\r\n\r\n```\r\n(base) sagipolaczek@Sagis-MacBook-Pro ~ % conda activate hf_issue_env\r\n(hf_issue_env) sagipolaczek@Sagis-MacBook-Pro ~ % python --version\r\nPython 3.10.15\r\n(hf_issue_env) sagipolaczek@Sagis-MacBook-Pro ~ % pip list | grep datasets\r\ndatasets 3.0.1\r\n(hf_issue_env) sagipolaczek@Sagis-MacBook-Pro ~ % ls -la Documents\/hf_datasets_issue \r\ntotal 352\r\ndrwxr-xr-x 6 sagipolaczek staff 192 Oct 7 11:59 .\r\ndrwx------@ 23 sagipolaczek staff 736 Oct 7 11:46 ..\r\n-rw-r--r--@ 1 sagipolaczek staff 72 Oct 7 11:59 metadata.csv\r\n-rw-r--r--@ 1 sagipolaczek staff 160154 Oct 6 18:00 pika.png\r\n-rw-r--r--@ 1 sagipolaczek staff 5495 Oct 6 12:02 pika_pika.png\r\n-rw-r--r--@ 1 sagipolaczek staff 1753 Oct 6 11:50 train.png\r\n(hf_issue_env) sagipolaczek@Sagis-MacBook-Pro ~ % cat Documents\/hf_datasets_issue\/metadata.csv\r\nfile_name,text\r\ntrain.png,A train\r\npika.png,Pika\r\npika_pika.png,Pika Pika!\r\n\r\n\r\n(hf_issue_env) sagipolaczek@Sagis-MacBook-Pro ~ % python \r\nPython 3.10.15 (main, Oct 3 2024, 02:33:33) [Clang 14.0.6 ] on darwin\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n>>> from datasets import load_dataset\r\n>>> dataset = load_dataset(\"imagefolder\", data_dir=\"Documents\/hf_datasets_issue\/\")\r\n>>> dataset\r\nDatasetDict({\r\n train: Dataset({\r\n features: ['image', 'text'],\r\n num_rows: 1\r\n })\r\n})\r\n>>> dataset[\"train\"][0]\r\n{'image': , 'text': 'A train'}\r\n\r\n### DELETING `train.png` sample ###\r\n(hf_issue_env) sagipolaczek@Sagis-MacBook-Pro ~ % vim Documents\/hf_datasets_issue\/metadata.csv\r\n(hf_issue_env) sagipolaczek@Sagis-MacBook-Pro ~ % rm Documents\/hf_datasets_issue\/train.png \r\n(hf_issue_env) sagipolaczek@Sagis-MacBook-Pro ~ % python \r\nPython 3.10.15 (main, Oct 3 2024, 02:33:33) [Clang 14.0.6 ] on darwin\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n>>> from datasets import load_dataset\r\n>>> dataset = load_dataset(\"imagefolder\", data_dir=\"Documents\/hf_datasets_issue\/\")\r\nGenerating train split: 2 examples [00:00, 65.99 examples\/s]\r\n>>> dataset\r\nDatasetDict({\r\n train: Dataset({\r\n features: ['image', 'text'],\r\n num_rows: 2\r\n })\r\n})\r\n>>> dataset[\"train\"]\r\nDataset({\r\n features: ['image', 'text'],\r\n num_rows: 2\r\n})\r\n>>> dataset[\"train\"][0],dataset[\"train\"][1]\r\n({'image': , 'text': 'Pika'}, {'image': , 'text': 'Pika Pika!'})\r\n```\n\n### Expected behavior\n\nMy expected behavior would be to get a dataset with the sample `train.png` in it (along with the others data points).\r\n\r\n\n\n### Environment info\n\nI've attached it in the example:\r\n\r\nPython 3.10.15\r\ndatasets 3.0.1\r\n","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7201\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7201\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7200","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7200\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7200\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7200\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7200","id":2567921694,"node_id":"PR_kwDODunzps59sgRd","number":7200,"title":"Fix the environment variable for huggingface cache","user":{"login":"torotoki","id":989899,"node_id":"MDQ6VXNlcjk4OTg5OQ==","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/989899?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/torotoki","html_url":"https:\/\/github.com\/torotoki","followers_url":"https:\/\/api.github.com\/users\/torotoki\/followers","following_url":"https:\/\/api.github.com\/users\/torotoki\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/torotoki\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/torotoki\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/torotoki\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/torotoki\/orgs","repos_url":"https:\/\/api.github.com\/users\/torotoki\/repos","events_url":"https:\/\/api.github.com\/users\/torotoki\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/torotoki\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2024-10-05T11:54:35Z","updated_at":"2024-10-30T23:10:27Z","closed_at":"2024-10-08T15:45:18Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7200","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7200","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7200.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7200.patch","merged_at":"2024-10-08T15:45:17Z"},"body":"Resolve #6256. As far as I tested, `HF_DATASETS_CACHE` was ignored and I could not specify the cache directory at all except for the default one by this environment variable. `HF_HOME` has worked. Perhaps the recent change on file downloading by `huggingface_hub` could affect this bug.\r\n\r\nIn my testing, I could not specify the cache directory even by `load_dataset(\"dataset_name\" cache_dir=\"...\")`. It might be another issue. I also welcome any advice to solve this issue.","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7200\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7200\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7199","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7199\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7199\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7199\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7199","id":2566788225,"node_id":"PR_kwDODunzps59pN_M","number":7199,"title":"Add with_rank to Dataset.from_generator ","user":{"login":"muthissar","id":17828087,"node_id":"MDQ6VXNlcjE3ODI4MDg3","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/17828087?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/muthissar","html_url":"https:\/\/github.com\/muthissar","followers_url":"https:\/\/api.github.com\/users\/muthissar\/followers","following_url":"https:\/\/api.github.com\/users\/muthissar\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/muthissar\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/muthissar\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/muthissar\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/muthissar\/orgs","repos_url":"https:\/\/api.github.com\/users\/muthissar\/repos","events_url":"https:\/\/api.github.com\/users\/muthissar\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/muthissar\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-10-04T16:51:53Z","updated_at":"2024-10-04T16:51:53Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7199","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7199","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7199.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7199.patch","merged_at":null},"body":"Adds `with_rank` to `Dataset.from_generator`. As for `Dataset.map` and `Dataset.filter`, this is useful when creating cache files using multi-GPU.","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7199\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7199\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7198","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7198\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7198\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7198\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7198","id":2566064849,"node_id":"PR_kwDODunzps59mwgu","number":7198,"title":"Add repeat method to datasets","user":{"login":"alex-hh","id":5719745,"node_id":"MDQ6VXNlcjU3MTk3NDU=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/5719745?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/alex-hh","html_url":"https:\/\/github.com\/alex-hh","followers_url":"https:\/\/api.github.com\/users\/alex-hh\/followers","following_url":"https:\/\/api.github.com\/users\/alex-hh\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/alex-hh\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/alex-hh\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/alex-hh\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/alex-hh\/orgs","repos_url":"https:\/\/api.github.com\/users\/alex-hh\/repos","events_url":"https:\/\/api.github.com\/users\/alex-hh\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/alex-hh\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2024-10-04T10:45:16Z","updated_at":"2025-02-05T16:32:31Z","closed_at":"2025-02-05T16:32:31Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7198","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7198","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7198.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7198.patch","merged_at":"2025-02-05T16:32:31Z"},"body":"Following up on discussion in #6623 and #7198 I thought this would be pretty useful for my case so had a go at implementing.\r\n\r\nMy main motivation is to be able to call iterable_dataset.repeat(None).take(samples_per_epoch) to safely avoid timeout issues in a distributed training setting. This would provide a straightforward workaround for several open issues related to this situation: https:\/\/github.com\/huggingface\/datasets\/issues\/6437, https:\/\/github.com\/huggingface\/datasets\/issues\/6594, https:\/\/github.com\/huggingface\/datasets\/issues\/6623, https:\/\/github.com\/huggingface\/datasets\/issues\/6719.\r\n\r\n@lhoestq let me know if this looks on the right track!","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7198\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7198\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7197","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7197\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7197\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7197\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7197","id":2565924788,"node_id":"I_kwDODunzps6Y8Oe0","number":7197,"title":"ConnectionError: Couldn't reach 'allenai\/c4' on the Hub (ConnectionError)\u6570\u636e\u96c6\u4e0b\u4e0d\u4e0b\u6765\uff0c\u600e\u4e48\u56de\u4e8b","user":{"login":"Mrgengli","id":114299344,"node_id":"U_kgDOBtAR0A","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/114299344?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Mrgengli","html_url":"https:\/\/github.com\/Mrgengli","followers_url":"https:\/\/api.github.com\/users\/Mrgengli\/followers","following_url":"https:\/\/api.github.com\/users\/Mrgengli\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Mrgengli\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Mrgengli\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Mrgengli\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Mrgengli\/orgs","repos_url":"https:\/\/api.github.com\/users\/Mrgengli\/repos","events_url":"https:\/\/api.github.com\/users\/Mrgengli\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Mrgengli\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-10-04T09:33:25Z","updated_at":"2025-02-26T02:26:16Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nfrom datasets import load_dataset\r\nprint(\"11\")\r\ntraindata = load_dataset('ptb_text_only', 'penn_treebank', split='train')\r\nprint(\"22\")\r\nvaldata = load_dataset('ptb_text_only',\r\n 'penn_treebank',\r\n split='validation')\n\n### Steps to reproduce the bug\n\n1\n\n### Expected behavior\n\n1\n\n### Environment info\n\n1","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7197\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7197\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7196","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7196\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7196\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7196\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7196","id":2564218566,"node_id":"I_kwDODunzps6Y1t7G","number":7196,"title":"concatenate_datasets does not preserve shuffling state","user":{"login":"alex-hh","id":5719745,"node_id":"MDQ6VXNlcjU3MTk3NDU=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/5719745?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/alex-hh","html_url":"https:\/\/github.com\/alex-hh","followers_url":"https:\/\/api.github.com\/users\/alex-hh\/followers","following_url":"https:\/\/api.github.com\/users\/alex-hh\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/alex-hh\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/alex-hh\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/alex-hh\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/alex-hh\/orgs","repos_url":"https:\/\/api.github.com\/users\/alex-hh\/repos","events_url":"https:\/\/api.github.com\/users\/alex-hh\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/alex-hh\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-10-03T14:30:38Z","updated_at":"2025-03-18T10:56:47Z","closed_at":null,"author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\r\n\r\nAfter concatenate datasets on an iterable dataset, the shuffling state is destroyed, similar to #7156 \r\n\r\nThis means concatenation cant be used for resolving uneven numbers of samples across devices when using iterable datasets in a distributed setting as discussed in #6623 \r\n\r\nI also noticed that the number of shards is the same after concatenation, which I found surprising, but I don't understand the internals well enough to know whether this is actually surprising or not\r\n\r\n### Steps to reproduce the bug\r\n\r\n```python\r\nimport datasets\r\nimport torch.utils.data\r\n\r\n\r\ndef gen(shards):\r\n yield {\"shards\": shards}\r\n\r\n\r\ndef main():\r\n dataset1 = datasets.IterableDataset.from_generator(\r\n gen, gen_kwargs={\"shards\": list(range(25))} # TODO: how to understand this?\r\n )\r\n dataset2 = datasets.IterableDataset.from_generator(\r\n gen, gen_kwargs={\"shards\": list(range(25, 50))} # TODO: how to understand this?\r\n )\r\n dataset1 = dataset1.shuffle(buffer_size=1)\r\n dataset2 = dataset2.shuffle(buffer_size=1)\r\n print(dataset1.n_shards)\r\n print(dataset2.n_shards)\r\n\r\n dataset = datasets.concatenate_datasets(\r\n [dataset1, dataset2]\r\n )\r\n print(dataset.n_shards)\r\n # dataset = dataset1\r\n\r\n dataloader = torch.utils.data.DataLoader(\r\n dataset,\r\n batch_size=8,\r\n num_workers=0,\r\n )\r\n\r\n for i, batch in enumerate(dataloader):\r\n print(batch)\r\n print(\"\\nNew epoch\")\r\n\r\n dataset = dataset.set_epoch(1)\r\n\r\n for i, batch in enumerate(dataloader):\r\n print(batch)\r\n\r\n\r\nif __name__ == \"__main__\":\r\n main()\r\n```\r\n\r\n### Expected behavior\r\n\r\nShuffling state should be preserved\r\n\r\n### Environment info\r\n\r\nLatest datasets","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7196\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7196\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7195","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7195\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7195\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7195\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7195","id":2564070809,"node_id":"I_kwDODunzps6Y1J2Z","number":7195,"title":"Add support for 3D datasets","user":{"login":"severo","id":1676121,"node_id":"MDQ6VXNlcjE2NzYxMjE=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/1676121?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/severo","html_url":"https:\/\/github.com\/severo","followers_url":"https:\/\/api.github.com\/users\/severo\/followers","following_url":"https:\/\/api.github.com\/users\/severo\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/severo\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/severo\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/severo\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/severo\/orgs","repos_url":"https:\/\/api.github.com\/users\/severo\/repos","events_url":"https:\/\/api.github.com\/users\/severo\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/severo\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":{"login":"severo","id":1676121,"node_id":"MDQ6VXNlcjE2NzYxMjE=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/1676121?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/severo","html_url":"https:\/\/github.com\/severo","followers_url":"https:\/\/api.github.com\/users\/severo\/followers","following_url":"https:\/\/api.github.com\/users\/severo\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/severo\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/severo\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/severo\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/severo\/orgs","repos_url":"https:\/\/api.github.com\/users\/severo\/repos","events_url":"https:\/\/api.github.com\/users\/severo\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/severo\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"severo","id":1676121,"node_id":"MDQ6VXNlcjE2NzYxMjE=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/1676121?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/severo","html_url":"https:\/\/github.com\/severo","followers_url":"https:\/\/api.github.com\/users\/severo\/followers","following_url":"https:\/\/api.github.com\/users\/severo\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/severo\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/severo\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/severo\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/severo\/orgs","repos_url":"https:\/\/api.github.com\/users\/severo\/repos","events_url":"https:\/\/api.github.com\/users\/severo\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/severo\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":3,"created_at":"2024-10-03T13:27:44Z","updated_at":"2024-10-04T09:23:36Z","closed_at":null,"author_association":"COLLABORATOR","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"See https:\/\/huggingface.co\/datasets\/allenai\/objaverse for example","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7195\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7195\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7194","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7194\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7194\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7194\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7194","id":2563364199,"node_id":"I_kwDODunzps6YydVn","number":7194,"title":"datasets.exceptions.DatasetNotFoundError for private dataset","user":{"login":"kdutia","id":20212179,"node_id":"MDQ6VXNlcjIwMjEyMTc5","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/20212179?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/kdutia","html_url":"https:\/\/github.com\/kdutia","followers_url":"https:\/\/api.github.com\/users\/kdutia\/followers","following_url":"https:\/\/api.github.com\/users\/kdutia\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/kdutia\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/kdutia\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/kdutia\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/kdutia\/orgs","repos_url":"https:\/\/api.github.com\/users\/kdutia\/repos","events_url":"https:\/\/api.github.com\/users\/kdutia\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/kdutia\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-10-03T07:49:36Z","updated_at":"2024-10-03T10:09:28Z","closed_at":"2024-10-03T10:09:28Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\r\n\r\nThe following Python code tries to download a private dataset and fails with the error `datasets.exceptions.DatasetNotFoundError: Dataset 'ClimatePolicyRadar\/all-document-text-data-weekly' doesn't exist on the Hub or cannot be accessed.`. Downloading a public dataset doesn't work.\r\n\r\n``` py\r\nfrom datasets import load_dataset\r\n_ = load_dataset(\"ClimatePolicyRadar\/all-document-text-data-weekly\")\r\n```\r\n\r\nThis seems to be just an issue with my machine config as the code above works with a colleague's machine. So far I have tried:\r\n\r\n- logging back out and in from the Huggingface CLI using `huggingface-cli logout`\r\n- manually removing the token cache at `\/Users\/kalyan\/.cache\/huggingface\/token` (found using `huggingface-cli env`)\r\n- manually passing a token in `load_dataset`\r\n\r\nMy output of `huggingface-cli whoami`:\r\n\r\n```\r\nkdutia\r\norgs: ClimatePolicyRadar\r\n```\r\n\r\n### Steps to reproduce the bug\r\n\r\n```\r\npython\r\nPython 3.12.2 (main, Feb 6 2024, 20:19:44) [Clang 15.0.0 (clang-1500.1.0.2.5)] on darwin\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n>>> from datasets import load_dataset\r\n>>> _ = load_dataset(\"ClimatePolicyRadar\/all-document-text-data-weekly\")\r\nTraceback (most recent call last):\r\n File \"\", line 1, in \r\n File \"\/Users\/kalyan\/Library\/Caches\/pypoetry\/virtualenvs\/open-data-cnKQNmjn-py3.12\/lib\/python3.12\/site-packages\/datasets\/load.py\", line 2074, in load_dataset\r\n builder_instance = load_dataset_builder(\r\n ^^^^^^^^^^^^^^^^^^^^^\r\n File \"\/Users\/kalyan\/Library\/Caches\/pypoetry\/virtualenvs\/open-data-cnKQNmjn-py3.12\/lib\/python3.12\/site-packages\/datasets\/load.py\", line 1795, in load_dataset_builder\r\n dataset_module = dataset_module_factory(\r\n ^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"\/Users\/kalyan\/Library\/Caches\/pypoetry\/virtualenvs\/open-data-cnKQNmjn-py3.12\/lib\/python3.12\/site-packages\/datasets\/load.py\", line 1659, in dataset_module_factory\r\n raise e1 from None\r\n File \"\/Users\/kalyan\/Library\/Caches\/pypoetry\/virtualenvs\/open-data-cnKQNmjn-py3.12\/lib\/python3.12\/site-packages\/datasets\/load.py\", line 1597, in dataset_module_factory\r\n raise DatasetNotFoundError(f\"Dataset '{path}' doesn't exist on the Hub or cannot be accessed.\") from e\r\ndatasets.exceptions.DatasetNotFoundError: Dataset 'ClimatePolicyRadar\/all-document-text-data-weekly' doesn't exist on the Hub or cannot be accessed.\r\n>>>\r\n```\r\n\r\n### Expected behavior\r\n\r\nThe dataset downloads successfully.\r\n\r\n### Environment info\r\n\r\nFrom `huggingface-cli env`:\r\n\r\n```\r\n- huggingface_hub version: 0.25.1\r\n- Platform: macOS-14.2.1-arm64-arm-64bit\r\n- Python version: 3.12.2\r\n- Running in iPython ?: No\r\n- Running in notebook ?: No\r\n- Running in Google Colab ?: No\r\n- Running in Google Colab Enterprise ?: No\r\n- Token path ?: \/Users\/kalyan\/.cache\/huggingface\/token\r\n- Has saved token ?: True\r\n- Who am I ?: kdutia\r\n- Configured git credential helpers: osxkeychain\r\n- FastAI: N\/A\r\n- Tensorflow: N\/A\r\n- Torch: N\/A\r\n- Jinja2: 3.1.4\r\n- Graphviz: N\/A\r\n- keras: N\/A\r\n- Pydot: N\/A\r\n- Pillow: N\/A\r\n- hf_transfer: N\/A\r\n- gradio: N\/A\r\n- tensorboard: N\/A\r\n- numpy: 2.1.1\r\n- pydantic: N\/A\r\n- aiohttp: 3.10.8\r\n- ENDPOINT: https:\/\/huggingface.co\r\n- HF_HUB_CACHE: \/Users\/kalyan\/.cache\/huggingface\/hub\r\n- HF_ASSETS_CACHE: \/Users\/kalyan\/.cache\/huggingface\/assets\r\n- HF_TOKEN_PATH: \/Users\/kalyan\/.cache\/huggingface\/token\r\n- HF_HUB_OFFLINE: False\r\n- HF_HUB_DISABLE_TELEMETRY: False\r\n- HF_HUB_DISABLE_PROGRESS_BARS: None\r\n- HF_HUB_DISABLE_SYMLINKS_WARNING: False\r\n- HF_HUB_DISABLE_EXPERIMENTAL_WARNING: False\r\n- HF_HUB_DISABLE_IMPLICIT_TOKEN: False\r\n- HF_HUB_ENABLE_HF_TRANSFER: False\r\n- HF_HUB_ETAG_TIMEOUT: 10\r\n- HF_HUB_DOWNLOAD_TIMEOUT: 10\r\n```\r\n\r\nfrom `datasets-cli env`:\r\n\r\n```\r\n- `datasets` version: 3.0.1\r\n- Platform: macOS-14.2.1-arm64-arm-64bit\r\n- Python version: 3.12.2\r\n- `huggingface_hub` version: 0.25.1\r\n- PyArrow version: 17.0.0\r\n- Pandas version: 2.2.3\r\n- `fsspec` version: 2024.6.1\r\n```","closed_by":{"login":"davanstrien","id":8995957,"node_id":"MDQ6VXNlcjg5OTU5NTc=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8995957?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/davanstrien","html_url":"https:\/\/github.com\/davanstrien","followers_url":"https:\/\/api.github.com\/users\/davanstrien\/followers","following_url":"https:\/\/api.github.com\/users\/davanstrien\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/davanstrien\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/davanstrien\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/davanstrien\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/davanstrien\/orgs","repos_url":"https:\/\/api.github.com\/users\/davanstrien\/repos","events_url":"https:\/\/api.github.com\/users\/davanstrien\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/davanstrien\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7194\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7194\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7193","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7193\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7193\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7193\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7193","id":2562392887,"node_id":"I_kwDODunzps6YuwM3","number":7193,"title":"Support of num_workers (multiprocessing) in map for IterableDataset","user":{"login":"getao","id":12735658,"node_id":"MDQ6VXNlcjEyNzM1NjU4","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/12735658?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/getao","html_url":"https:\/\/github.com\/getao","followers_url":"https:\/\/api.github.com\/users\/getao\/followers","following_url":"https:\/\/api.github.com\/users\/getao\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/getao\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/getao\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/getao\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/getao\/orgs","repos_url":"https:\/\/api.github.com\/users\/getao\/repos","events_url":"https:\/\/api.github.com\/users\/getao\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/getao\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-10-02T18:34:04Z","updated_at":"2024-10-03T09:54:15Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nCurrently, IterableDataset doesn't support setting num_worker in .map(), which results in slow processing here. Could we add support for it? As .map() can be run in the batch fashion (e.g., batch_size is default to 1000 in datasets), it seems to be doable for IterableDataset as the regular Dataset.\n\n### Motivation\n\nImproving data processing efficiency\n\n### Your contribution\n\nTesting","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7193\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7193\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7192","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7192\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7192\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7192\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7192","id":2562289642,"node_id":"I_kwDODunzps6YuW_q","number":7192,"title":"Add repeat() for iterable datasets","user":{"login":"alex-hh","id":5719745,"node_id":"MDQ6VXNlcjU3MTk3NDU=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/5719745?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/alex-hh","html_url":"https:\/\/github.com\/alex-hh","followers_url":"https:\/\/api.github.com\/users\/alex-hh\/followers","following_url":"https:\/\/api.github.com\/users\/alex-hh\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/alex-hh\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/alex-hh\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/alex-hh\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/alex-hh\/orgs","repos_url":"https:\/\/api.github.com\/users\/alex-hh\/repos","events_url":"https:\/\/api.github.com\/users\/alex-hh\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/alex-hh\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2024-10-02T17:48:13Z","updated_at":"2025-03-18T10:48:33Z","closed_at":"2025-03-18T10:48:32Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\r\n\r\nIt would be useful to be able to straightforwardly repeat iterable datasets indefinitely, to provide complete control over starting and ending of iteration to the user.\r\n\r\nAn IterableDataset.repeat(n) function could do this automatically\r\n\r\n### Motivation\r\n\r\nThis feature was discussed in this issue https:\/\/github.com\/huggingface\/datasets\/issues\/7147, and would resolve the need to use the hack of interleave datasets with probability 0 as a simple way to achieve this functionality.\r\n\r\nAn additional benefit might be the simplification of the use of iterable datasets in a distributed setting:\r\nIf the user can assume that datasets will repeat indefinitely, then issues around different numbers of samples appearing on different devices (e.g. https:\/\/github.com\/huggingface\/datasets\/issues\/6437, https:\/\/github.com\/huggingface\/datasets\/issues\/6594, https:\/\/github.com\/huggingface\/datasets\/issues\/6623, https:\/\/github.com\/huggingface\/datasets\/issues\/6719) can potentially be straightforwardly resolved by simply doing:\r\n\r\nids.repeat(None).take(n_samples_per_epoch)\r\n\r\n\r\n### Your contribution\r\n\r\nI'm not familiar enough with the codebase to assess how straightforward this would be to implement.\r\n\r\nIf it might be very straightforward, I could possibly have a go.","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7192\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7192\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7191","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7191\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7191\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7191\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7191","id":2562206949,"node_id":"PR_kwDODunzps59Z1zy","number":7191,"title":"Solution to issue: #7080 Modified load_dataset function, so that it prompts the user to select a dataset when subdatasets or splits (train, test) are available","user":{"login":"negativenagesh","id":148525245,"node_id":"U_kgDOCNpQvQ","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/148525245?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/negativenagesh","html_url":"https:\/\/github.com\/negativenagesh","followers_url":"https:\/\/api.github.com\/users\/negativenagesh\/followers","following_url":"https:\/\/api.github.com\/users\/negativenagesh\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/negativenagesh\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/negativenagesh\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/negativenagesh\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/negativenagesh\/orgs","repos_url":"https:\/\/api.github.com\/users\/negativenagesh\/repos","events_url":"https:\/\/api.github.com\/users\/negativenagesh\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/negativenagesh\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-10-02T17:02:45Z","updated_at":"2024-11-10T08:48:21Z","closed_at":"2024-11-10T08:48:21Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7191","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7191","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7191.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7191.patch","merged_at":null},"body":"# Feel free to give suggestions please..\r\n\r\n### This PR is raised because of issue: https:\/\/github.com\/huggingface\/datasets\/issues\/7080\r\n\r\n![image](https:\/\/github.com\/user-attachments\/assets\/8fbc604f-f0a5-4a59-a63e-aa4c26442c83)\r\n\r\n### This PR gives solution to https:\/\/github.com\/huggingface\/datasets\/issues\/7080\r\n\r\n1. Checking whether the dataset has splits or subdatasets.\r\n2. Printing the available splits\/subdatasets.\r\n3. Asking the user to choose which one to load.\r\n4. Loading only the selected dataset based on the user's input.\r\n\r\n### Key Changes:\r\n\r\n1. Available Splits\/Subdatasets: The code checks for available splits\/subdatasets using builder_instance.info.splits.keys().\r\n2. User Prompt: If splits are found, it prints them out and prompts the user to select one.\r\n3. Loading Based on User Input: The dataset is loaded based on the user's choice.\r\n\r\nThis way, the dataset loading function will interactively prompt the user to select which subdataset or split they want to load instead of automatically loading all of them.\r\n","closed_by":{"login":"negativenagesh","id":148525245,"node_id":"U_kgDOCNpQvQ","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/148525245?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/negativenagesh","html_url":"https:\/\/github.com\/negativenagesh","followers_url":"https:\/\/api.github.com\/users\/negativenagesh\/followers","following_url":"https:\/\/api.github.com\/users\/negativenagesh\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/negativenagesh\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/negativenagesh\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/negativenagesh\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/negativenagesh\/orgs","repos_url":"https:\/\/api.github.com\/users\/negativenagesh\/repos","events_url":"https:\/\/api.github.com\/users\/negativenagesh\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/negativenagesh\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7191\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7191\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7190","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7190\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7190\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7190\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7190","id":2562162725,"node_id":"I_kwDODunzps6Yt4Al","number":7190,"title":"Datasets conflicts with fsspec 2024.9","user":{"login":"cw-igormorgado","id":162599174,"node_id":"U_kgDOCbERBg","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/162599174?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/cw-igormorgado","html_url":"https:\/\/github.com\/cw-igormorgado","followers_url":"https:\/\/api.github.com\/users\/cw-igormorgado\/followers","following_url":"https:\/\/api.github.com\/users\/cw-igormorgado\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/cw-igormorgado\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/cw-igormorgado\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/cw-igormorgado\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/cw-igormorgado\/orgs","repos_url":"https:\/\/api.github.com\/users\/cw-igormorgado\/repos","events_url":"https:\/\/api.github.com\/users\/cw-igormorgado\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/cw-igormorgado\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-10-02T16:43:46Z","updated_at":"2024-10-10T07:33:18Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nInstalling both in latest versions are not possible\r\n\r\n`pip install \"datasets==3.0.1\" \"fsspec==2024.9.0\"`\r\n\r\nBut using older version of datasets is ok\r\n\r\n`pip install \"datasets==1.24.4\" \"fsspec==2024.9.0\"`\r\n\r\n\n\n### Steps to reproduce the bug\n\n`pip install \"datasets==3.0.1\" \"fsspec==2024.9.0\"`\r\n\n\n### Expected behavior\n\ninstall both versions.\n\n### Environment info\n\ndebian 11.\r\npython 3.10.15","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7190\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7190\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7189","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7189\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7189\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7189\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7189","id":2562152845,"node_id":"I_kwDODunzps6Yt1mN","number":7189,"title":"Audio preview in dataset viewer for audio array data without a path\/filename","user":{"login":"Lauler","id":7157234,"node_id":"MDQ6VXNlcjcxNTcyMzQ=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/7157234?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Lauler","html_url":"https:\/\/github.com\/Lauler","followers_url":"https:\/\/api.github.com\/users\/Lauler\/followers","following_url":"https:\/\/api.github.com\/users\/Lauler\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Lauler\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Lauler\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Lauler\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Lauler\/orgs","repos_url":"https:\/\/api.github.com\/users\/Lauler\/repos","events_url":"https:\/\/api.github.com\/users\/Lauler\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Lauler\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-10-02T16:38:38Z","updated_at":"2024-10-02T17:01:40Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\r\n\r\nHuggingface has quite a comprehensive set of guides for [audio datasets](https:\/\/huggingface.co\/docs\/datasets\/en\/audio_dataset). It seems, however, all these guides assume the audio array data to be decoded\/inserted into a HF dataset always originates from individual files. The [Audio-dataclass](https:\/\/github.com\/huggingface\/datasets\/blob\/3.0.1\/src\/datasets\/features\/audio.py#L20) appears designed with this assumption in mind. Looking at its source code it returns a dictionary with the keys `path`, `array` and `sampling_rate`. \r\n\r\nHowever, sometimes users may have different pipelines where they themselves decode the audio array. This feature request has to do with wishing some clarification in guides on whether it is possible, and in such case how users can insert already decoded audio array data into datasets (pandas DataFrame, HF dataset or whatever) that are later saved as parquet, and still get a functioning audio preview in the dataset viewer. \r\n\r\nDo I perhaps need to write a tempfile of my audio array slice to wav and capture the bytes object with `io.BytesIO` and pass that to `Audio()`? \r\n\r\n### Motivation\r\n\r\nI'm working with large audio datasets, and my pipeline reads (decodes) audio from larger files, and slices the relevant portions of audio from that larger file based on metadata I have available. \r\n\r\nThe pipeline is designed this way to avoid having to store multiple copies of data, and to avoid having to store tens of millions of small files. \r\n\r\nI tried [test-uploading parquet files](https:\/\/huggingface.co\/datasets\/Lauler\/riksdagen_test) where I store the audio array data of decoded slices of audio in an `audio` column with a dictionary with the keys `path`, `array` and `sampling_rate`. But I don't know the secret sauce of what the Huggingface Hub expects and requires to be able to display audio previews correctly. \r\n\r\n### Your contribution\r\n\r\nI could contribute a tool agnostic guide of creating HF audio datasets directly as parquet to the HF documentation if there is an interest. Provided you help me figure out the secret sauce of what the dataset viewer expects to display the preview correctly.","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7189\/reactions","total_count":1,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7189\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7188","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7188\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7188\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7188\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7188","id":2560712689,"node_id":"PR_kwDODunzps59VSrf","number":7188,"title":"Pin multiprocess<0.70.1 to align with dill<0.3.9","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-10-02T05:40:18Z","updated_at":"2024-10-02T06:08:25Z","closed_at":"2024-10-02T06:08:23Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7188","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7188","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7188.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7188.patch","merged_at":"2024-10-02T06:08:23Z"},"body":"Pin multiprocess<0.70.1 to align with dill<0.3.9.\r\n\r\nNote that multiprocess-0.70.1 requires dill-0.3.9: https:\/\/github.com\/uqfoundation\/multiprocess\/releases\/tag\/0.70.17\r\n\r\nFix #7186.","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7188\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7188\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7187","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7187\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7187\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7187\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7187","id":2560501308,"node_id":"I_kwDODunzps6YniY8","number":7187,"title":"shard_data_sources() got an unexpected keyword argument 'worker_id'","user":{"login":"Qinghao-Hu","id":27758466,"node_id":"MDQ6VXNlcjI3NzU4NDY2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/27758466?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Qinghao-Hu","html_url":"https:\/\/github.com\/Qinghao-Hu","followers_url":"https:\/\/api.github.com\/users\/Qinghao-Hu\/followers","following_url":"https:\/\/api.github.com\/users\/Qinghao-Hu\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Qinghao-Hu\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Qinghao-Hu\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Qinghao-Hu\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Qinghao-Hu\/orgs","repos_url":"https:\/\/api.github.com\/users\/Qinghao-Hu\/repos","events_url":"https:\/\/api.github.com\/users\/Qinghao-Hu\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Qinghao-Hu\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-10-02T01:26:35Z","updated_at":"2024-10-02T01:26:35Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\n```\r\n[rank0]: File \"\/home\/qinghao\/miniconda3\/envs\/doremi\/lib\/python3.10\/site-packages\/datasets\/iterable_dataset.py\", line 238, in __iter__\r\n[rank0]: for key_example in islice(self.generate_examples_fn(**gen_kwags), shard_example_idx_start, None):\r\n[rank0]: File \"\/home\/qinghao\/miniconda3\/envs\/doremi\/lib\/python3.10\/site-packages\/datasets\/packaged_modules\/generator\/generator.py\", line 32, in _generate_examples\r\n[rank0]: for idx, ex in enumerate(self.config.generator(**gen_kwargs)):\r\n[rank0]: File \"\/home\/qinghao\/workdir\/doremi\/doremi\/dataloader.py\", line 337, in take_data_generator\r\n[rank0]: for ex in ds:\r\n[rank0]: File \"\/home\/qinghao\/miniconda3\/envs\/doremi\/lib\/python3.10\/site-packages\/datasets\/iterable_dataset.py\", line 1791, in __iter__\r\n[rank0]: yield from self._iter_pytorch()\r\n[rank0]: File \"\/home\/qinghao\/miniconda3\/envs\/doremi\/lib\/python3.10\/site-packages\/datasets\/iterable_dataset.py\", line 1704, in _iter_pytorch\r\n[rank0]: ex_iterable = ex_iterable.shard_data_sources(worker_id=worker_info.id, num_workers=worker_info.num_workers)\r\n[rank0]: TypeError: UpdatableRandomlyCyclingMultiSourcesExamplesIterable.shard_data_sources() got an unexpected keyword argument 'worker_id'\r\n```\n\n### Steps to reproduce the bug\n\nIterableDataset cannot use\n\n### Expected behavior\n\ncan work on datasets==2.10, but will raise error for later versions.\n\n### Environment info\n\ndatasets==3.0.1","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7187\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7187\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7186","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7186\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7186\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7186\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7186","id":2560323917,"node_id":"I_kwDODunzps6Ym3FN","number":7186,"title":"pinning `dill<0.3.9` without pinning `multiprocess` ","user":{"login":"shubhbapna","id":38372682,"node_id":"MDQ6VXNlcjM4MzcyNjgy","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/38372682?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/shubhbapna","html_url":"https:\/\/github.com\/shubhbapna","followers_url":"https:\/\/api.github.com\/users\/shubhbapna\/followers","following_url":"https:\/\/api.github.com\/users\/shubhbapna\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/shubhbapna\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/shubhbapna\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/shubhbapna\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/shubhbapna\/orgs","repos_url":"https:\/\/api.github.com\/users\/shubhbapna\/repos","events_url":"https:\/\/api.github.com\/users\/shubhbapna\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/shubhbapna\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":0,"created_at":"2024-10-01T22:29:32Z","updated_at":"2024-10-02T06:08:24Z","closed_at":"2024-10-02T06:08:24Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nThe [latest `multiprocess` release](https:\/\/github.com\/uqfoundation\/multiprocess\/releases\/tag\/0.70.17) requires `dill>=0.3.9` which causes issues when installing `datasets` without backtracking during package version resolution. Is it possible to add a pin for multiprocess so something like `multiprocess<=0.70.16` so that the `dill` version is compatible?\n\n### Steps to reproduce the bug\n\nNA\n\n### Expected behavior\n\nNA\n\n### Environment info\n\nNA","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7186\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7186\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7185","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7185\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7185\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7185\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7185","id":2558508748,"node_id":"I_kwDODunzps6Yf77M","number":7185,"title":"CI benchmarks are broken","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":4296013012,"node_id":"LA_kwDODunzps8AAAABAA_01A","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/maintenance","name":"maintenance","color":"d4c5f9","default":false,"description":"Maintenance tasks"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-10-01T08:16:08Z","updated_at":"2024-10-09T16:07:48Z","closed_at":"2024-10-09T16:07:48Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"Since Aug 30, 2024, CI benchmarks are broken: https:\/\/github.com\/huggingface\/datasets\/actions\/runs\/11108421214\/job\/30861323975\r\n```\r\n{\"level\":\"error\",\"message\":\"Resource not accessible by integration\",\"name\":\"HttpError\",\"request\":{\"body\":\"{\\\"body\\\":\\\"
\\\\nShow benchmarks<\/summary>\\\\n\\\\nPyArrow==8.0.0\\\\n\\\\n
\\\\nShow updated benchmarks!<\/summary>\\\\n\\\\n### Benchmark: benchmark_array_xd.json\\\\n\\\\n| metric | read_batch_formatted_as_numpy after write_array2d |\r\n...\r\n\"headers\":{\"accept\":\"application\/vnd.github.v3+json\",\"authorization\":\"token [REDACTED]\",\"content-type\":\"application\/json; charset=utf-8\",\"user-agent\":\"octokit-rest.js\/18.0.0 octokit-core.js\/3.6.0 Node.js\/16.20.2 (linux; x64)\"},\"method\":\"POST\",\"request\":{\"agent\":{\"_events\":{},\"_eventsCount\":2,\"cache\":\r\n...\r\n\"response\":{\"data\":{\"documentation_url\":\"https:\/\/docs.github.com\/rest\/issues\/comments#create-an-issue-comment\",\"message\":\"Resource not accessible by integration\",\"status\":\"403\"},\r\n...\r\n\"stack\":\"HttpError: Resource not accessible by integration\\n at \/usr\/lib\/node_modules\/@dvcorg\/cml\/node_modules\/@octokit\/request\/dist-node\/index.js:86:21\\n at processTicksAndRejections (node:internal\/process\/task_queues:96:5)\\n at async Job.doExecute (\/usr\/lib\/node_modules\/@dvcorg\/cml\/node_modules\/bottleneck\/light.js:405:18)\",\"status\":403}\r\n```","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7185\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7185\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7184","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7184\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7184\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7184\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7184","id":2556855150,"node_id":"PR_kwDODunzps59IPEf","number":7184,"title":"Pin dill<0.3.9 to fix CI","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-09-30T14:26:25Z","updated_at":"2024-09-30T14:38:59Z","closed_at":"2024-09-30T14:38:57Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7184","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7184","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7184.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7184.patch","merged_at":"2024-09-30T14:38:57Z"},"body":"Pin dill<0.3.9 to fix CI for deps-latest.\r\n\r\nNote that dill-0.3.9 was released yesterday Sep 29, 2024:\r\n- https:\/\/pypi.org\/project\/dill\/0.3.9\/\r\n- https:\/\/github.com\/uqfoundation\/dill\/releases\/tag\/0.3.9\r\n\r\nFix #7183.","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7184\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7184\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7183","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7183\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7183\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7183\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7183","id":2556789055,"node_id":"I_kwDODunzps6YZYE_","number":7183,"title":"CI is broken for deps-latest","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-09-30T14:02:07Z","updated_at":"2024-09-30T14:38:58Z","closed_at":"2024-09-30T14:38:58Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"See: https:\/\/github.com\/huggingface\/datasets\/actions\/runs\/11106149906\/job\/30853879890\r\n\r\n```\r\n=========================== short test summary info ============================\r\nFAILED tests\/test_arrow_dataset.py::BaseDatasetTest::test_filter_caching_on_disk - AssertionError: Lists differ: [{'fi[44 chars] {'filename': '\/tmp\/tmp6xcyyjs4\/cache-9533fe2601cd3e48.arrow'}] != [{'fi[44 chars] {'filename': '\/tmp\/tmp6xcyyjs4\/cache-e6e0a8b830976289.arrow'}]\r\n\r\nFirst differing element 1:\r\n{'filename': '\/tmp\/tmp6xcyyjs4\/cache-9533fe2601cd3e48.arrow'}\r\n{'filename': '\/tmp\/tmp6xcyyjs4\/cache-e6e0a8b830976289.arrow'}\r\n\r\n [{'filename': '\/tmp\/tmp6xcyyjs4\/dataset0.arrow'},\r\n- {'filename': '\/tmp\/tmp6xcyyjs4\/cache-9533fe2601cd3e48.arrow'}]\r\n? ^^^^^ --------\r\n\r\n+ {'filename': '\/tmp\/tmp6xcyyjs4\/cache-e6e0a8b830976289.arrow'}]\r\n? ++++++++++ ^^ +\r\nFAILED tests\/test_arrow_dataset.py::BaseDatasetTest::test_map_caching_on_disk - AssertionError: Lists differ: [{'filename': '\/tmp\/tmp5gxrti_n\/cache-e58d327daec8626f.arrow'}] != [{'filename': '\/tmp\/tmp5gxrti_n\/cache-d87234c5763e54a3.arrow'}]\r\n\r\nFirst differing element 0:\r\n{'filename': '\/tmp\/tmp5gxrti_n\/cache-e58d327daec8626f.arrow'}\r\n{'filename': '\/tmp\/tmp5gxrti_n\/cache-d87234c5763e54a3.arrow'}\r\n\r\n- [{'filename': '\/tmp\/tmp5gxrti_n\/cache-e58d327daec8626f.arrow'}]\r\n? ^^ -----------\r\n\r\n+ [{'filename': '\/tmp\/tmp5gxrti_n\/cache-d87234c5763e54a3.arrow'}]\r\n? +++++++++++ ^^\r\nFAILED tests\/test_fingerprint.py::TokenizersHashTest::test_hash_regex - NameError: name 'log' is not defined\r\nFAILED tests\/test_fingerprint.py::RecurseHashTest::test_hash_ignores_line_definition_of_function - AssertionError: '52e56ee04ad92499' != '0a4f75cec280f634'\r\n- 52e56ee04ad92499\r\n+ 0a4f75cec280f634\r\nFAILED tests\/test_fingerprint.py::RecurseHashTest::test_hash_ipython_function - AssertionError: 'a6bd2041ca63d6c0' != '517bf36b7eecdef5'\r\n- a6bd2041ca63d6c0\r\n+ 517bf36b7eecdef5\r\nFAILED tests\/test_fingerprint.py::HashingTest::test_hash_tiktoken_encoding - NameError: name 'log' is not defined\r\nFAILED tests\/test_fingerprint.py::HashingTest::test_hash_torch_compiled_module - NameError: name 'log' is not defined\r\nFAILED tests\/test_fingerprint.py::HashingTest::test_hash_torch_generator - NameError: name 'log' is not defined\r\nFAILED tests\/test_fingerprint.py::HashingTest::test_hash_torch_tensor - NameError: name 'log' is not defined\r\nFAILED tests\/test_fingerprint.py::HashingTest::test_set_doesnt_depend_on_order - NameError: name 'log' is not defined\r\nFAILED tests\/test_fingerprint.py::HashingTest::test_set_stable - NameError: name 'log' is not defined\r\nERROR tests\/test_iterable_dataset.py::test_iterable_dataset_from_file - NameError: name 'log' is not defined\r\n= 11 failed, 2850 passed, 3 skipped, 23 warnings, 1 error in 191.06s (0:03:11) =\r\n```","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7183\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7183\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7182","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7182\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7182\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7182\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7182","id":2556333671,"node_id":"PR_kwDODunzps59GdLS","number":7182,"title":"Support features in metadata configs","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-09-30T11:14:53Z","updated_at":"2024-10-09T16:03:57Z","closed_at":"2024-10-09T16:03:54Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7182","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7182","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7182.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7182.patch","merged_at":"2024-10-09T16:03:54Z"},"body":"Support features in metadata configs, like:\r\n```\r\nconfigs:\r\n - config_name: default\r\n features:\r\n - name: id\r\n dtype: int64\r\n - name: name\r\n dtype: string\r\n - name: score\r\n dtype: float64\r\n```\r\n\r\nThis will allow to avoid inference of data types.\r\n\r\nCurrently, we allow passing this information in the `dataset_info` (instead of `configs`) field, but this is not intuitive and it is not properly documented.\r\n\r\nTODO:\r\n- [ ] Document usage","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7182\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7182\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7181","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7181\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7181\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7181\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7181","id":2554917019,"node_id":"PR_kwDODunzps59Br4E","number":7181,"title":"Fix datasets export to JSON","user":{"login":"varadhbhatnagar","id":20443618,"node_id":"MDQ6VXNlcjIwNDQzNjE4","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/20443618?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/varadhbhatnagar","html_url":"https:\/\/github.com\/varadhbhatnagar","followers_url":"https:\/\/api.github.com\/users\/varadhbhatnagar\/followers","following_url":"https:\/\/api.github.com\/users\/varadhbhatnagar\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/varadhbhatnagar\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/varadhbhatnagar\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/varadhbhatnagar\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/varadhbhatnagar\/orgs","repos_url":"https:\/\/api.github.com\/users\/varadhbhatnagar\/repos","events_url":"https:\/\/api.github.com\/users\/varadhbhatnagar\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/varadhbhatnagar\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2024-09-29T12:45:20Z","updated_at":"2024-11-01T11:55:36Z","closed_at":"2024-11-01T11:55:36Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7181","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7181","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7181.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7181.patch","merged_at":null},"body":null,"closed_by":{"login":"varadhbhatnagar","id":20443618,"node_id":"MDQ6VXNlcjIwNDQzNjE4","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/20443618?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/varadhbhatnagar","html_url":"https:\/\/github.com\/varadhbhatnagar","followers_url":"https:\/\/api.github.com\/users\/varadhbhatnagar\/followers","following_url":"https:\/\/api.github.com\/users\/varadhbhatnagar\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/varadhbhatnagar\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/varadhbhatnagar\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/varadhbhatnagar\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/varadhbhatnagar\/orgs","repos_url":"https:\/\/api.github.com\/users\/varadhbhatnagar\/repos","events_url":"https:\/\/api.github.com\/users\/varadhbhatnagar\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/varadhbhatnagar\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7181\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7181\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7180","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7180\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7180\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7180\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7180","id":2554244750,"node_id":"I_kwDODunzps6YPq6O","number":7180,"title":"Memory leak when wrapping datasets into PyTorch Dataset without explicit deletion","user":{"login":"iamwangyabin","id":38123329,"node_id":"MDQ6VXNlcjM4MTIzMzI5","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/38123329?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/iamwangyabin","html_url":"https:\/\/github.com\/iamwangyabin","followers_url":"https:\/\/api.github.com\/users\/iamwangyabin\/followers","following_url":"https:\/\/api.github.com\/users\/iamwangyabin\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/iamwangyabin\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/iamwangyabin\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/iamwangyabin\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/iamwangyabin\/orgs","repos_url":"https:\/\/api.github.com\/users\/iamwangyabin\/repos","events_url":"https:\/\/api.github.com\/users\/iamwangyabin\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/iamwangyabin\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-09-28T14:00:47Z","updated_at":"2024-09-30T12:07:56Z","closed_at":"2024-09-30T12:07:56Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI've encountered a memory leak when wrapping the HuggingFace dataset into a PyTorch Dataset. The RAM usage constantly increases during iteration if items are not explicitly deleted after use.\r\n\r\n\r\n\r\n\r\n\r\n\r\n\n\n### Steps to reproduce the bug\n\n\r\nSteps to reproduce:\r\n\r\nCreate a PyTorch Dataset wrapper for 'nebula\/cc12m':\r\n````\r\nfrom torch.utils.data import Dataset\r\nfrom tqdm import tqdm\r\nfrom datasets import load_dataset\r\nfrom torchvision import transforms\r\n\r\nImage.MAX_IMAGE_PIXELS = None\r\n\r\nclass CC12M(Dataset):\r\n def __init__(self, path_or_name='nebula\/cc12m', split='train', transform=None, single_caption=True):\r\n self.raw_dataset = load_dataset(path_or_name)[split]\r\n\r\n if transform is None:\r\n self.transform = transforms.Compose([\r\n transforms.Resize((224, 224)),\r\n transforms.CenterCrop(224),\r\n transforms.ToTensor(),\r\n transforms.Normalize(\r\n mean=[0.48145466, 0.4578275, 0.40821073],\r\n std=[0.26862954, 0.26130258, 0.27577711]\r\n )\r\n ])\r\n else:\r\n self.transform = transforms.Compose(transform)\r\n\r\n self.single_caption = single_caption\r\n self.length = len(self.raw_dataset)\r\n\r\n def __len__(self):\r\n return self.length\r\n\r\n def __getitem__(self, index):\r\n item = self.raw_dataset[index]\r\n caption = item['txt']\r\n with io.BytesIO(item['webp']) as buffer:\r\n image = Image.open(buffer).convert('RGB')\r\n if self.transform:\r\n image = self.transform(image)\r\n # del item # Uncomment this line to prevent the memory leak\r\n return image, caption\r\n````\r\n\r\nIterate through the dataset without the del item line in __getitem__.\r\n\r\nObserve RAM usage increasing constantly.\r\n\r\nAdd del item at the end of __getitem__:\r\n\r\n```\r\ndef __getitem__(self, index):\r\n item = self.raw_dataset[index]\r\n caption = item['txt']\r\n with io.BytesIO(item['webp']) as buffer:\r\n image = Image.open(buffer).convert('RGB')\r\n if self.transform:\r\n image = self.transform(image)\r\n del item # This line prevents the memory leak\r\n return image, caption\r\n```\r\n\r\n\r\nIterate through the dataset again and observe that RAM usage remains stable.\r\n\r\n\n\n### Expected behavior\n\n\r\nExpected behavior:\r\nRAM usage should remain stable during iteration without needing to explicitly delete items.\r\n\r\nActual behavior:\r\nRAM usage constantly increases unless items are explicitly deleted after use\n\n### Environment info\n\n- `datasets` version: 2.21.0\r\n- Platform: Linux-4.18.0-513.5.1.el8_9.x86_64-x86_64-with-glibc2.28\r\n- Python version: 3.12.4\r\n- `huggingface_hub` version: 0.24.6\r\n- PyArrow version: 17.0.0\r\n- Pandas version: 2.2.2\r\n- `fsspec` version: 2024.6.1\r\n\r\n","closed_by":{"login":"iamwangyabin","id":38123329,"node_id":"MDQ6VXNlcjM4MTIzMzI5","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/38123329?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/iamwangyabin","html_url":"https:\/\/github.com\/iamwangyabin","followers_url":"https:\/\/api.github.com\/users\/iamwangyabin\/followers","following_url":"https:\/\/api.github.com\/users\/iamwangyabin\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/iamwangyabin\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/iamwangyabin\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/iamwangyabin\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/iamwangyabin\/orgs","repos_url":"https:\/\/api.github.com\/users\/iamwangyabin\/repos","events_url":"https:\/\/api.github.com\/users\/iamwangyabin\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/iamwangyabin\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7180\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7180\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7179","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7179\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7179\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7179\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7179","id":2552387980,"node_id":"PR_kwDODunzps585Jcd","number":7179,"title":"Support Python 3.11","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-09-27T08:55:44Z","updated_at":"2024-10-08T16:21:06Z","closed_at":"2024-10-08T16:21:03Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7179","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7179","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7179.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7179.patch","merged_at":"2024-10-08T16:21:03Z"},"body":"Support Python 3.11.\r\n\r\nFix #7178.","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7179\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7179\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7178","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7178\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7178\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7178\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7178","id":2552378330,"node_id":"I_kwDODunzps6YIjPa","number":7178,"title":"Support Python 3.11","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"closed","locked":false,"assignee":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":0,"created_at":"2024-09-27T08:50:47Z","updated_at":"2024-10-08T16:21:04Z","closed_at":"2024-10-08T16:21:04Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"Support Python 3.11: https:\/\/peps.python.org\/pep-0664\/","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7178\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7178\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7177","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7177\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7177\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7177\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7177","id":2552371082,"node_id":"PR_kwDODunzps585Fx2","number":7177,"title":"Fix release instructions","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-09-27T08:47:01Z","updated_at":"2024-09-27T08:57:35Z","closed_at":"2024-09-27T08:57:32Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7177","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7177","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7177.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7177.patch","merged_at":"2024-09-27T08:57:32Z"},"body":"Fix release instructions.\r\n\r\nDuring last release, I had to make this additional update.","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7177\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7177\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7176","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7176\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7176\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7176\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7176","id":2551025564,"node_id":"PR_kwDODunzps580hTn","number":7176,"title":"fix grammar in fingerprint.py","user":{"login":"jxmorris12","id":13238952,"node_id":"MDQ6VXNlcjEzMjM4OTUy","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/13238952?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/jxmorris12","html_url":"https:\/\/github.com\/jxmorris12","followers_url":"https:\/\/api.github.com\/users\/jxmorris12\/followers","following_url":"https:\/\/api.github.com\/users\/jxmorris12\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/jxmorris12\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/jxmorris12\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/jxmorris12\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/jxmorris12\/orgs","repos_url":"https:\/\/api.github.com\/users\/jxmorris12\/repos","events_url":"https:\/\/api.github.com\/users\/jxmorris12\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/jxmorris12\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-09-26T16:13:42Z","updated_at":"2024-09-26T16:13:42Z","closed_at":null,"author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7176","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7176","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7176.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7176.patch","merged_at":null},"body":"I see this error all the time and it was starting to get to me.","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7176\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7176\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7175","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7175\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7175\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7175\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7175","id":2550957337,"node_id":"I_kwDODunzps6YDIUZ","number":7175,"title":"[FSTimeoutError] load_dataset","user":{"login":"cosmo3769","id":53268607,"node_id":"MDQ6VXNlcjUzMjY4NjA3","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/53268607?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/cosmo3769","html_url":"https:\/\/github.com\/cosmo3769","followers_url":"https:\/\/api.github.com\/users\/cosmo3769\/followers","following_url":"https:\/\/api.github.com\/users\/cosmo3769\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/cosmo3769\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/cosmo3769\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/cosmo3769\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/cosmo3769\/orgs","repos_url":"https:\/\/api.github.com\/users\/cosmo3769\/repos","events_url":"https:\/\/api.github.com\/users\/cosmo3769\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/cosmo3769\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2024-09-26T15:42:29Z","updated_at":"2025-02-01T09:09:35Z","closed_at":"2024-09-30T17:28:35Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nWhen using `load_dataset`to load [HuggingFaceM4\/VQAv2](https:\/\/huggingface.co\/datasets\/HuggingFaceM4\/VQAv2), I am getting `FSTimeoutError`. \r\n\r\n### Error\r\n\r\n```\r\nTimeoutError: \r\n\r\nThe above exception was the direct cause of the following exception:\r\n\r\nFSTimeoutError Traceback (most recent call last)\r\n[\/usr\/local\/lib\/python3.10\/dist-packages\/fsspec\/asyn.py](https:\/\/klh9mr78js-496ff2e9c6d22116-0-colab.googleusercontent.com\/outputframe.html?vrz=colab_20240924-060116_RC00_678132060#) in sync(loop, func, timeout, *args, **kwargs)\r\n 99 if isinstance(return_result, asyncio.TimeoutError):\r\n 100 # suppress asyncio.TimeoutError, raise FSTimeoutError\r\n--> 101 raise FSTimeoutError from return_result\r\n 102 elif isinstance(return_result, BaseException):\r\n 103 raise return_result\r\n\r\nFSTimeoutError:\r\n```\r\n\r\nIt usually fails around 5-6 GB.\r\n\r\n\"Screenshot\r\n\n\n### Steps to reproduce the bug\n\nTo reproduce it, run this in colab notebook:\r\n\r\n```\r\n!pip install -q -U datasets\r\n\r\nfrom datasets import load_dataset\r\nds = load_dataset('HuggingFaceM4\/VQAv2', split=\"train[:10%]\")\r\n```\r\n\r\n\n\n### Expected behavior\n\nIt should download properly.\n\n### Environment info\n\nUsing Colab Notebook.","closed_by":{"login":"cosmo3769","id":53268607,"node_id":"MDQ6VXNlcjUzMjY4NjA3","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/53268607?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/cosmo3769","html_url":"https:\/\/github.com\/cosmo3769","followers_url":"https:\/\/api.github.com\/users\/cosmo3769\/followers","following_url":"https:\/\/api.github.com\/users\/cosmo3769\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/cosmo3769\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/cosmo3769\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/cosmo3769\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/cosmo3769\/orgs","repos_url":"https:\/\/api.github.com\/users\/cosmo3769\/repos","events_url":"https:\/\/api.github.com\/users\/cosmo3769\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/cosmo3769\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7175\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7175\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7174","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7174\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7174\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7174\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7174","id":2549892315,"node_id":"PR_kwDODunzps58wluR","number":7174,"title":"Set dev version","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-09-26T08:30:11Z","updated_at":"2024-09-26T08:32:39Z","closed_at":"2024-09-26T08:30:21Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7174","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7174","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7174.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7174.patch","merged_at":"2024-09-26T08:30:21Z"},"body":null,"closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7174\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7174\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7173","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7173\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7173\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7173\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7173","id":2549882529,"node_id":"PR_kwDODunzps58wjjc","number":7173,"title":"Release: 3.0.1","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-09-26T08:25:54Z","updated_at":"2024-09-26T08:28:29Z","closed_at":"2024-09-26T08:26:03Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7173","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7173","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7173.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7173.patch","merged_at":"2024-09-26T08:26:03Z"},"body":null,"closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7173\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7173\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7172","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7172\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7172\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7172\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7172","id":2549781691,"node_id":"PR_kwDODunzps58wNQ7","number":7172,"title":"Add torchdata as a regular test dependency","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-09-26T07:45:55Z","updated_at":"2024-09-26T08:12:12Z","closed_at":"2024-09-26T08:05:40Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7172","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7172","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7172.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7172.patch","merged_at":"2024-09-26T08:05:40Z"},"body":"Add `torchdata` as a regular test dependency.\r\n\r\nNote that previously, `torchdata` was installed from their repo and current main branch (0.10.0.dev) requires Python>=3.9.\r\n\r\nAlso note they made a recent release: 0.8.0 on Jul 31, 2024.\r\n\r\nFix #7171.","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7172\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7172\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7171","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7171\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7171\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7171\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7171","id":2549738919,"node_id":"I_kwDODunzps6X-e2n","number":7171,"title":"CI is broken: No solution found when resolving dependencies","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892857,"node_id":"MDU6TGFiZWwxOTM1ODkyODU3","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/bug","name":"bug","color":"d73a4a","default":true,"description":"Something isn't working"}],"state":"closed","locked":false,"assignee":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":0,"created_at":"2024-09-26T07:24:58Z","updated_at":"2024-09-26T08:05:41Z","closed_at":"2024-09-26T08:05:41Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"See: https:\/\/github.com\/huggingface\/datasets\/actions\/runs\/11046967444\/job\/30687294297\r\n```\r\nRun uv pip install --system -r additional-tests-requirements.txt --no-deps\r\n \u00d7 No solution found when resolving dependencies:\r\n \u2570\u2500\u25b6 Because the current Python version (3.8.18) does not satisfy Python>=3.9\r\n and torchdata==0.10.0a0+1a98f21 depends on Python>=3.9, we can conclude\r\n that torchdata==0.10.0a0+1a98f21 cannot be used.\r\n And because only torchdata==0.10.0a0+1a98f21 is available and\r\n you require torchdata, we can conclude that your requirements are\r\n unsatisfiable.\r\nError: Process completed with exit code 1.\r\n```","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7171\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7171\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7170","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7170\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7170\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7170\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7170","id":2546944016,"node_id":"PR_kwDODunzps58mfF5","number":7170,"title":"Support JSON lines with missing columns","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-09-25T05:08:15Z","updated_at":"2024-09-26T06:42:09Z","closed_at":"2024-09-26T06:42:07Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7170","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7170","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7170.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7170.patch","merged_at":"2024-09-26T06:42:07Z"},"body":"Support JSON lines with missing columns.\r\n\r\nFix #7169.\r\n\r\nThe implemented test raised:\r\n```\r\ndatasets.table.CastError: Couldn't cast\r\nage: int64\r\nto\r\n{'age': Value(dtype='int32', id=None), 'name': Value(dtype='string', id=None)}\r\nbecause column names don't match\r\n```\r\n\r\nRelated to:\r\n- #7160 \r\n- #7162","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7170\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7170\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7169","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7169\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7169\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7169\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7169","id":2546894076,"node_id":"I_kwDODunzps6XzoT8","number":7169,"title":"JSON lines with missing columns raise CastError","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892857,"node_id":"MDU6TGFiZWwxOTM1ODkyODU3","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/bug","name":"bug","color":"d73a4a","default":true,"description":"Something isn't working"}],"state":"closed","locked":false,"assignee":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":0,"created_at":"2024-09-25T04:43:28Z","updated_at":"2024-09-26T06:42:08Z","closed_at":"2024-09-26T06:42:08Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"JSON lines with missing columns raise CastError:\r\n> CastError: Couldn't cast ... to ... because column names don't match\r\n\r\nRelated to:\r\n- #7159\r\n- #7161","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7169\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7169\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7168","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7168\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7168\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7168\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7168","id":2546710631,"node_id":"I_kwDODunzps6Xy7hn","number":7168,"title":"sd1.5 diffusers controlnet training script gives new error","user":{"login":"Night1099","id":90132896,"node_id":"MDQ6VXNlcjkwMTMyODk2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/90132896?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Night1099","html_url":"https:\/\/github.com\/Night1099","followers_url":"https:\/\/api.github.com\/users\/Night1099\/followers","following_url":"https:\/\/api.github.com\/users\/Night1099\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Night1099\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Night1099\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Night1099\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Night1099\/orgs","repos_url":"https:\/\/api.github.com\/users\/Night1099\/repos","events_url":"https:\/\/api.github.com\/users\/Night1099\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Night1099\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2024-09-25T01:42:49Z","updated_at":"2024-09-30T05:24:03Z","closed_at":"2024-09-30T05:24:02Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\r\n\r\nThis will randomly pop up during training now\r\n\r\n```\r\nTraceback (most recent call last):\r\n File \"\/workspace\/diffusers\/examples\/controlnet\/train_controlnet.py\", line 1192, in \r\n main(args)\r\n File \"\/workspace\/diffusers\/examples\/controlnet\/train_controlnet.py\", line 1041, in main\r\n for step, batch in enumerate(train_dataloader):\r\n File \"\/usr\/local\/lib\/python3.11\/dist-packages\/accelerate\/data_loader.py\", line 561, in __iter__\r\n next_batch = next(dataloader_iter)\r\n ^^^^^^^^^^^^^^^^^^^^^\r\n File \"\/usr\/local\/lib\/python3.11\/dist-packages\/torch\/utils\/data\/dataloader.py\", line 630, in __next__\r\n data = self._next_data()\r\n ^^^^^^^^^^^^^^^^^\r\n File \"\/usr\/local\/lib\/python3.11\/dist-packages\/torch\/utils\/data\/dataloader.py\", line 673, in _next_data\r\n data = self._dataset_fetcher.fetch(index) # may raise StopIteration\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"\/usr\/local\/lib\/python3.11\/dist-packages\/torch\/utils\/data\/_utils\/fetch.py\", line 50, in fetch\r\n data = self.dataset.__getitems__(possibly_batched_index)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"\/usr\/local\/lib\/python3.11\/dist-packages\/datasets\/arrow_dataset.py\", line 2746, in __getitems__\r\n batch = self.__getitem__(keys)\r\n ^^^^^^^^^^^^^^^^^^^^^^\r\n File \"\/usr\/local\/lib\/python3.11\/dist-packages\/datasets\/arrow_dataset.py\", line 2742, in __getitem__\r\n return self._getitem(key)\r\n ^^^^^^^^^^^^^^^^^^\r\n File \"\/usr\/local\/lib\/python3.11\/dist-packages\/datasets\/arrow_dataset.py\", line 2727, in _getitem\r\n formatted_output = format_table(\r\n ^^^^^^^^^^^^^\r\n File \"\/usr\/local\/lib\/python3.11\/dist-packages\/datasets\/formatting\/formatting.py\", line 639, in format_table\r\n return formatter(pa_table, query_type=query_type)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"\/usr\/local\/lib\/python3.11\/dist-packages\/datasets\/formatting\/formatting.py\", line 407, in __call__\r\n return self.format_batch(pa_table)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"\/usr\/local\/lib\/python3.11\/dist-packages\/datasets\/formatting\/formatting.py\", line 521, in format_batch\r\n batch = self.python_features_decoder.decode_batch(batch)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"\/usr\/local\/lib\/python3.11\/dist-packages\/datasets\/formatting\/formatting.py\", line 228, in decode_batch\r\n return self.features.decode_batch(batch) if self.features else batch\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"\/usr\/local\/lib\/python3.11\/dist-packages\/datasets\/features\/features.py\", line 2084, in decode_batch\r\n [\r\n File \"\/usr\/local\/lib\/python3.11\/dist-packages\/datasets\/features\/features.py\", line 2085, in \r\n decode_nested_example(self[column_name], value, token_per_repo_id=token_per_repo_id)\r\n File \"\/usr\/local\/lib\/python3.11\/dist-packages\/datasets\/features\/features.py\", line 1403, in decode_nested_example\r\n return schema.decode_example(obj, token_per_repo_id=token_per_repo_id)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"\/usr\/local\/lib\/python3.11\/dist-packages\/datasets\/features\/image.py\", line 188, in decode_example\r\n image.load() # to avoid \"Too many open files\" errors\r\n\r\n ```\r\n\r\n### Steps to reproduce the bug\r\n\r\nTrain on diffusers sd1.5 controlnet example script\r\n\r\nThis will pop up randomly, you can see in wandb below when i manually resume run everytime this error appears\r\n\r\n![image](https:\/\/github.com\/user-attachments\/assets\/87e9a6af-cb3c-4398-82e7-d6a90add8d31)\r\n\r\n\r\n### Expected behavior\r\n\r\nTraining to continue without above error\r\n\r\n### Environment info\r\n\r\n- datasets version: 3.0.0\r\n- Platform: Linux-6.5.0-44-generic-x86_64-with-glibc2.35\r\n- Python version: 3.11.9\r\n- huggingface_hub version: 0.25.1\r\n- PyArrow version: 17.0.0\r\n- Pandas version: 2.2.3\r\n- fsspec version: 2024.6.1\r\n\r\nTraining on 4090","closed_by":{"login":"Night1099","id":90132896,"node_id":"MDQ6VXNlcjkwMTMyODk2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/90132896?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Night1099","html_url":"https:\/\/github.com\/Night1099","followers_url":"https:\/\/api.github.com\/users\/Night1099\/followers","following_url":"https:\/\/api.github.com\/users\/Night1099\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Night1099\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Night1099\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Night1099\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Night1099\/orgs","repos_url":"https:\/\/api.github.com\/users\/Night1099\/repos","events_url":"https:\/\/api.github.com\/users\/Night1099\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Night1099\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7168\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7168\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7167","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7167\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7167\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7167\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7167","id":2546708014,"node_id":"I_kwDODunzps6Xy64u","number":7167,"title":"Error Mapping on sd3, sdxl and upcoming flux controlnet training scripts in diffusers","user":{"login":"Night1099","id":90132896,"node_id":"MDQ6VXNlcjkwMTMyODk2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/90132896?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Night1099","html_url":"https:\/\/github.com\/Night1099","followers_url":"https:\/\/api.github.com\/users\/Night1099\/followers","following_url":"https:\/\/api.github.com\/users\/Night1099\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Night1099\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Night1099\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Night1099\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Night1099\/orgs","repos_url":"https:\/\/api.github.com\/users\/Night1099\/repos","events_url":"https:\/\/api.github.com\/users\/Night1099\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Night1099\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-09-25T01:39:51Z","updated_at":"2024-09-30T05:28:15Z","closed_at":"2024-09-30T05:28:04Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\n```\r\nMap: 6%|\u2588\u2588\u2588\u2588\u2588\u2588 | 8000\/138120 [19:27<5:16:36, 6.85 examples\/s]\r\nTraceback (most recent call last):\r\n File \"\/workspace\/diffusers\/examples\/controlnet\/train_controlnet_sd3.py\", line 1416, in \r\n main(args)\r\n File \"\/workspace\/diffusers\/examples\/controlnet\/train_controlnet_sd3.py\", line 1132, in main\r\n train_dataset = train_dataset.map(compute_embeddings_fn, batched=True, new_fingerprint=new_fingerprint)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"\/usr\/local\/lib\/python3.11\/dist-packages\/datasets\/arrow_dataset.py\", line 560, in wrapper\r\n out: Union[\"Dataset\", \"DatasetDict\"] = func(self, *args, **kwargs)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"\/usr\/local\/lib\/python3.11\/dist-packages\/datasets\/arrow_dataset.py\", line 3035, in map\r\n for rank, done, content in Dataset._map_single(**dataset_kwargs):\r\n File \"\/usr\/local\/lib\/python3.11\/dist-packages\/datasets\/arrow_dataset.py\", line 3461, in _map_single\r\n writer.write_batch(batch)\r\n File \"\/usr\/local\/lib\/python3.11\/dist-packages\/datasets\/arrow_writer.py\", line 567, in write_batch\r\n self.write_table(pa_table, writer_batch_size)\r\n File \"\/usr\/local\/lib\/python3.11\/dist-packages\/datasets\/arrow_writer.py\", line 579, in write_table\r\n pa_table = pa_table.combine_chunks()\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"pyarrow\/table.pxi\", line 4387, in pyarrow.lib.Table.combine_chunks\r\n File \"pyarrow\/error.pxi\", line 155, in pyarrow.lib.pyarrow_internal_check_status\r\n File \"pyarrow\/error.pxi\", line 92, in pyarrow.lib.check_status\r\npyarrow.lib.ArrowInvalid: offset overflow while concatenating arrays\r\nTraceback (most recent call last):\r\n File \"\/usr\/local\/bin\/accelerate\", line 8, in \r\n sys.exit(main())\r\n ^^^^^^\r\n File \"\/usr\/local\/lib\/python3.11\/dist-packages\/accelerate\/commands\/accelerate_cli.py\", line 48, in main\r\n args.func(args)\r\n File \"\/usr\/local\/lib\/python3.11\/dist-packages\/accelerate\/commands\/launch.py\", line 1174, in launch_command\r\n simple_launcher(args)\r\n File \"\/usr\/local\/lib\/python3.11\/dist-packages\/accelerate\/commands\/launch.py\", line 769, in simple_launcher\r\n ```\n\n### Steps to reproduce the bug\n\nThe dataset has no problem training on sd1.5 controlnet train script\r\n\r\n\n\n### Expected behavior\n\nScript not randomly erroing with error above\n\n### Environment info\n\n- `datasets` version: 3.0.0\r\n- Platform: Linux-6.5.0-44-generic-x86_64-with-glibc2.35\r\n- Python version: 3.11.9\r\n- `huggingface_hub` version: 0.25.1\r\n- PyArrow version: 17.0.0\r\n- Pandas version: 2.2.3\r\n- `fsspec` version: 2024.6.1\r\n\r\n\r\ntraining on A100","closed_by":{"login":"Night1099","id":90132896,"node_id":"MDQ6VXNlcjkwMTMyODk2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/90132896?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Night1099","html_url":"https:\/\/github.com\/Night1099","followers_url":"https:\/\/api.github.com\/users\/Night1099\/followers","following_url":"https:\/\/api.github.com\/users\/Night1099\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Night1099\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Night1099\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Night1099\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Night1099\/orgs","repos_url":"https:\/\/api.github.com\/users\/Night1099\/repos","events_url":"https:\/\/api.github.com\/users\/Night1099\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Night1099\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7167\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7167\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7166","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7166\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7166\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7166\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7166","id":2545608736,"node_id":"PR_kwDODunzps58h8pd","number":7166,"title":"fix docstring code example for distributed shuffle","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-09-24T14:39:54Z","updated_at":"2024-09-24T14:42:41Z","closed_at":"2024-09-24T14:40:14Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7166","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7166","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7166.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7166.patch","merged_at":"2024-09-24T14:40:14Z"},"body":"close https:\/\/github.com\/huggingface\/datasets\/issues\/7163","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7166\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7166\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7165","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7165\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7165\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7165\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7165","id":2544972541,"node_id":"PR_kwDODunzps58fva1","number":7165,"title":"fix increase_load_count","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2024-09-24T10:14:40Z","updated_at":"2024-09-24T17:31:07Z","closed_at":"2024-09-24T13:48:00Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7165","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7165","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7165.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7165.patch","merged_at":"2024-09-24T13:48:00Z"},"body":"it was failing since 3.0 and therefore not updating download counts on HF or in our dashboard","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7165\/reactions","total_count":1,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":1,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7165\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7164","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7164\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7164\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7164\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7164","id":2544757297,"node_id":"I_kwDODunzps6Xreox","number":7164,"title":"fsspec.exceptions.FSTimeoutError when downloading dataset","user":{"login":"timonmerk","id":38216460,"node_id":"MDQ6VXNlcjM4MjE2NDYw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/38216460?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/timonmerk","html_url":"https:\/\/github.com\/timonmerk","followers_url":"https:\/\/api.github.com\/users\/timonmerk\/followers","following_url":"https:\/\/api.github.com\/users\/timonmerk\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/timonmerk\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/timonmerk\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/timonmerk\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/timonmerk\/orgs","repos_url":"https:\/\/api.github.com\/users\/timonmerk\/repos","events_url":"https:\/\/api.github.com\/users\/timonmerk\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/timonmerk\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2024-09-24T08:45:05Z","updated_at":"2025-07-28T14:58:49Z","closed_at":"2025-07-28T14:58:49Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI am trying to download the `librispeech_asr` `clean` dataset, which results in a `FSTimeoutError` exception after downloading around 61% of the data.\n\n### Steps to reproduce the bug\n\n```\r\nimport datasets\r\ndatasets.load_dataset(\"librispeech_asr\", \"clean\")\r\n```\r\n\r\nThe output is as follows:\r\n\r\n> Downloading data: 61%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258b | 3.92G\/6.39G [05:00<03:06, 13.2MB\/s]Traceback (most recent call last):\r\n> File \"\/Users\/Timon\/Documents\/iEEG_deeplearning\/wav2vec_pretrain\/.venv\/lib\/python3.12\/site-packages\/fsspec\/asyn.py\", line 56, in _runner\r\n> result[0] = await coro\r\n> ^^^^^^^^^^\r\n> File \"\/Users\/Timon\/Documents\/iEEG_deeplearning\/wav2vec_pretrain\/.venv\/lib\/python3.12\/site-packages\/fsspec\/implementations\/http.py\", line 262, in _get_file\r\n> chunk = await r.content.read(chunk_size)\r\n> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n> File \"\/Users\/Timon\/Documents\/iEEG_deeplearning\/wav2vec_pretrain\/.venv\/lib\/python3.12\/site-packages\/aiohttp\/streams.py\", line 393, in read\r\n> await self._wait(\"read\")\r\n> File \"\/Users\/Timon\/Documents\/iEEG_deeplearning\/wav2vec_pretrain\/.venv\/lib\/python3.12\/site-packages\/aiohttp\/streams.py\", line 311, in _wait\r\n> with self._timer:\r\n> ^^^^^^^^^^^\r\n> File \"\/Users\/Timon\/Documents\/iEEG_deeplearning\/wav2vec_pretrain\/.venv\/lib\/python3.12\/site-packages\/aiohttp\/helpers.py\", line 713, in __exit__\r\n> raise asyncio.TimeoutError from None\r\n> TimeoutError\r\n> \r\n> The above exception was the direct cause of the following exception:\r\n> \r\n> Traceback (most recent call last):\r\n> File \"\/Users\/Timon\/Documents\/iEEG_deeplearning\/wav2vec_pretrain\/load_dataset.py\", line 3, in \r\n> datasets.load_dataset(\"librispeech_asr\", \"clean\")\r\n> File \"\/Users\/Timon\/Documents\/iEEG_deeplearning\/wav2vec_pretrain\/.venv\/lib\/python3.12\/site-packages\/datasets\/load.py\", line 2096, in load_dataset\r\n> builder_instance.download_and_prepare(\r\n> File \"\/Users\/Timon\/Documents\/iEEG_deeplearning\/wav2vec_pretrain\/.venv\/lib\/python3.12\/site-packages\/datasets\/builder.py\", line 924, in download_and_prepare\r\n> self._download_and_prepare(\r\n> File \"\/Users\/Timon\/Documents\/iEEG_deeplearning\/wav2vec_pretrain\/.venv\/lib\/python3.12\/site-packages\/datasets\/builder.py\", line 1647, in _download_and_prepare\r\n> super()._download_and_prepare(\r\n> File \"\/Users\/Timon\/Documents\/iEEG_deeplearning\/wav2vec_pretrain\/.venv\/lib\/python3.12\/site-packages\/datasets\/builder.py\", line 977, in _download_and_prepare\r\n> split_generators = self._split_generators(dl_manager, **split_generators_kwargs)\r\n> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n> File \"\/Users\/Timon\/.cache\/huggingface\/modules\/datasets_modules\/datasets\/librispeech_asr\/2712a8f82f0d20807a56faadcd08734f9bdd24c850bb118ba21ff33ebff0432f\/librispeech_asr.py\", line 115, in _split_generators\r\n> archive_path = dl_manager.download(_DL_URLS[self.config.name])\r\n> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n> File \"\/Users\/Timon\/Documents\/iEEG_deeplearning\/wav2vec_pretrain\/.venv\/lib\/python3.12\/site-packages\/datasets\/download\/download_manager.py\", line 159, in download\r\n> downloaded_path_or_paths = map_nested(\r\n> ^^^^^^^^^^^\r\n> File \"\/Users\/Timon\/Documents\/iEEG_deeplearning\/wav2vec_pretrain\/.venv\/lib\/python3.12\/site-packages\/datasets\/utils\/py_utils.py\", line 512, in map_nested\r\n> _single_map_nested((function, obj, batched, batch_size, types, None, True, None))\r\n> File \"\/Users\/Timon\/Documents\/iEEG_deeplearning\/wav2vec_pretrain\/.venv\/lib\/python3.12\/site-packages\/datasets\/utils\/py_utils.py\", line 380, in _single_map_nested\r\n> return [mapped_item for batch in iter_batched(data_struct, batch_size) for mapped_item in function(batch)]\r\n> ^^^^^^^^^^^^^^^\r\n> File \"\/Users\/Timon\/Documents\/iEEG_deeplearning\/wav2vec_pretrain\/.venv\/lib\/python3.12\/site-packages\/datasets\/download\/download_manager.py\", line 216, in _download_batched\r\n> self._download_single(url_or_filename, download_config=download_config)\r\n> File \"\/Users\/Timon\/Documents\/iEEG_deeplearning\/wav2vec_pretrain\/.venv\/lib\/python3.12\/site-packages\/datasets\/download\/download_manager.py\", line 225, in _download_single\r\n> out = cached_path(url_or_filename, download_config=download_config)\r\n> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n> File \"\/Users\/Timon\/Documents\/iEEG_deeplearning\/wav2vec_pretrain\/.venv\/lib\/python3.12\/site-packages\/datasets\/utils\/file_utils.py\", line 205, in cached_path\r\n> output_path = get_from_cache(\r\n> ^^^^^^^^^^^^^^^\r\n> File \"\/Users\/Timon\/Documents\/iEEG_deeplearning\/wav2vec_pretrain\/.venv\/lib\/python3.12\/site-packages\/datasets\/utils\/file_utils.py\", line 415, in get_from_cache\r\n> fsspec_get(url, temp_file, storage_options=storage_options, desc=download_desc, disable_tqdm=disable_tqdm)\r\n> File \"\/Users\/Timon\/Documents\/iEEG_deeplearning\/wav2vec_pretrain\/.venv\/lib\/python3.12\/site-packages\/datasets\/utils\/file_utils.py\", line 334, in fsspec_get\r\n> fs.get_file(path, temp_file.name, callback=callback)\r\n> File \"\/Users\/Timon\/Documents\/iEEG_deeplearning\/wav2vec_pretrain\/.venv\/lib\/python3.12\/site-packages\/fsspec\/asyn.py\", line 118, in wrapper\r\n> return sync(self.loop, func, *args, **kwargs)\r\n> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n> File \"\/Users\/Timon\/Documents\/iEEG_deeplearning\/wav2vec_pretrain\/.venv\/lib\/python3.12\/site-packages\/fsspec\/asyn.py\", line 101, in sync\r\n> raise FSTimeoutError from return_result\r\n> fsspec.exceptions.FSTimeoutError\r\n> Downloading data: 61%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258b | 3.92G\/6.39G [05:00<03:09, 13.0MB\/s]\n\n### Expected behavior\n\nComplete the download\n\n### Environment info\n\nPython version 3.12.6\r\n\r\nDependencies:\r\n> dependencies = [\r\n> \"accelerate>=0.34.2\",\r\n> \"datasets[audio]>=3.0.0\",\r\n> \"ipython>=8.18.1\",\r\n> \"librosa>=0.10.2.post1\",\r\n> \"torch>=2.4.1\",\r\n> \"torchaudio>=2.4.1\",\r\n> \"transformers>=4.44.2\",\r\n> ]\r\n\r\nMacOS 14.6.1 (23G93)","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7164\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7164\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7163","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7163\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7163\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7163\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7163","id":2542361234,"node_id":"I_kwDODunzps6XiVqS","number":7163,"title":"Set explicit seed in iterable dataset ddp shuffling example ","user":{"login":"alex-hh","id":5719745,"node_id":"MDQ6VXNlcjU3MTk3NDU=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/5719745?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/alex-hh","html_url":"https:\/\/github.com\/alex-hh","followers_url":"https:\/\/api.github.com\/users\/alex-hh\/followers","following_url":"https:\/\/api.github.com\/users\/alex-hh\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/alex-hh\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/alex-hh\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/alex-hh\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/alex-hh\/orgs","repos_url":"https:\/\/api.github.com\/users\/alex-hh\/repos","events_url":"https:\/\/api.github.com\/users\/alex-hh\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/alex-hh\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-09-23T11:34:06Z","updated_at":"2024-09-24T14:40:15Z","closed_at":"2024-09-24T14:40:15Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\r\n\r\nIn the examples section of the iterable dataset docs https:\/\/huggingface.co\/docs\/datasets\/en\/package_reference\/main_classes#datasets.IterableDataset\r\nthe ddp example shuffles without seeding\r\n\r\n```python\r\nfrom datasets.distributed import split_dataset_by_node\r\nids = ds.to_iterable_dataset(num_shards=512)\r\nids = ids.shuffle(buffer_size=10_000) # will shuffle the shards order and use a shuffle buffer when you start iterating\r\nids = split_dataset_by_node(ds, world_size=8, rank=0) # will keep only 512 \/ 8 = 64 shards from the shuffled lists of shards when you start iterating\r\ndataloader = torch.utils.data.DataLoader(ids, num_workers=4) # will assign 64 \/ 4 = 16 shards from this node's list of shards to each worker when you start iterating\r\nfor example in ids:\r\n pass\r\n```\r\n\r\nThis code would - I think - raise an error due to the lack of an explicit seed:\r\n\r\nhttps:\/\/github.com\/huggingface\/datasets\/blob\/2eb4edb97e1a6af2ea62738ec58afbd3812fc66e\/src\/datasets\/iterable_dataset.py#L1707-L1711\r\n\r\n\r\n### Steps to reproduce the bug\r\n\r\nRun example code\r\n\r\n### Expected behavior\r\n\r\nAdd explicit seeding to example code\r\n\r\n### Environment info\r\n\r\nlatest datasets","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7163\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7163\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7162","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7162\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7162\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7162\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7162","id":2542323382,"node_id":"PR_kwDODunzps58WlX5","number":7162,"title":"Support JSON lines with empty struct","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-09-23T11:16:12Z","updated_at":"2024-09-23T11:30:08Z","closed_at":"2024-09-23T11:30:06Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7162","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7162","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7162.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7162.patch","merged_at":"2024-09-23T11:30:06Z"},"body":"Support JSON lines with empty struct.\r\n\r\nFix #7161.\r\n\r\nRelated to:\r\n- #7160","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7162\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7162\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7161","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7161\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7161\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7161\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7161","id":2541971931,"node_id":"I_kwDODunzps6Xg2nb","number":7161,"title":"JSON lines with empty struct raise ArrowTypeError","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892857,"node_id":"MDU6TGFiZWwxOTM1ODkyODU3","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/bug","name":"bug","color":"d73a4a","default":true,"description":"Something isn't working"}],"state":"closed","locked":false,"assignee":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":0,"created_at":"2024-09-23T08:48:56Z","updated_at":"2024-09-25T04:43:44Z","closed_at":"2024-09-23T11:30:07Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"JSON lines with empty struct raise ArrowTypeError: struct fields don't match or are in the wrong order\r\n\r\nSee example: https:\/\/huggingface.co\/datasets\/wikimedia\/structured-wikipedia\/discussions\/5\r\n\r\n> ArrowTypeError: struct fields don't match or are in the wrong order: Input fields: struct<> output fields: struct\r\n\r\nRelated to:\r\n- #7159","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7161\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7161\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7160","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7160\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7160\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7160\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7160","id":2541877813,"node_id":"PR_kwDODunzps58VDhq","number":7160,"title":"Support JSON lines with missing struct fields","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-09-23T08:04:09Z","updated_at":"2024-09-23T11:09:19Z","closed_at":"2024-09-23T11:09:17Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7160","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7160","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7160.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7160.patch","merged_at":"2024-09-23T11:09:17Z"},"body":"Support JSON lines with missing struct fields.\r\n\r\nFix #7159.\r\n\r\nThe implemented test raised:\r\n```\r\nTypeError: Couldn't cast array of type\r\nstruct\r\nto\r\n{'age': Value(dtype='int32', id=None), 'name': Value(dtype='string', id=None)}\r\n```","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7160\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7160\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7159","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7159\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7159\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7159\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7159","id":2541865613,"node_id":"I_kwDODunzps6XgcqN","number":7159,"title":"JSON lines with missing struct fields raise TypeError: Couldn't cast array","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892857,"node_id":"MDU6TGFiZWwxOTM1ODkyODU3","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/bug","name":"bug","color":"d73a4a","default":true,"description":"Something isn't working"}],"state":"closed","locked":false,"assignee":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":1,"created_at":"2024-09-23T07:57:58Z","updated_at":"2024-10-21T08:07:07Z","closed_at":"2024-09-23T11:09:18Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"JSON lines with missing struct fields raise TypeError: Couldn't cast array of type.\r\n\r\nSee example: https:\/\/huggingface.co\/datasets\/wikimedia\/structured-wikipedia\/discussions\/5\r\n\r\nOne would expect that the struct missing fields are added with null values.","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7159\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7159\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7158","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7158\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7158\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7158\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7158","id":2541494765,"node_id":"PR_kwDODunzps58Tuw9","number":7158,"title":"google colab ex","user":{"login":"docfhsp","id":157789664,"node_id":"U_kgDOCWet4A","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/157789664?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/docfhsp","html_url":"https:\/\/github.com\/docfhsp","followers_url":"https:\/\/api.github.com\/users\/docfhsp\/followers","following_url":"https:\/\/api.github.com\/users\/docfhsp\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/docfhsp\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/docfhsp\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/docfhsp\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/docfhsp\/orgs","repos_url":"https:\/\/api.github.com\/users\/docfhsp\/repos","events_url":"https:\/\/api.github.com\/users\/docfhsp\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/docfhsp\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-09-23T03:29:50Z","updated_at":"2024-12-20T16:41:07Z","closed_at":"2024-12-20T16:41:07Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7158","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7158","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7158.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7158.patch","merged_at":null},"body":null,"closed_by":{"login":"docfhsp","id":157789664,"node_id":"U_kgDOCWet4A","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/157789664?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/docfhsp","html_url":"https:\/\/github.com\/docfhsp","followers_url":"https:\/\/api.github.com\/users\/docfhsp\/followers","following_url":"https:\/\/api.github.com\/users\/docfhsp\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/docfhsp\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/docfhsp\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/docfhsp\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/docfhsp\/orgs","repos_url":"https:\/\/api.github.com\/users\/docfhsp\/repos","events_url":"https:\/\/api.github.com\/users\/docfhsp\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/docfhsp\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7158\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7158\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7157","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7157\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7157\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7157\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7157","id":2540354890,"node_id":"PR_kwDODunzps58P-1R","number":7157,"title":"Fix zero proba interleave datasets","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-09-21T15:19:14Z","updated_at":"2024-09-24T14:33:54Z","closed_at":"2024-09-24T14:33:54Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7157","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7157","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7157.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7157.patch","merged_at":null},"body":"fix https:\/\/github.com\/huggingface\/datasets\/issues\/7147","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7157\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7157\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7156","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7156\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7156\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7156\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7156","id":2539360617,"node_id":"I_kwDODunzps6XW5Fp","number":7156,"title":"interleave_datasets resets shuffle state","user":{"login":"jonathanasdf","id":511073,"node_id":"MDQ6VXNlcjUxMTA3Mw==","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/511073?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/jonathanasdf","html_url":"https:\/\/github.com\/jonathanasdf","followers_url":"https:\/\/api.github.com\/users\/jonathanasdf\/followers","following_url":"https:\/\/api.github.com\/users\/jonathanasdf\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/jonathanasdf\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/jonathanasdf\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/jonathanasdf\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/jonathanasdf\/orgs","repos_url":"https:\/\/api.github.com\/users\/jonathanasdf\/repos","events_url":"https:\/\/api.github.com\/users\/jonathanasdf\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/jonathanasdf\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-09-20T17:57:54Z","updated_at":"2025-03-18T10:56:25Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\n```\r\nimport datasets\r\nimport torch.utils.data\r\n\r\n\r\ndef gen(shards):\r\n yield {\"shards\": shards}\r\n\r\n\r\ndef main():\r\n dataset = datasets.IterableDataset.from_generator(\r\n gen,\r\n gen_kwargs={'shards': list(range(25))}\r\n )\r\n dataset = dataset.shuffle(buffer_size=1)\r\n dataset = datasets.interleave_datasets(\r\n [dataset, dataset], probabilities=[1, 0], stopping_strategy=\"all_exhausted\"\r\n )\r\n\r\n dataloader = torch.utils.data.DataLoader(\r\n dataset,\r\n batch_size=8,\r\n num_workers=8,\r\n )\r\n\r\n for i, batch in enumerate(dataloader):\r\n print(batch)\r\n if i >= 10:\r\n break\r\n\r\n\r\nif __name__ == \"__main__\":\r\n main()\r\n```\n\n### Steps to reproduce the bug\n\nRun the script, it will output\r\n\r\n```\r\n{'shards': [tensor([ 0, 8, 16, 24, 0, 8, 16, 24])]}\r\n{'shards': [tensor([ 1, 9, 17, 1, 9, 17, 1, 9])]}\r\n{'shards': [tensor([ 2, 10, 18, 2, 10, 18, 2, 10])]}\r\n{'shards': [tensor([ 3, 11, 19, 3, 11, 19, 3, 11])]}\r\n{'shards': [tensor([ 4, 12, 20, 4, 12, 20, 4, 12])]}\r\n{'shards': [tensor([ 5, 13, 21, 5, 13, 21, 5, 13])]}\r\n{'shards': [tensor([ 6, 14, 22, 6, 14, 22, 6, 14])]}\r\n{'shards': [tensor([ 7, 15, 23, 7, 15, 23, 7, 15])]}\r\n{'shards': [tensor([ 0, 8, 16, 24, 0, 8, 16, 24])]}\r\n{'shards': [tensor([17, 1, 9, 17, 1, 9, 17, 1])]}\r\n{'shards': [tensor([18, 2, 10, 18, 2, 10, 18, 2])]}\r\n```\n\n### Expected behavior\n\nThe shards should be shuffled.\n\n### Environment info\n\n- `datasets` version: 3.0.0\r\n- Platform: Linux-5.15.153.1-microsoft-standard-WSL2-x86_64-with-glibc2.35\r\n- Python version: 3.10.12\r\n- `huggingface_hub` version: 0.25.0\r\n- PyArrow version: 17.0.0\r\n- Pandas version: 2.0.3\r\n- `fsspec` version: 2023.6.0","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7156\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7156\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7155","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7155\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7155\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7155\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7155","id":2533641870,"node_id":"I_kwDODunzps6XBE6O","number":7155,"title":"Dataset viewer not working! Failure due to more than 32 splits.","user":{"login":"sleepingcat4","id":81933585,"node_id":"MDQ6VXNlcjgxOTMzNTg1","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/81933585?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/sleepingcat4","html_url":"https:\/\/github.com\/sleepingcat4","followers_url":"https:\/\/api.github.com\/users\/sleepingcat4\/followers","following_url":"https:\/\/api.github.com\/users\/sleepingcat4\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/sleepingcat4\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/sleepingcat4\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/sleepingcat4\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/sleepingcat4\/orgs","repos_url":"https:\/\/api.github.com\/users\/sleepingcat4\/repos","events_url":"https:\/\/api.github.com\/users\/sleepingcat4\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/sleepingcat4\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-09-18T12:43:21Z","updated_at":"2024-09-18T13:20:03Z","closed_at":"2024-09-18T13:20:03Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"Hello guys, \r\n\r\nI have a dataset and I didn't know I couldn't upload more than 32 splits. Now, my dataset viewer is not working. I don't have the dataset locally on my node anymore and recreating would take a week. And I have to publish the dataset coming Monday. I read about the practice, how I can resolve it and avoid this issue in the future. But, at the moment I need a hard fix for two of my datasets. \r\n\r\nAnd I don't want to mess or change anything and allow everyone in public to see the dataset and interact with it. Can you please help me?\r\n\r\nhttps:\/\/huggingface.co\/datasets\/laion\/Wikipedia-X\r\nhttps:\/\/huggingface.co\/datasets\/laion\/Wikipedia-X-Full","closed_by":{"login":"sleepingcat4","id":81933585,"node_id":"MDQ6VXNlcjgxOTMzNTg1","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/81933585?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/sleepingcat4","html_url":"https:\/\/github.com\/sleepingcat4","followers_url":"https:\/\/api.github.com\/users\/sleepingcat4\/followers","following_url":"https:\/\/api.github.com\/users\/sleepingcat4\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/sleepingcat4\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/sleepingcat4\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/sleepingcat4\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/sleepingcat4\/orgs","repos_url":"https:\/\/api.github.com\/users\/sleepingcat4\/repos","events_url":"https:\/\/api.github.com\/users\/sleepingcat4\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/sleepingcat4\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7155\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7155\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7154","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7154\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7154\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7154\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7154","id":2532812323,"node_id":"PR_kwDODunzps572hBd","number":7154,"title":"Support ndjson data files","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-09-18T06:10:10Z","updated_at":"2024-09-19T11:25:17Z","closed_at":"2024-09-19T11:25:14Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7154","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7154","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7154.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7154.patch","merged_at":"2024-09-19T11:25:14Z"},"body":"Support `ndjson` (Newline Delimited JSON) data files.\r\n\r\nFix #7153.","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7154\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7154\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7153","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7153\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7153\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7153\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7153","id":2532788555,"node_id":"I_kwDODunzps6W90lL","number":7153,"title":"Support data files with .ndjson extension","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"closed","locked":false,"assignee":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":0,"created_at":"2024-09-18T05:54:45Z","updated_at":"2024-09-19T11:25:15Z","closed_at":"2024-09-19T11:25:15Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nSupport data files with `.ndjson` extension.\n\n### Motivation\n\nWe already support data files with `.jsonl` extension.\n\n### Your contribution\n\nI am opening a PR.","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7153\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7153\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7151","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7151\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7151\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7151\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7151","id":2527577048,"node_id":"PR_kwDODunzps57kyY4","number":7151,"title":"Align filename prefix splitting with WebDataset library","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-09-16T06:07:39Z","updated_at":"2024-09-16T15:26:36Z","closed_at":"2024-09-16T15:26:34Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7151","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7151","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7151.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7151.patch","merged_at":"2024-09-16T15:26:34Z"},"body":"Align filename prefix splitting with WebDataset library.\r\n\r\nThis PR uses the same `base_plus_ext` function as the one used by the `webdataset` library.\r\n\r\nFix #7150.\r\n\r\nRelated to #7144.","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7151\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7151\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7150","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7150\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7150\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7150\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7150","id":2527571175,"node_id":"I_kwDODunzps6Wp6zn","number":7150,"title":"WebDataset loader splits keys differently than WebDataset library","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892857,"node_id":"MDU6TGFiZWwxOTM1ODkyODU3","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/bug","name":"bug","color":"d73a4a","default":true,"description":"Something isn't working"}],"state":"closed","locked":false,"assignee":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":0,"created_at":"2024-09-16T06:02:47Z","updated_at":"2024-09-16T15:26:35Z","closed_at":"2024-09-16T15:26:35Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"As reported by @ragavsachdeva (see discussion here: https:\/\/github.com\/huggingface\/datasets\/pull\/7144#issuecomment-2348307792), our webdataset loader is not aligned with the `webdataset` library when splitting keys from filenames.\r\n\r\nFor example, we get a different key splitting for filename `\/some\/path\/22.0\/1.1.png`:\r\n- datasets library: `\/some\/path\/22` and `0\/1.1.png`\r\n- webdataset library: `\/some\/path\/22.0\/1`, `1.png`\r\n\r\n```python\r\nimport webdataset as wds\r\n\r\nwds.tariterators.base_plus_ext(\"\/some\/path\/22.0\/1.1.png\")\r\n# ('\/some\/path\/22.0\/1', '1.png')\r\n```\r\n","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7150\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7150\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7149","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7149\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7149\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7149\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7149","id":2524497448,"node_id":"I_kwDODunzps6WeMYo","number":7149,"title":"Datasets Unknown Keyword Argument Error - task_templates","user":{"login":"varungupta31","id":51288316,"node_id":"MDQ6VXNlcjUxMjg4MzE2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/51288316?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/varungupta31","html_url":"https:\/\/github.com\/varungupta31","followers_url":"https:\/\/api.github.com\/users\/varungupta31\/followers","following_url":"https:\/\/api.github.com\/users\/varungupta31\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/varungupta31\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/varungupta31\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/varungupta31\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/varungupta31\/orgs","repos_url":"https:\/\/api.github.com\/users\/varungupta31\/repos","events_url":"https:\/\/api.github.com\/users\/varungupta31\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/varungupta31\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":3,"created_at":"2024-09-13T10:30:57Z","updated_at":"2025-03-06T07:11:55Z","closed_at":"2024-09-13T14:10:48Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nIssue\r\n\r\n```python\r\nfrom datasets import load_dataset\r\nexamples = load_dataset('facebook\/winoground', use_auth_token=)\r\n```\r\n\r\nGives error\r\n\r\n```\r\nTypeError: DatasetInfo.__init__() got an unexpected keyword argument 'task_templates'\r\n```\r\n\r\nA simple downgrade to lower `datasets v 2.21.0` solves it.\r\n\r\n\r\n\n\n### Steps to reproduce the bug\n\n1. `pip install datsets`\r\n2.\r\n```python\r\nfrom datasets import load_dataset\r\nexamples = load_dataset('facebook\/winoground', use_auth_token=)\r\n```\r\n\r\n\n\n### Expected behavior\n\nShould load the dataset correctly.\n\n### Environment info\n\n- Datasets version `3.0.0`\r\n- `transformers` version: 4.45.0.dev0\r\n- Platform: Linux-6.8.0-40-generic-x86_64-with-glibc2.35\r\n- Python version: 3.12.4\r\n- Huggingface_hub version: 0.24.6\r\n- Safetensors version: 0.4.5\r\n- Accelerate version: 0.35.0.dev0\r\n- Accelerate config: not found\r\n- PyTorch version (GPU?): 2.4.1+cu121 (True)\r\n- Tensorflow version (GPU?): not installed (NA)\r\n- Flax version (CPU?\/GPU?\/TPU?): not installed (NA)\r\n- Jax version: not installed\r\n- JaxLib version: not installed\r\n- Using GPU in script?: Yes\r\n","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7149\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7149\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7148","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7148\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7148\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7148\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7148","id":2523833413,"node_id":"I_kwDODunzps6WbqRF","number":7148,"title":"Bug: Error when downloading mteb\/mtop_domain","user":{"login":"ZiyiXia","id":77958037,"node_id":"MDQ6VXNlcjc3OTU4MDM3","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/77958037?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ZiyiXia","html_url":"https:\/\/github.com\/ZiyiXia","followers_url":"https:\/\/api.github.com\/users\/ZiyiXia\/followers","following_url":"https:\/\/api.github.com\/users\/ZiyiXia\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ZiyiXia\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ZiyiXia\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ZiyiXia\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ZiyiXia\/orgs","repos_url":"https:\/\/api.github.com\/users\/ZiyiXia\/repos","events_url":"https:\/\/api.github.com\/users\/ZiyiXia\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ZiyiXia\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2024-09-13T04:09:39Z","updated_at":"2024-09-14T15:11:35Z","closed_at":"2024-09-14T15:11:35Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nWhen downloading the dataset \"mteb\/mtop_domain\", ran into the following error:\r\n\r\n```\r\nTraceback (most recent call last):\r\n File \"\/share\/project\/xzy\/test\/test_download.py\", line 3, in \r\n data = load_dataset(\"mteb\/mtop_domain\", \"en\", trust_remote_code=True)\r\n File \"\/opt\/conda\/lib\/python3.10\/site-packages\/datasets\/load.py\", line 2606, in load_dataset\r\n builder_instance = load_dataset_builder(\r\n File \"\/opt\/conda\/lib\/python3.10\/site-packages\/datasets\/load.py\", line 2277, in load_dataset_builder\r\n dataset_module = dataset_module_factory(\r\n File \"\/opt\/conda\/lib\/python3.10\/site-packages\/datasets\/load.py\", line 1923, in dataset_module_factory\r\n raise e1 from None\r\n File \"\/opt\/conda\/lib\/python3.10\/site-packages\/datasets\/load.py\", line 1896, in dataset_module_factory\r\n ).get_module()\r\n File \"\/opt\/conda\/lib\/python3.10\/site-packages\/datasets\/load.py\", line 1507, in get_module\r\n local_path = self.download_loading_script()\r\n File \"\/opt\/conda\/lib\/python3.10\/site-packages\/datasets\/load.py\", line 1467, in download_loading_script\r\n return cached_path(file_path, download_config=download_config)\r\n File \"\/opt\/conda\/lib\/python3.10\/site-packages\/datasets\/utils\/file_utils.py\", line 211, in cached_path\r\n output_path = get_from_cache(\r\n File \"\/opt\/conda\/lib\/python3.10\/site-packages\/datasets\/utils\/file_utils.py\", line 689, in get_from_cache\r\n fsspec_get(\r\n File \"\/opt\/conda\/lib\/python3.10\/site-packages\/datasets\/utils\/file_utils.py\", line 395, in fsspec_get\r\n fs.get_file(path, temp_file.name, callback=callback)\r\n File \"\/opt\/conda\/lib\/python3.10\/site-packages\/huggingface_hub\/hf_file_system.py\", line 648, in get_file\r\n http_get(\r\n File \"\/opt\/conda\/lib\/python3.10\/site-packages\/huggingface_hub\/file_download.py\", line 578, in http_get\r\n raise EnvironmentError(\r\nOSError: Consistency check failed: file should be of size 2191 but has size 2190 ((\u2026)ets\/mteb\/mtop_domain@main\/mtop_domain.py).\r\nWe are sorry for the inconvenience. Please retry with `force_download=True`.\r\nIf the issue persists, please let us know by opening an issue on https:\/\/github.com\/huggingface\/huggingface_hub.\r\n```\r\nTry to download through HF datasets directly but got the same error as above.\r\n```python\r\nfrom datasets import load_dataset\r\n\r\ndata = load_dataset(\"mteb\/mtop_domain\", \"en\")\r\n```\n\n### Steps to reproduce the bug\n\n```python\r\nfrom datasets import load_dataset\r\n\r\ndata = load_dataset(\"mteb\/mtop_domain\", \"en\", force_download=True)\r\n```\r\nWith and without `force_download=True` both ran into the same error.\n\n### Expected behavior\n\nShould download the dataset successfully.\n\n### Environment info\n\n- datasets version: 2.21.0\r\n- huggingface-hub version: 0.24.6","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7148\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7148\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7147","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7147\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7147\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7147\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7147","id":2523129465,"node_id":"I_kwDODunzps6WY-Z5","number":7147,"title":"IterableDataset strange deadlock","user":{"login":"jonathanasdf","id":511073,"node_id":"MDQ6VXNlcjUxMTA3Mw==","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/511073?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/jonathanasdf","html_url":"https:\/\/github.com\/jonathanasdf","followers_url":"https:\/\/api.github.com\/users\/jonathanasdf\/followers","following_url":"https:\/\/api.github.com\/users\/jonathanasdf\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/jonathanasdf\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/jonathanasdf\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/jonathanasdf\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/jonathanasdf\/orgs","repos_url":"https:\/\/api.github.com\/users\/jonathanasdf\/repos","events_url":"https:\/\/api.github.com\/users\/jonathanasdf\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/jonathanasdf\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2024-09-12T18:59:33Z","updated_at":"2024-09-23T09:32:27Z","closed_at":"2024-09-21T17:37:34Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\n```\r\nimport datasets\r\nimport torch.utils.data\r\n\r\n\r\nnum_shards = 1024\r\n\r\n\r\ndef gen(shards):\r\n for shard in shards:\r\n if shard < 25:\r\n yield {\"shard\": shard}\r\n\r\n\r\ndef main():\r\n dataset = datasets.IterableDataset.from_generator(\r\n gen,\r\n gen_kwargs={\"shards\": list(range(num_shards))},\r\n )\r\n dataset = dataset.shuffle(buffer_size=1)\r\n dataset = datasets.interleave_datasets(\r\n [dataset, dataset], probabilities=[1, 0], stopping_strategy=\"all_exhausted\"\r\n )\r\n dataset = dataset.shuffle(buffer_size=1)\r\n\r\n dataloader = torch.utils.data.DataLoader(\r\n dataset,\r\n batch_size=8,\r\n num_workers=8,\r\n )\r\n\r\n for i, batch in enumerate(dataloader):\r\n print(batch)\r\n if i >= 10:\r\n break\r\n print()\r\n\r\n\r\nif __name__ == \"__main__\":\r\n for _ in range(100):\r\n main()\r\n```\n\n### Steps to reproduce the bug\n\nRunning the script above, at some point it will freeze.\r\n\r\n- Changing `num_shards` from 1024 to 25 avoids the issue\r\n- Commenting out the final shuffle avoids the issue\r\n- Commenting out the interleave_datasets call avoids the issue\r\n\r\nAs an aside, if you comment out just the final shuffle, the output from interleave_datasets is not shuffled at all even though there's the shuffle before it. So something about that shuffle config is not being propagated to interleave_datasets.\n\n### Expected behavior\n\nThe script should not freeze.\n\n### Environment info\n\n- `datasets` version: 3.0.0\r\n- Platform: macOS-14.6.1-arm64-arm-64bit\r\n- Python version: 3.12.5\r\n- `huggingface_hub` version: 0.24.7\r\n- PyArrow version: 17.0.0\r\n- Pandas version: 2.2.2\r\n- `fsspec` version: 2024.6.1\r\n\r\n\r\nI observed this with 2.21.0 initially, then tried upgrading to 3.0.0 and could still repro.","closed_by":{"login":"jonathanasdf","id":511073,"node_id":"MDQ6VXNlcjUxMTA3Mw==","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/511073?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/jonathanasdf","html_url":"https:\/\/github.com\/jonathanasdf","followers_url":"https:\/\/api.github.com\/users\/jonathanasdf\/followers","following_url":"https:\/\/api.github.com\/users\/jonathanasdf\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/jonathanasdf\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/jonathanasdf\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/jonathanasdf\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/jonathanasdf\/orgs","repos_url":"https:\/\/api.github.com\/users\/jonathanasdf\/repos","events_url":"https:\/\/api.github.com\/users\/jonathanasdf\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/jonathanasdf\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7147\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7147\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7146","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7146\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7146\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7146\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7146","id":2519820162,"node_id":"PR_kwDODunzps57KqRV","number":7146,"title":"Set dev version","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-09-11T13:53:27Z","updated_at":"2024-09-12T04:34:08Z","closed_at":"2024-09-12T04:34:06Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7146","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7146","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7146.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7146.patch","merged_at":"2024-09-12T04:34:06Z"},"body":null,"closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7146\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7146\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7145","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7145\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7145\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7145\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7145","id":2519789724,"node_id":"PR_kwDODunzps57Kjjc","number":7145,"title":"Release: 3.0.0","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-09-11T13:41:47Z","updated_at":"2024-09-11T13:48:42Z","closed_at":"2024-09-11T13:48:41Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7145","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7145","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7145.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7145.patch","merged_at":"2024-09-11T13:48:41Z"},"body":null,"closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7145\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7145\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7144","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7144\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7144\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7144\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7144","id":2519393560,"node_id":"PR_kwDODunzps57JLmb","number":7144,"title":"Fix key error in webdataset","user":{"login":"ragavsachdeva","id":26804893,"node_id":"MDQ6VXNlcjI2ODA0ODkz","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/26804893?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ragavsachdeva","html_url":"https:\/\/github.com\/ragavsachdeva","followers_url":"https:\/\/api.github.com\/users\/ragavsachdeva\/followers","following_url":"https:\/\/api.github.com\/users\/ragavsachdeva\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ragavsachdeva\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ragavsachdeva\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ragavsachdeva\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ragavsachdeva\/orgs","repos_url":"https:\/\/api.github.com\/users\/ragavsachdeva\/repos","events_url":"https:\/\/api.github.com\/users\/ragavsachdeva\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ragavsachdeva\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2024-09-11T10:50:17Z","updated_at":"2025-01-15T10:32:43Z","closed_at":"2024-09-13T04:31:37Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7144","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7144","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7144.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7144.patch","merged_at":null},"body":"I was running into\r\n\r\n```\r\nexample[field_name] = {\"path\": example[\"__key__\"] + \".\" + field_name, \"bytes\": example[field_name]}\r\nKeyError: 'png'\r\n```\r\n\r\nThe issue is that a filename may have multiple \".\" e.g. `22.05.png`. Changing `split` to `rsplit` fixes it.\r\n\r\nRelated https:\/\/github.com\/huggingface\/datasets\/issues\/6880","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7144\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7144\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7143","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7143\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7143\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7143\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7143","id":2512327211,"node_id":"PR_kwDODunzps56xCm6","number":7143,"title":"Modify add_column() to optionally accept a FeatureType as param","user":{"login":"varadhbhatnagar","id":20443618,"node_id":"MDQ6VXNlcjIwNDQzNjE4","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/20443618?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/varadhbhatnagar","html_url":"https:\/\/github.com\/varadhbhatnagar","followers_url":"https:\/\/api.github.com\/users\/varadhbhatnagar\/followers","following_url":"https:\/\/api.github.com\/users\/varadhbhatnagar\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/varadhbhatnagar\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/varadhbhatnagar\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/varadhbhatnagar\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/varadhbhatnagar\/orgs","repos_url":"https:\/\/api.github.com\/users\/varadhbhatnagar\/repos","events_url":"https:\/\/api.github.com\/users\/varadhbhatnagar\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/varadhbhatnagar\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2024-09-08T10:56:57Z","updated_at":"2024-09-17T06:01:23Z","closed_at":"2024-09-16T15:11:01Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7143","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7143","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7143.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7143.patch","merged_at":"2024-09-16T15:11:01Z"},"body":"Fix #7142.\r\n\r\n**Before (Add + Cast)**:\r\n\r\n```\r\nfrom datasets import load_dataset, Value\r\nds = load_dataset(\"rotten_tomatoes\", split=\"test\")\r\nlst = [i for i in range(len(ds))]\r\n\r\nds = ds.add_column(\"new_col\", lst)\r\n# Assigns int64 to new_col by default\r\nprint(ds.features)\r\n\r\nds = ds.cast_column(\"new_col\", Value(dtype=\"uint16\", id=None))\r\nprint(ds.features)\r\n```\r\n\r\n\r\n**Before (Numpy Workaround)**:\r\n\r\n```\r\nfrom datasets import load_dataset\r\nimport numpy as np\r\nds = load_dataset(\"rotten_tomatoes\", split=\"test\")\r\nlst = [i for i in range(len(ds))]\r\n\r\nds = ds.add_column(\"new_col\", np.array(lst, dtype=np.uint16))\r\nprint(ds.features)\r\n```\r\n\r\n**After**:\r\n```\r\nfrom datasets import load_dataset, Value\r\nds = load_dataset(\"rotten_tomatoes\", split=\"test\")\r\nlst = [i for i in range(len(ds))]\r\nval = Value(dtype=\"uint16\", id=None))\r\nds = ds.add_column(\"new_col\", lst, feature=val)\r\nprint(ds.features)\r\n```","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7143\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7143\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7142","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7142\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7142\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7142\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7142","id":2512244938,"node_id":"I_kwDODunzps6VvdDK","number":7142,"title":"Specifying datatype when adding a column to a dataset.","user":{"login":"varadhbhatnagar","id":20443618,"node_id":"MDQ6VXNlcjIwNDQzNjE4","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/20443618?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/varadhbhatnagar","html_url":"https:\/\/github.com\/varadhbhatnagar","followers_url":"https:\/\/api.github.com\/users\/varadhbhatnagar\/followers","following_url":"https:\/\/api.github.com\/users\/varadhbhatnagar\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/varadhbhatnagar\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/varadhbhatnagar\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/varadhbhatnagar\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/varadhbhatnagar\/orgs","repos_url":"https:\/\/api.github.com\/users\/varadhbhatnagar\/repos","events_url":"https:\/\/api.github.com\/users\/varadhbhatnagar\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/varadhbhatnagar\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-09-08T07:34:24Z","updated_at":"2024-09-17T03:46:32Z","closed_at":"2024-09-17T03:46:32Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nThere should be a way to specify the datatype of a column in `datasets.add_column()`. \n\n### Motivation\n\nTo specify a custom datatype, we have to use `datasets.add_column()` followed by `datasets.cast_column()` which is slow for large datasets. Another workaround is to pass a `numpy.array()` of desired type to the `datasets.add_column()` function.\r\n\r\nIMO this functionality should be natively supported.\r\n\r\nhttps:\/\/discuss.huggingface.co\/t\/add-column-with-a-particular-type-in-datasets\/95674\r\n\r\n\n\n### Your contribution\n\nI can submit a PR for this.","closed_by":{"login":"varadhbhatnagar","id":20443618,"node_id":"MDQ6VXNlcjIwNDQzNjE4","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/20443618?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/varadhbhatnagar","html_url":"https:\/\/github.com\/varadhbhatnagar","followers_url":"https:\/\/api.github.com\/users\/varadhbhatnagar\/followers","following_url":"https:\/\/api.github.com\/users\/varadhbhatnagar\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/varadhbhatnagar\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/varadhbhatnagar\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/varadhbhatnagar\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/varadhbhatnagar\/orgs","repos_url":"https:\/\/api.github.com\/users\/varadhbhatnagar\/repos","events_url":"https:\/\/api.github.com\/users\/varadhbhatnagar\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/varadhbhatnagar\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7142\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7142\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7141","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7141\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7141\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7141\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7141","id":2510797653,"node_id":"I_kwDODunzps6Vp7tV","number":7141,"title":"Older datasets throwing safety errors with 2.21.0","user":{"login":"alvations","id":1050316,"node_id":"MDQ6VXNlcjEwNTAzMTY=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/1050316?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/alvations","html_url":"https:\/\/github.com\/alvations","followers_url":"https:\/\/api.github.com\/users\/alvations\/followers","following_url":"https:\/\/api.github.com\/users\/alvations\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/alvations\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/alvations\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/alvations\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/alvations\/orgs","repos_url":"https:\/\/api.github.com\/users\/alvations\/repos","events_url":"https:\/\/api.github.com\/users\/alvations\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/alvations\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":17,"created_at":"2024-09-06T16:26:30Z","updated_at":"2024-09-06T21:14:14Z","closed_at":"2024-09-06T19:09:29Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\r\n\r\nThe dataset loading was throwing some safety errors for this popular dataset `wmt14`. \r\n\r\n[in]:\r\n\r\n```\r\nimport datasets\r\n\r\n# train_data = datasets.load_dataset(\"wmt14\", \"de-en\", split=\"train\")\r\ntrain_data = datasets.load_dataset(\"wmt14\", \"de-en\", split=\"train\")\r\nval_data = datasets.load_dataset(\"wmt14\", \"de-en\", split=\"validation[:10%]\")\r\n```\r\n\r\n\r\n[out]:\r\n\r\n```\r\n---------------------------------------------------------------------------\r\nKeyError Traceback (most recent call last)\r\n[](https:\/\/localhost:8080\/#) in ()\r\n 2 \r\n 3 # train_data = datasets.load_dataset(\"wmt14\", \"de-en\", split=\"train\")\r\n----> 4 train_data = datasets.load_dataset(\"wmt14\", \"de-en\", split=\"train\")\r\n 5 val_data = datasets.load_dataset(\"wmt14\", \"de-en\", split=\"validation[:10%]\")\r\n\r\n12 frames\r\n[\/usr\/local\/lib\/python3.10\/dist-packages\/huggingface_hub\/hf_api.py](https:\/\/localhost:8080\/#) in __init__(self, **kwargs)\r\n 636 if security is not None:\r\n 637 security = BlobSecurityInfo(\r\n--> 638 safe=security[\"safe\"], av_scan=security[\"avScan\"], pickle_import_scan=security[\"pickleImportScan\"]\r\n 639 )\r\n 640 self.security = security\r\n\r\nKeyError: 'safe'\r\n```\r\n\r\n\r\n### Steps to reproduce the bug\r\n\r\nSee above.\r\n\r\n### Expected behavior\r\n\r\nDataset properly loaded.\r\n\r\n### Environment info\r\n\r\nversion: 2.21.0","closed_by":{"login":"muellerzr","id":7831895,"node_id":"MDQ6VXNlcjc4MzE4OTU=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/7831895?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/muellerzr","html_url":"https:\/\/github.com\/muellerzr","followers_url":"https:\/\/api.github.com\/users\/muellerzr\/followers","following_url":"https:\/\/api.github.com\/users\/muellerzr\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/muellerzr\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/muellerzr\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/muellerzr\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/muellerzr\/orgs","repos_url":"https:\/\/api.github.com\/users\/muellerzr\/repos","events_url":"https:\/\/api.github.com\/users\/muellerzr\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/muellerzr\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7141\/reactions","total_count":29,"+1":26,"-1":0,"laugh":0,"hooray":0,"confused":3,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7141\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7139","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7139\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7139\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7139\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7139","id":2508078858,"node_id":"I_kwDODunzps6Vfj8K","number":7139,"title":"Use load_dataset to load imagenet-1K But find a empty dataset","user":{"login":"fscdc","id":105094708,"node_id":"U_kgDOBkOeNA","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/105094708?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/fscdc","html_url":"https:\/\/github.com\/fscdc","followers_url":"https:\/\/api.github.com\/users\/fscdc\/followers","following_url":"https:\/\/api.github.com\/users\/fscdc\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/fscdc\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/fscdc\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/fscdc\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/fscdc\/orgs","repos_url":"https:\/\/api.github.com\/users\/fscdc\/repos","events_url":"https:\/\/api.github.com\/users\/fscdc\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/fscdc\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-09-05T15:12:22Z","updated_at":"2024-10-09T04:02:41Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\n```python\r\ndef get_dataset(data_path, train_folder=\"train\", val_folder=\"val\"):\r\n traindir = os.path.join(data_path, train_folder)\r\n valdir = os.path.join(data_path, val_folder)\r\n\r\n def transform_val_examples(examples):\r\n transform = Compose([\r\n Resize(256),\r\n CenterCrop(224),\r\n ToTensor(),\r\n ])\r\n examples[\"image\"] = [transform(image.convert(\"RGB\")) for image in examples[\"image\"]]\r\n return examples\r\n\r\n def transform_train_examples(examples):\r\n transform = Compose([\r\n RandomResizedCrop(224),\r\n RandomHorizontalFlip(),\r\n ToTensor(),\r\n ])\r\n examples[\"image\"] = [transform(image.convert(\"RGB\")) for image in examples[\"image\"]]\r\n return examples\r\n\r\n # @fengsicheng: This way is very slow for big dataset like ImageNet-1K (but can pass the network problem using local dataset)\r\n # train_set = load_dataset(\"imagefolder\", data_dir=traindir, num_proc=4)\r\n # test_set = load_dataset(\"imagefolder\", data_dir=valdir, num_proc=4)\r\n\r\n train_set = load_dataset(\"imagenet-1K\", split=\"train\", trust_remote_code=True) \r\n test_set = load_dataset(\"imagenet-1K\", split=\"test\", trust_remote_code=True)\r\n\r\n print(train_set[\"label\"])\r\n\r\n train_set.set_transform(transform_train_examples)\r\n test_set.set_transform(transform_val_examples)\r\n\r\n return train_set, test_set\r\n```\r\n above the code, but output of the print is a list of None:\r\n \r\n\"image\"\r\n\n\n### Steps to reproduce the bug\n\n1. just ran the code \r\n2. see the print\r\n\n\n### Expected behavior\n\nI do not know how to fix this, can anyone provide help or something? It is hurry for me\n\n### Environment info\n\n- `datasets` version: 2.21.0\r\n- Platform: Linux-5.4.0-190-generic-x86_64-with-glibc2.31\r\n- Python version: 3.10.14\r\n- `huggingface_hub` version: 0.24.6\r\n- PyArrow version: 17.0.0\r\n- Pandas version: 2.2.2\r\n- `fsspec` version: 2024.6.1","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7139\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7139\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7138","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7138\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7138\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7138\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7138","id":2507738308,"node_id":"I_kwDODunzps6VeQzE","number":7138,"title":"Cache only changed columns?","user":{"login":"Modexus","id":37351874,"node_id":"MDQ6VXNlcjM3MzUxODc0","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/37351874?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Modexus","html_url":"https:\/\/github.com\/Modexus","followers_url":"https:\/\/api.github.com\/users\/Modexus\/followers","following_url":"https:\/\/api.github.com\/users\/Modexus\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Modexus\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Modexus\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Modexus\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Modexus\/orgs","repos_url":"https:\/\/api.github.com\/users\/Modexus\/repos","events_url":"https:\/\/api.github.com\/users\/Modexus\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Modexus\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-09-05T12:56:47Z","updated_at":"2024-09-20T13:27:20Z","closed_at":null,"author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nCache only the actual changes to the dataset i.e. changed columns.\n\n### Motivation\n\nI realized that caching actually saves the complete dataset again.\r\nThis is especially problematic for image datasets if one wants to only change another column e.g. some metadata and then has to save 5 TB again.\n\n### Your contribution\n\nIs this even viable in the current architecture of the package?\r\nI quickly looked into it and it seems it would require significant changes.\r\n\r\nI would spend some time looking into this but maybe somebody could help with the feasibility and some plan to implement before spending too much time on it?","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7138\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7138\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7137","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7137\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7137\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7137\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7137","id":2506851048,"node_id":"I_kwDODunzps6Va4Lo","number":7137,"title":"[BUG] dataset_info sequence unexpected behavior in README.md YAML","user":{"login":"ain-soph","id":13214530,"node_id":"MDQ6VXNlcjEzMjE0NTMw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/13214530?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ain-soph","html_url":"https:\/\/github.com\/ain-soph","followers_url":"https:\/\/api.github.com\/users\/ain-soph\/followers","following_url":"https:\/\/api.github.com\/users\/ain-soph\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ain-soph\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ain-soph\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ain-soph\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ain-soph\/orgs","repos_url":"https:\/\/api.github.com\/users\/ain-soph\/repos","events_url":"https:\/\/api.github.com\/users\/ain-soph\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ain-soph\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2024-09-05T06:06:06Z","updated_at":"2025-07-07T09:20:29Z","closed_at":"2025-07-04T19:50:59Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\r\n\r\nWhen working on `dataset_info` yaml, I find my data column with format `list[dict[str, str]]` cannot be coded correctly.\r\n\r\nMy data looks like\r\n```\r\n{\"answers\":[{\"text\": \"ADDRESS\", \"label\": \"abc\"}]}\r\n```\r\n\r\nMy `dataset_info` in README.md is:\r\n```\r\ndataset_info:\r\n- config_name: default\r\n features:\r\n - name: answers\r\n sequence:\r\n - name: text\r\n dtype: string\r\n - name: label\r\n dtype: string\r\n```\r\n\r\n**Error log**:\r\n```\r\npyarrow.lib.ArrowNotImplementedError: Unsupported cast from list> to struct using function cast_struct\r\n```\r\n\r\n## Potential Reason\r\nAfter some analysis, it turns out that my yaml config is requiring `dict[str, list[str]]` instead of `list[dict[str, str]]`. It would work if I change my data to\r\n```\r\n{\"answers\":{\"text\": [\"ADDRESS\"], \"label\": [\"abc\", \"def\"]}}\r\n```\r\n\r\nThese following 2 different `dataset_info` are actually equivalent.\r\n\r\n```\r\ndataset_info:\r\n- config_name: default\r\n features:\r\n - name: answers\r\n dtype:\r\n - name: text\r\n sequence: string\r\n - name: label\r\n sequence: string\r\n\r\ndataset_info:\r\n- config_name: default\r\n features:\r\n - name: answers\r\n sequence:\r\n - name: text\r\n dtype: string\r\n - name: label\r\n dtype: string\r\n```\r\n\r\n\r\n\r\n### Steps to reproduce the bug\r\n\r\n\r\n```\r\n# README.md\r\n---\r\ndataset_info:\r\n- config_name: default\r\n features:\r\n - name: answers\r\n sequence:\r\n - name: text\r\n dtype: string\r\n - name: label\r\n dtype: string\r\nconfigs:\r\n- config_name: default\r\n default: true\r\n data_files:\r\n - split: train\r\n path:\r\n - \"test.jsonl\"\r\n---\r\n\r\n\r\n\r\n# test.jsonl\r\n\r\n# expected but not working\r\n{\"answers\":[{\"text\": \"ADDRESS\", \"label\": \"abc\"}]}\r\n\r\n# unexpected but working\r\n{\"answers\":{\"text\": [\"ADDRESS\"], \"label\": [\"abc\", \"def\"]}}\r\n\r\n```\r\n\r\n### Expected behavior\r\n\r\n```\r\ndataset_info:\r\n- config_name: default\r\n features:\r\n - name: answers\r\n sequence:\r\n - name: text\r\n dtype: string\r\n - name: label\r\n dtype: string\r\n```\r\nShould work on following data format:\r\n\r\n```\r\n{\"answers\":[{\"text\":\"ADDRESS\", \"label\": \"abc\"}]}\r\n```\r\n\r\n### Environment info\r\n\r\n- `datasets` version: 2.21.0\r\n- Platform: macOS-14.6.1-arm64-arm-64bit\r\n- Python version: 3.12.4\r\n- `huggingface_hub` version: 0.24.5\r\n- PyArrow version: 17.0.0\r\n- Pandas version: 2.2.2\r\n- `fsspec` version: 2024.6.1","closed_by":{"login":"ain-soph","id":13214530,"node_id":"MDQ6VXNlcjEzMjE0NTMw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/13214530?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ain-soph","html_url":"https:\/\/github.com\/ain-soph","followers_url":"https:\/\/api.github.com\/users\/ain-soph\/followers","following_url":"https:\/\/api.github.com\/users\/ain-soph\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ain-soph\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ain-soph\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ain-soph\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ain-soph\/orgs","repos_url":"https:\/\/api.github.com\/users\/ain-soph\/repos","events_url":"https:\/\/api.github.com\/users\/ain-soph\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ain-soph\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7137\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7137\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7136","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7136\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7136\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7136\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7136","id":2506115857,"node_id":"PR_kwDODunzps56b9R-","number":7136,"title":"Do not consume unnecessary memory during sharding","user":{"login":"janEbert","id":12694897,"node_id":"MDQ6VXNlcjEyNjk0ODk3","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/12694897?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/janEbert","html_url":"https:\/\/github.com\/janEbert","followers_url":"https:\/\/api.github.com\/users\/janEbert\/followers","following_url":"https:\/\/api.github.com\/users\/janEbert\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/janEbert\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/janEbert\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/janEbert\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/janEbert\/orgs","repos_url":"https:\/\/api.github.com\/users\/janEbert\/repos","events_url":"https:\/\/api.github.com\/users\/janEbert\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/janEbert\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-09-04T19:26:06Z","updated_at":"2024-09-04T19:28:23Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7136","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7136","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7136.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7136.patch","merged_at":null},"body":"When sharding `IterableDataset`s, a temporary list is created that is then indexed. There is no need to create a temporary list of a potentially very large step\/world size, with standard `islice` functionality, so we avoid it.\r\n\r\n```shell\r\npytest tests\/test_distributed.py -k iterable\r\n```\r\nRuns successfully.","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7136\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7136\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7135","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7135\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7135\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7135\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7135","id":2503318328,"node_id":"I_kwDODunzps6VNZs4","number":7135,"title":"Bug: Type Mismatch in Dataset Mapping","user":{"login":"marko1616","id":45327989,"node_id":"MDQ6VXNlcjQ1MzI3OTg5","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/45327989?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/marko1616","html_url":"https:\/\/github.com\/marko1616","followers_url":"https:\/\/api.github.com\/users\/marko1616\/followers","following_url":"https:\/\/api.github.com\/users\/marko1616\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/marko1616\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/marko1616\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/marko1616\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/marko1616\/orgs","repos_url":"https:\/\/api.github.com\/users\/marko1616\/repos","events_url":"https:\/\/api.github.com\/users\/marko1616\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/marko1616\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2024-09-03T16:37:01Z","updated_at":"2024-09-05T14:09:05Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"# Issue: Type Mismatch in Dataset Mapping\r\n\r\n## Description\r\nThere is an issue with the `map` function in the `datasets` library where the mapped output does not reflect the expected type change. After applying a mapping function to convert an integer label to a string, the resulting type remains an integer instead of a string.\r\n\r\n## Reproduction Code\r\nBelow is a Python script that demonstrates the problem:\r\n\r\n```python\r\nfrom datasets import Dataset\r\n\r\n# Original data\r\ndata = {\r\n 'text': ['Hello', 'world', 'this', 'is', 'a', 'test'],\r\n 'label': [0, 1, 0, 1, 1, 0]\r\n}\r\n\r\n# Creating a Dataset object\r\ndataset = Dataset.from_dict(data)\r\n\r\n# Mapping function to convert label to string\r\ndef add_one(example):\r\n example['label'] = str(example['label'])\r\n return example\r\n\r\n# Applying the mapping function\r\ndataset = dataset.map(add_one)\r\n\r\n# Iterating over the dataset to show results\r\nfor item in dataset:\r\n print(item)\r\n print(type(item['label']))\r\n```\r\n\r\n## Expected Output\r\nAfter applying the mapping function, the expected output should have the `label` field as strings:\r\n\r\n```plaintext\r\n{'text': 'Hello', 'label': '0'}\r\n\r\n{'text': 'world', 'label': '1'}\r\n\r\n{'text': 'this', 'label': '0'}\r\n\r\n{'text': 'is', 'label': '1'}\r\n\r\n{'text': 'a', 'label': '1'}\r\n\r\n{'text': 'test', 'label': '0'}\r\n\r\n```\r\n\r\n## Actual Output\r\nThe actual output still shows the `label` field values as integers:\r\n\r\n```plaintext\r\n{'text': 'Hello', 'label': 0}\r\n\r\n{'text': 'world', 'label': 1}\r\n\r\n{'text': 'this', 'label': 0}\r\n\r\n{'text': 'is', 'label': 1}\r\n\r\n{'text': 'a', 'label': 1}\r\n\r\n{'text': 'test', 'label': 0}\r\n\r\n```\r\n\r\n## Why necessary\r\nIn the case of Image process we often need to convert PIL to tensor with same column name.\r\n\r\nThank for every dev who review this issue. \ud83e\udd17","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7135\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7135\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7134","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7134\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7134\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7134\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7134","id":2499484041,"node_id":"I_kwDODunzps6U-xmJ","number":7134,"title":"Attempting to return a rank 3 grayscale image from dataset.map results in extreme slowdown ","user":{"login":"navidmafi","id":46371349,"node_id":"MDQ6VXNlcjQ2MzcxMzQ5","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/46371349?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/navidmafi","html_url":"https:\/\/github.com\/navidmafi","followers_url":"https:\/\/api.github.com\/users\/navidmafi\/followers","following_url":"https:\/\/api.github.com\/users\/navidmafi\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/navidmafi\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/navidmafi\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/navidmafi\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/navidmafi\/orgs","repos_url":"https:\/\/api.github.com\/users\/navidmafi\/repos","events_url":"https:\/\/api.github.com\/users\/navidmafi\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/navidmafi\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-09-01T13:55:41Z","updated_at":"2024-09-02T10:34:53Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\r\n\r\nBackground: Digital images are often represented as a (Height, Width, Channel) tensor. This is the same for huggingface datasets that contain images. These images are loaded in Pillow containers which offer, for example, the `.convert` method.\r\n\r\nI can convert an image from a (H,W,3) shape to a grayscale (H,W) image and I have no problems with this. But when attempting to return a (H,W,1) shaped matrix from a map function, it never completes and sometimes even results in an OOM from the OS.\r\n\r\n\r\nI've used various methods to expand a (H,W) shaped array to a (H,W,1) array. But they all resulted in extremely long map operations consuming a lot of CPU and RAM.\r\n\r\n### Steps to reproduce the bug\r\n\r\nBelow is a minimal example using two methods to get the desired output. Both of which don't work\r\n```py\r\nimport tensorflow as tf\r\nimport datasets\r\nimport numpy as np\r\n\r\nds = datasets.load_dataset(\"project-sloth\/captcha-images\")\r\nto_gray_pillow = lambda sample: {'image': np.expand_dims(sample['image'].convert(\"L\"), axis=-1)}\r\nds_gray = ds.map(to_gray_pillow)\r\n\r\n# Alternatively\r\nds = datasets.load_dataset(\"project-sloth\/captcha-images\").with_format(\"tensorflow\")\r\nto_gray_tf = lambda sample: {'image': tf.expand_dims(tf.image.rgb_to_grayscale(sample['image']), axis=-1)}\r\nds_gray = ds.map(to_gray_tf)\r\n```\r\n\r\n### Expected behavior\r\n\r\nI expect the map operation to complete and return a new dataset containing grayscale images in a (H,W,1) shape.\r\n\r\n### Environment info\r\n\r\ndatasets 2.21.0\r\npython tested with both 3.11 and 3.12\r\nhost os : linux","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7134\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7134\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7133","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7133\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7133\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7133\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7133","id":2496474495,"node_id":"PR_kwDODunzps557zng","number":7133,"title":"remove filecheck to enable symlinks","user":{"login":"fschlatt","id":23191892,"node_id":"MDQ6VXNlcjIzMTkxODky","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/23191892?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/fschlatt","html_url":"https:\/\/github.com\/fschlatt","followers_url":"https:\/\/api.github.com\/users\/fschlatt\/followers","following_url":"https:\/\/api.github.com\/users\/fschlatt\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/fschlatt\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/fschlatt\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/fschlatt\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/fschlatt\/orgs","repos_url":"https:\/\/api.github.com\/users\/fschlatt\/repos","events_url":"https:\/\/api.github.com\/users\/fschlatt\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/fschlatt\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2024-08-30T07:36:56Z","updated_at":"2024-12-24T14:25:22Z","closed_at":"2024-12-24T14:25:22Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7133","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7133","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7133.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7133.patch","merged_at":"2024-12-24T14:25:22Z"},"body":"Enables streaming from local symlinks #7083 \r\n\r\n@lhoestq","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7133\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7133\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7132","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7132\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7132\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7132\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7132","id":2494510464,"node_id":"PR_kwDODunzps551k1C","number":7132,"title":"Fix data file module inference","user":{"login":"HennerM","id":1714412,"node_id":"MDQ6VXNlcjE3MTQ0MTI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/1714412?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/HennerM","html_url":"https:\/\/github.com\/HennerM","followers_url":"https:\/\/api.github.com\/users\/HennerM\/followers","following_url":"https:\/\/api.github.com\/users\/HennerM\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/HennerM\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/HennerM\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/HennerM\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/HennerM\/orgs","repos_url":"https:\/\/api.github.com\/users\/HennerM\/repos","events_url":"https:\/\/api.github.com\/users\/HennerM\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/HennerM\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2024-08-29T13:48:16Z","updated_at":"2024-09-02T19:52:13Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7132","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7132","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7132.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7132.patch","merged_at":null},"body":"I saved a dataset with two splits to disk with `DatasetDict.save_to_disk`. The train is bigger and ended up in 10 shards, whereas the test split only resulted in 1 split.\r\n\r\nNow when trying to load the dataset, an error is raised that not all splits have the same data format:\r\n\r\n> ValueError: Couldn't infer the same data file format for all splits. Got {NamedSplit('train'): ('arrow', {}), NamedSplit('test'): ('json', {})}\r\n\r\nThis is not expected because both splits are saved as arrow files.\r\n\r\nI did some debugging and found that this is the case because the list of data_files includes a `state.json` file. \r\n\r\nNow this means for train split I get 10 \".arrow\" and 1 \".json\" file. Since datasets picks based on the most common extension this is correctly inferred as \"arrow\". In the test split, there is 1 .arrow and 1 .json file. Given the function description:\r\n\r\n> It picks the module based on the most common file extension.\r\n In case of a draw \".parquet\" is the favorite, and then alphabetical order.\r\n\r\nThis is not quite true though, because in a tie the extensions are actually based on reverse-alphabetical order:\r\n```\r\nfor (ext, _), _ in sorted(extensions_counter.items(), key=sort_key, *reverse=True*):\r\n```\r\n\r\nWhich thus leads to the module wrongly inferred as \"json\", whereas it should be \"arrow\", matching the train split.\r\n\r\nI first thought about adding \"state.json\" in the list of excluded files for the inference: https:\/\/github.com\/huggingface\/datasets\/blob\/main\/src\/datasets\/load.py#L513. However, I think from digging into the code it looks like the right thing to do is to exclude it in the list of `data_files` to start with, because it is more of a metadata than a data file.","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7132\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7132\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7129","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7129\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7129\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7129\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7129","id":2491942650,"node_id":"I_kwDODunzps6UiAb6","number":7129,"title":"Inconsistent output in documentation example: `num_classes` not displayed in `ClassLabel` output","user":{"login":"sergiopaniego","id":17179696,"node_id":"MDQ6VXNlcjE3MTc5Njk2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/17179696?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/sergiopaniego","html_url":"https:\/\/github.com\/sergiopaniego","followers_url":"https:\/\/api.github.com\/users\/sergiopaniego\/followers","following_url":"https:\/\/api.github.com\/users\/sergiopaniego\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/sergiopaniego\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/sergiopaniego\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/sergiopaniego\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/sergiopaniego\/orgs","repos_url":"https:\/\/api.github.com\/users\/sergiopaniego\/repos","events_url":"https:\/\/api.github.com\/users\/sergiopaniego\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/sergiopaniego\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-08-28T12:27:48Z","updated_at":"2024-12-06T11:32:02Z","closed_at":"2024-12-06T11:32:02Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"In the documentation for [ClassLabel](https:\/\/huggingface.co\/docs\/datasets\/v2.21.0\/en\/package_reference\/main_classes#datasets.ClassLabel), there is an example of usage with the following code:\r\n\r\n````\r\nfrom datasets import Features\r\nfeatures = Features({'label': ClassLabel(num_classes=3, names=['bad', 'ok', 'good'])})\r\nfeatures\r\n````\r\n\r\nwhich expects to output (as stated in the documentation):\r\n\r\n````\r\n{'label': ClassLabel(num_classes=3, names=['bad', 'ok', 'good'], id=None)}\r\n````\r\n\r\nbut it generates the following\r\n\r\n````\r\n{'label': ClassLabel(names=['bad', 'ok', 'good'], id=None)}\r\n````\r\n\r\nIf my understanding is correct, this happens because although num_classes is used during the init of the object, it is afterward ignored:\r\n\r\nhttps:\/\/github.com\/huggingface\/datasets\/blob\/be5cff059a2a5b89d7a97bc04739c4919ab8089f\/src\/datasets\/features\/features.py#L975\r\n\r\nI would like to work on this issue if this is something needed \ud83d\ude04\r\n","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7129\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7129\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7128","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7128\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7128\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7128\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7128","id":2490274775,"node_id":"I_kwDODunzps6UbpPX","number":7128,"title":"Filter Large Dataset Entry by Entry","user":{"login":"QiyaoWei","id":36057290,"node_id":"MDQ6VXNlcjM2MDU3Mjkw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/36057290?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/QiyaoWei","html_url":"https:\/\/github.com\/QiyaoWei","followers_url":"https:\/\/api.github.com\/users\/QiyaoWei\/followers","following_url":"https:\/\/api.github.com\/users\/QiyaoWei\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/QiyaoWei\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/QiyaoWei\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/QiyaoWei\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/QiyaoWei\/orgs","repos_url":"https:\/\/api.github.com\/users\/QiyaoWei\/repos","events_url":"https:\/\/api.github.com\/users\/QiyaoWei\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/QiyaoWei\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2024-08-27T20:31:09Z","updated_at":"2024-10-07T23:37:44Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nI am not sure if this is a new feature, but I wanted to post this problem here, and hear if others have ways of optimizing and speeding up this process.\r\n\r\nLet's say I have a really large dataset that I cannot load into memory. At this point, I am only aware of `streaming=True` to load the dataset. Now, the dataset consists of many tables. Ideally, I would want to have some simple filtering criterion, such that I only see the \"good\" tables. Here is an example of what the code might look like:\r\n\r\n```\r\ndataset = load_dataset(\r\n \"really-large-dataset\",\r\n streaming=True\r\n)\r\n# And let's say we process the dataset bit by bit because we want intermediate results\r\ndataset = islice(dataset, 10000)\r\n\r\n# Define a function to filter the data\r\ndef filter_function(table):\r\n if some_condition:\r\n return True\r\n else:\r\n return False\r\n\r\n# Use the filter function on your dataset\r\nfiltered_dataset = (ex for ex in dataset if filter_function(ex))\r\n```\r\n\r\nAnd then I work on the processed dataset, which would be magnitudes faster than working on the original. I would love to hear if the problem setup + solution makes sense to people, and if anyone has suggestions!\n\n### Motivation\n\nSee description above\n\n### Your contribution\n\nHappy to make PR if this is a new feature","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7128\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7128\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7127","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7127\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7127\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7127\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7127","id":2486524966,"node_id":"I_kwDODunzps6UNVwm","number":7127,"title":"Caching shuffles by np.random.Generator results in unintiutive behavior","user":{"login":"el-hult","id":11832922,"node_id":"MDQ6VXNlcjExODMyOTIy","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/11832922?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/el-hult","html_url":"https:\/\/github.com\/el-hult","followers_url":"https:\/\/api.github.com\/users\/el-hult\/followers","following_url":"https:\/\/api.github.com\/users\/el-hult\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/el-hult\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/el-hult\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/el-hult\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/el-hult\/orgs","repos_url":"https:\/\/api.github.com\/users\/el-hult\/repos","events_url":"https:\/\/api.github.com\/users\/el-hult\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/el-hult\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-08-26T10:29:48Z","updated_at":"2025-07-28T11:00:00Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nCreate a dataset. Save it to disk. Load from disk. Shuffle, usning a `np.random.Generator`. Iterate. Shuffle again. Iterate. The iterates are different since the supplied np.random.Generator has progressed between the shuffles.\r\n\r\nLoad dataset from disk again. Shuffle and Iterate. See same result as before. Shuffle and iterate, and this time it does not have the same shuffling as ion previous run.\r\n\r\nThe motivation is I have a deep learning loop with \r\n\r\n```\r\nfor epoch in range(10):\r\n for batch in dataset.shuffle(generator=generator).iter(batch_size=32):\r\n .... # do stuff\r\n```\r\nwhere I want a new shuffling at every epoch. Instead I get the same shuffling.\n\n### Steps to reproduce the bug\n\nRun the code below two times. \r\n\r\n```python\r\nimport datasets\r\nimport numpy as np\r\n\r\ngenerator = np.random.default_rng(0)\r\nds = datasets.Dataset.from_dict(mapping={\"X\":range(1000)})\r\nds.save_to_disk(\"tmp\")\r\nprint(\"First loop: \", end=\"\")\r\nfor _ in range(10):\r\n print(next(ds.shuffle(generator=generator).iter(batch_size=1))['X'], end=\", \")\r\nprint(\"\")\r\n\r\nprint(\"Second loop: \", end=\"\")\r\nds = datasets.Dataset.load_from_disk(\"tmp\")\r\nfor _ in range(10):\r\n print(next(ds.shuffle(generator=generator).iter(batch_size=1))['X'], end=\", \")\r\nprint(\"\")\r\n```\r\n\r\nThe output is:\r\n\r\n```\r\n$ python main.py \r\nSaving the dataset (1\/1 shards): 100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 1000\/1000 [00:00<00:00, 495019.95 examples\/s]\r\nFirst loop: 459, 739, 72, 943, 241, 181, 845, 830, 896, 334, \r\nSecond loop: 741, 847, 944, 795, 483, 842, 717, 865, 231, 840,\r\n$ python main.py \r\nSaving the dataset (1\/1 shards): 100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 1000\/1000 [00:00<00:00, 22243.40 examples\/s]\r\nFirst loop: 459, 739, 72, 943, 241, 181, 845, 830, 896, 334, \r\nSecond loop: 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, \r\n```\r\n\r\nThe second loop, on the second run, only spits out \"741, 741, 741....\" which is *not* the desired output\n\n### Expected behavior\n\nI want the dataset to shuffle at every epoch since I provide it with a generator for shuffling. \n\n### Environment info\n\nDatasets version 2.21.0\r\nUbuntu linux.","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7127\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7127\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7126","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7126\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7126\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7126\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7126","id":2485939495,"node_id":"PR_kwDODunzps55Y-Ws","number":7126,"title":"Disable implicit token in CI","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-08-26T05:29:46Z","updated_at":"2024-08-26T06:05:01Z","closed_at":"2024-08-26T05:59:15Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7126","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7126","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7126.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7126.patch","merged_at":"2024-08-26T05:59:15Z"},"body":"Disable implicit token in CI.\r\n\r\nThis PR allows running CI tests locally without implicitly using the local user HF token. For example, run locally the tests in:\r\n- #7124","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7126\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7126\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7125","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7125\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7125\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7125\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7125","id":2485912246,"node_id":"PR_kwDODunzps55Y4TM","number":7125,"title":"Fix wrong SHA in CI tests of HubDatasetModuleFactoryWithParquetExport","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-08-26T05:09:35Z","updated_at":"2024-08-26T05:33:15Z","closed_at":"2024-08-26T05:27:09Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7125","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7125","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7125.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7125.patch","merged_at":"2024-08-26T05:27:09Z"},"body":"Fix wrong SHA in CI tests of HubDatasetModuleFactoryWithParquetExport.","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7125\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7125\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7124","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7124\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7124\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7124\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7124","id":2485890442,"node_id":"PR_kwDODunzps55YzWr","number":7124,"title":"Test get_dataset_config_info with non-existing\/gated\/private dataset","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-08-26T04:53:59Z","updated_at":"2024-08-26T06:15:33Z","closed_at":"2024-08-26T06:09:42Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7124","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7124","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7124.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7124.patch","merged_at":"2024-08-26T06:09:42Z"},"body":"Test get_dataset_config_info with non-existing\/gated\/private dataset.\r\n\r\nRelated to:\r\n- #7109\r\n\r\nSee also:\r\n- https:\/\/github.com\/huggingface\/dataset-viewer\/pull\/3037: https:\/\/github.com\/huggingface\/dataset-viewer\/pull\/3037\/commits\/bb1a7e00c53c242088597cab6572e4fd57797ecb","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7124\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7124\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7123","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7123\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7123\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7123\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7123","id":2484003937,"node_id":"I_kwDODunzps6UDuRh","number":7123,"title":"Make dataset viewer more flexible in displaying metadata alongside images","user":{"login":"egrace479","id":38985481,"node_id":"MDQ6VXNlcjM4OTg1NDgx","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/38985481?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/egrace479","html_url":"https:\/\/github.com\/egrace479","followers_url":"https:\/\/api.github.com\/users\/egrace479\/followers","following_url":"https:\/\/api.github.com\/users\/egrace479\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/egrace479\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/egrace479\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/egrace479\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/egrace479\/orgs","repos_url":"https:\/\/api.github.com\/users\/egrace479\/repos","events_url":"https:\/\/api.github.com\/users\/egrace479\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/egrace479\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2024-08-23T22:56:01Z","updated_at":"2024-10-17T09:13:47Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\r\n\r\nTo display images with their associated metadata in the dataset viewer, a `metadata.csv` file is required. In the case of a dataset with multiple subsets, this would require the CSVs to be contained in the same folder as the images since they all need to be named `metadata.csv`. The request is that this be made more flexible for datasets with multiple subsets to avoid the need to put a `metadata.csv` into each image directory where they are not as easily accessed. \r\n\r\n### Motivation\r\n\r\nWhen creating datasets with multiple subsets I can't get the images to display alongside their associated metadata (it's usually one or the other that will show up). Since this requires a file specifically named `metadata.csv`, I then have to place that file within the image directory, which makes it much more difficult to access. Additionally, it still doesn't necessarily display the images alongside their metadata correctly (see, for instance, [this discussion](https:\/\/huggingface.co\/datasets\/imageomics\/2018-NEON-beetles\/discussions\/8)).\r\n\r\nIt was suggested I bring this discussion to GitHub on another dataset struggling with a similar issue ([discussion](https:\/\/huggingface.co\/datasets\/imageomics\/fish-vista\/discussions\/4)). In that case, it's a mix of data subsets, where some just reference the image URLs, while others actually have the images uploaded. The ones with images uploaded are not displaying images, but renaming that file to just `metadata.csv` would diminish the clarity of the construction of the dataset itself (and I'm not entirely convinced it would solve the issue).\r\n\r\n### Your contribution\r\n\r\nI can make a suggestion for one approach to address the issue:\r\n\r\nFor instance, even if it could just end in `_metadata.csv` or `-metadata.csv`, that would be very helpful to allow for more flexibility of dataset structure without impacting clarity. I would think that the functionality on the backend looking for `metadata.csv` could reasonably be adapted to look for such an ending on a filename (maybe also check that it has a `file_name` column?).\r\n\r\nPresumably, requiring the `configs` in a setup like on [this dataset](https:\/\/huggingface.co\/datasets\/imageomics\/rare-species\/blob\/main\/README.md) could also help in figuring out how it should work?\r\n```\r\nconfigs:\r\n - config_name: \r\n data_files:\r\n - .csv\r\n - \/*.jpg\r\n```\r\n\r\nI'd also be happy to look at whatever solution is decided upon and contribute to the ideation.\r\n\r\nThanks for your time and consideration! The dataset viewer really is fabulous when it works :)","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7123\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7123\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7122","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7122\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7122\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7122\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7122","id":2482491258,"node_id":"I_kwDODunzps6T9896","number":7122,"title":"[interleave_dataset] sample batches from a single source at a time","user":{"login":"memray","id":4197249,"node_id":"MDQ6VXNlcjQxOTcyNDk=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/4197249?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/memray","html_url":"https:\/\/github.com\/memray","followers_url":"https:\/\/api.github.com\/users\/memray\/followers","following_url":"https:\/\/api.github.com\/users\/memray\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/memray\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/memray\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/memray\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/memray\/orgs","repos_url":"https:\/\/api.github.com\/users\/memray\/repos","events_url":"https:\/\/api.github.com\/users\/memray\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/memray\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-08-23T07:21:15Z","updated_at":"2024-08-23T07:21:15Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\ninterleave_dataset and [RandomlyCyclingMultiSourcesExamplesIterable](https:\/\/github.com\/huggingface\/datasets\/blob\/3813ce846e52824b38e53895810682f0a496a2e3\/src\/datasets\/iterable_dataset.py#L816) enable us to sample data examples from different sources. But can we also sample batches in a similar manner (each batch only contains data from a single source)?\r\n\n\n### Motivation\n\nSome recent research [[1](https:\/\/blog.salesforceairesearch.com\/sfr-embedded-mistral\/), [2](https:\/\/arxiv.org\/pdf\/2310.07554)] shows that source homogenous batching can be helpful for contrastive learning. Can we add a function called `RandomlyCyclingMultiSourcesBatchesIterable` to support this functionality?\n\n### Your contribution\n\nI can contribute a PR. But I wonder what the best way is to test its correctness and robustness.","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7122\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7122\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7121","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7121\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7121\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7121\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7121","id":2480978483,"node_id":"PR_kwDODunzps55Iukl","number":7121,"title":"Fix typed examples iterable state dict","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-08-22T14:45:03Z","updated_at":"2024-08-22T14:54:56Z","closed_at":"2024-08-22T14:49:06Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7121","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7121","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7121.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7121.patch","merged_at":"2024-08-22T14:49:06Z"},"body":"fix https:\/\/github.com\/huggingface\/datasets\/issues\/7085 as noted by @VeryLazyBoy and reported by @AjayP13","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7121\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7121\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7120","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7120\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7120\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7120\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7120","id":2480674237,"node_id":"PR_kwDODunzps55HrBy","number":7120,"title":"don't mention the script if trust_remote_code=False","user":{"login":"severo","id":1676121,"node_id":"MDQ6VXNlcjE2NzYxMjE=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/1676121?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/severo","html_url":"https:\/\/github.com\/severo","followers_url":"https:\/\/api.github.com\/users\/severo\/followers","following_url":"https:\/\/api.github.com\/users\/severo\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/severo\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/severo\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/severo\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/severo\/orgs","repos_url":"https:\/\/api.github.com\/users\/severo\/repos","events_url":"https:\/\/api.github.com\/users\/severo\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/severo\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2024-08-22T12:32:32Z","updated_at":"2024-08-22T14:39:52Z","closed_at":"2024-08-22T14:33:52Z","author_association":"COLLABORATOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7120","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7120","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7120.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7120.patch","merged_at":"2024-08-22T14:33:52Z"},"body":"See https:\/\/huggingface.co\/datasets\/Omega02gdfdd\/bioclip-demo-zero-shot-mistakes for example. The error is:\r\n\r\n```\r\nFileNotFoundError: Couldn't find a dataset script at \/src\/services\/worker\/Omega02gdfdd\/bioclip-demo-zero-shot-mistakes\/bioclip-demo-zero-shot-mistakes.py or any data file in the same directory. Couldn't find 'Omega02gdfdd\/bioclip-demo-zero-shot-mistakes' on the Hugging Face Hub either: FileNotFoundError: Unable to find 'hf:\/\/datasets\/Omega02gdfdd\/bioclip-demo-zero-shot-mistakes@12b0313ba4c3189ee5a24cb76200959e9bf7492e\/data.csv' with any supported extension ['.csv', '.tsv', '.json', '.jsonl', '.parquet', '.geoparquet', '.gpq', '.arrow', '.txt', '.tar', '.blp', '.bmp', '.dib', '.bufr', '.cur', '.pcx', '.dcx', '.dds', '.ps', '.eps', '.fit', '.fits', '.fli', '.flc', '.ftc', '.ftu', '.gbr', '.gif', '.grib', '.h5', '.hdf', '.png', '.apng', '.jp2', '.j2k', '.jpc', '.jpf', '.jpx', '.j2c', '.icns', '.ico', '.im', '.iim', '.tif', '.tiff', '.jfif', '.jpe', '.jpg', '.jpeg', '.mpg', '.mpeg', '.msp', '.pcd', '.pxr', '.pbm', '.pgm', '.ppm', '.pnm', '.psd', '.bw', '.rgb', '.rgba', '.sgi', '.ras', '.tga', '.icb', '.vda', '.vst', '.webp', '.wmf', '.emf', '.xbm', '.xpm', '.BLP', '.BMP', '.DIB', '.BUFR', '.CUR', '.PCX', '.DCX', '.DDS', '.PS', '.EPS', '.FIT', '.FITS', '.FLI', '.FLC', '.FTC', '.FTU', '.GBR', '.GIF', '.GRIB', '.H5', '.HDF', '.PNG', '.APNG', '.JP2', '.J2K', '.JPC', '.JPF', '.JPX', '.J2C', '.ICNS', '.ICO', '.IM', '.IIM', '.TIF', '.TIFF', '.JFIF', '.JPE', '.JPG', '.JPEG', '.MPG', '.MPEG', '.MSP', '.PCD', '.PXR', '.PBM', '.PGM', '.PPM', '.PNM', '.PSD', '.BW', '.RGB', '.RGBA', '.SGI', '.RAS', '.TGA', '.ICB', '.VDA', '.VST', '.WEBP', '.WMF', '.EMF', '.XBM', '.XPM', '.aiff', '.au', '.avr', '.caf', '.flac', '.htk', '.svx', '.mat4', '.mat5', '.mpc2k', '.ogg', '.paf', '.pvf', '.raw', '.rf64', '.sd2', '.sds', '.ircam', '.voc', '.w64', '.wav', '.nist', '.wavex', '.wve', '.xi', '.mp3', '.opus', '.AIFF', '.AU', '.AVR', '.CAF', '.FLAC', '.HTK', '.SVX', '.MAT4', '.MAT5', '.MPC2K', '.OGG', '.PAF', '.PVF', '.RAW', '.RF64', '.SD2', '.SDS', '.IRCAM', '.VOC', '.W64', '.WAV', '.NIST', '.WAVEX', '.WVE', '.XI', '.MP3', '.OPUS', '.zip']\r\n```\r\n\r\nThe issue there is that a `configs` parameter is set in the README, while the mentioned data file (`data.csv`) does not exist.","closed_by":{"login":"severo","id":1676121,"node_id":"MDQ6VXNlcjE2NzYxMjE=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/1676121?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/severo","html_url":"https:\/\/github.com\/severo","followers_url":"https:\/\/api.github.com\/users\/severo\/followers","following_url":"https:\/\/api.github.com\/users\/severo\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/severo\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/severo\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/severo\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/severo\/orgs","repos_url":"https:\/\/api.github.com\/users\/severo\/repos","events_url":"https:\/\/api.github.com\/users\/severo\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/severo\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7120\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7120\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7119","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7119\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7119\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7119\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7119","id":2477766493,"node_id":"PR_kwDODunzps54-GjY","number":7119,"title":"Install transformers with numpy-2 CI","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-08-21T11:14:59Z","updated_at":"2024-08-21T11:42:35Z","closed_at":"2024-08-21T11:36:50Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7119","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7119","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7119.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7119.patch","merged_at":"2024-08-21T11:36:50Z"},"body":"Install transformers with numpy-2 CI.\r\n\r\nNote that transformers no longer pins numpy < 2 since transformers-4.43.0:\r\n- https:\/\/github.com\/huggingface\/transformers\/pull\/32018\r\n- https:\/\/github.com\/huggingface\/transformers\/releases\/tag\/v4.43.0","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7119\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7119\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7118","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7118\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7118\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7118\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7118","id":2477676893,"node_id":"PR_kwDODunzps549yu4","number":7118,"title":"Allow numpy-2.1 and test it without audio extra","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-08-21T10:29:35Z","updated_at":"2024-08-21T11:05:03Z","closed_at":"2024-08-21T10:58:15Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7118","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7118","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7118.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7118.patch","merged_at":"2024-08-21T10:58:15Z"},"body":"Allow numpy-2.1 and test it without audio extra.\r\n\r\nThis PR reverts:\r\n- #7114\r\n\r\nNote that audio extra tests can be included again with numpy-2.1 once next numba-0.61.0 version is released.","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7118\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7118\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7117","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7117\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7117\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7117\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7117","id":2476555659,"node_id":"I_kwDODunzps6TnT2L","number":7117,"title":"Audio dataset load everything in RAM and is very slow","user":{"login":"Jourdelune","id":64205064,"node_id":"MDQ6VXNlcjY0MjA1MDY0","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/64205064?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Jourdelune","html_url":"https:\/\/github.com\/Jourdelune","followers_url":"https:\/\/api.github.com\/users\/Jourdelune\/followers","following_url":"https:\/\/api.github.com\/users\/Jourdelune\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Jourdelune\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Jourdelune\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Jourdelune\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Jourdelune\/orgs","repos_url":"https:\/\/api.github.com\/users\/Jourdelune\/repos","events_url":"https:\/\/api.github.com\/users\/Jourdelune\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Jourdelune\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2024-08-20T21:18:12Z","updated_at":"2024-08-26T13:11:55Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"Hello, I'm working with an audio dataset. I want to transcribe the audio that the dataset contain, and for that I use whisper. My issue is that the dataset load everything in the RAM when I map the dataset, obviously, when RAM usage is too high, the program crashes.\r\n\r\nTo fix this issue, I'm using writer_batch_size that I set to 10, but in this case, the mapping of the dataset is extremely slow.\r\nTo illustrate this, on 50 examples, with `writer_batch_size` set to 10, it takes 123.24 seconds to process the dataset, but without `writer_batch_size` set to 10, it takes about ten seconds to process the dataset, but then the process remains blocked (I assume that it is writing the dataset and therefore suffers from the same problem as `writer_batch_size`)\r\n\r\n### Steps to reproduce the bug\r\n\r\nHug ram usage but fast (but actually slow when saving the dataset):\r\n```py\r\nfrom datasets import load_dataset\r\nimport time\r\n\r\nds = load_dataset(\"WaveGenAI\/audios2\", split=\"train[:50]\")\r\n\r\n\r\n# map the dataset\r\ndef transcribe_audio(row):\r\n audio = row[\"audio\"] # get the audio but do nothing with it\r\n row[\"transcribed\"] = True\r\n return row\r\n\r\n\r\ntime1 = time.time()\r\nds = ds.map(\r\n transcribe_audio\r\n) \r\n\r\nfor row in ds:\r\n pass # do nothing, just iterate to trigger the map function\r\n\r\nprint(f\"Time taken: {time.time() - time1:.2f} seconds\")\r\n```\r\n\r\nLow ram usage but very very slow:\r\n\r\n```py\r\nfrom datasets import load_dataset\r\nimport time\r\n\r\nds = load_dataset(\"WaveGenAI\/audios2\", split=\"train[:50]\")\r\n\r\n\r\n# map the dataset\r\ndef transcribe_audio(row):\r\n audio = row[\"audio\"] # get the audio but do nothing with it\r\n row[\"transcribed\"] = True\r\n return row\r\n\r\n\r\ntime1 = time.time()\r\nds = ds.map(\r\n transcribe_audio, writer_batch_size=10\r\n) # set low writer_batch_size to avoid memory issues\r\n\r\nfor row in ds:\r\n pass # do nothing, just iterate to trigger the map function\r\n\r\nprint(f\"Time taken: {time.time() - time1:.2f} seconds\")\r\n```\r\n\r\n### Expected behavior\r\n\r\nI think the processing should be much faster, on only 50 audio examples, the mapping takes several minutes while nothing is done (just loading the audio).\r\n\r\n### Environment info\r\n\r\n- `datasets` version: 2.21.0\r\n- Platform: Linux-6.10.5-arch1-1-x86_64-with-glibc2.40\r\n- Python version: 3.10.4\r\n- `huggingface_hub` version: 0.24.5\r\n- PyArrow version: 17.0.0\r\n- Pandas version: 1.5.3\r\n- `fsspec` version: 2024.6.1\r\n\r\n# Extra\r\n\r\nThe dataset has been generated by using audio folder, so I don't think anything specific in my code is causing this problem.\r\n```py\r\nimport argparse\r\n\r\nfrom datasets import load_dataset\r\n\r\nparser = argparse.ArgumentParser()\r\nparser.add_argument(\"--folder\", help=\"folder path\", default=\"\/media\/works\/test\/\")\r\nargs = parser.parse_args()\r\n\r\ndataset = load_dataset(\"audiofolder\", data_dir=args.folder)\r\n\r\n# push the dataset to hub\r\ndataset.push_to_hub(\"WaveGenAI\/audios\")\r\n```\r\n\r\nAlso, it's the combination of `audio = row[\"audio\"]` and `row[\"transcribed\"] = True` which causes problems, `row[\"transcribed\"] = True `alone does nothing and `audio = row[\"audio\"]` alone sometimes causes problems, sometimes not.","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7117\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7117\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7116","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7116\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7116\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7116\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7116","id":2475522721,"node_id":"I_kwDODunzps6TjXqh","number":7116,"title":"datasets cannot handle nested json if features is given.","user":{"login":"ljw20180420","id":38550511,"node_id":"MDQ6VXNlcjM4NTUwNTEx","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/38550511?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ljw20180420","html_url":"https:\/\/github.com\/ljw20180420","followers_url":"https:\/\/api.github.com\/users\/ljw20180420\/followers","following_url":"https:\/\/api.github.com\/users\/ljw20180420\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ljw20180420\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ljw20180420\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ljw20180420\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ljw20180420\/orgs","repos_url":"https:\/\/api.github.com\/users\/ljw20180420\/repos","events_url":"https:\/\/api.github.com\/users\/ljw20180420\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ljw20180420\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2024-08-20T12:27:49Z","updated_at":"2024-09-03T10:18:23Z","closed_at":"2024-09-03T10:18:07Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI have a json named temp.json.\r\n```json\r\n{\"ref1\": \"ABC\", \"ref2\": \"DEF\", \"cuts\":[{\"cut1\": 3, \"cut2\": 5}]}\r\n```\r\nI want to load it.\r\n```python\r\nds = datasets.load_dataset('json', data_files=\".\/temp.json\", features=datasets.Features({\r\n 'ref1': datasets.Value('string'),\r\n 'ref2': datasets.Value('string'),\r\n 'cuts': datasets.Sequence({\r\n \"cut1\": datasets.Value(\"uint16\"),\r\n \"cut2\": datasets.Value(\"uint16\")\r\n })\r\n}))\r\n```\r\nThe above code does not work. However, I can load it without giving features.\r\n```python\r\nds = datasets.load_dataset('json', data_files=\".\/temp.json\")\r\n```\r\nIs it possible to load integers as uint16 to save some memory?\n\n### Steps to reproduce the bug\n\nAs in the bug description.\n\n### Expected behavior\n\nThe data are loaded and integers are uint16.\n\n### Environment info\n\nCopy-and-paste the text below in your GitHub issue.\r\n\r\n- `datasets` version: 2.21.0\r\n- Platform: Linux-5.15.0-118-generic-x86_64-with-glibc2.35\r\n- Python version: 3.11.9\r\n- `huggingface_hub` version: 0.24.5\r\n- PyArrow version: 17.0.0\r\n- Pandas version: 2.2.2\r\n- `fsspec` version: 2024.5.0","closed_by":{"login":"ljw20180420","id":38550511,"node_id":"MDQ6VXNlcjM4NTUwNTEx","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/38550511?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ljw20180420","html_url":"https:\/\/github.com\/ljw20180420","followers_url":"https:\/\/api.github.com\/users\/ljw20180420\/followers","following_url":"https:\/\/api.github.com\/users\/ljw20180420\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ljw20180420\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ljw20180420\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ljw20180420\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ljw20180420\/orgs","repos_url":"https:\/\/api.github.com\/users\/ljw20180420\/repos","events_url":"https:\/\/api.github.com\/users\/ljw20180420\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ljw20180420\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7116\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7116\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7115","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7115\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7115\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7115\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7115","id":2475363142,"node_id":"I_kwDODunzps6TiwtG","number":7115,"title":"module 'pyarrow.lib' has no attribute 'ListViewType'","user":{"login":"neurafusionai","id":175128880,"node_id":"U_kgDOCnBBMA","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/175128880?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/neurafusionai","html_url":"https:\/\/github.com\/neurafusionai","followers_url":"https:\/\/api.github.com\/users\/neurafusionai\/followers","following_url":"https:\/\/api.github.com\/users\/neurafusionai\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/neurafusionai\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/neurafusionai\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/neurafusionai\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/neurafusionai\/orgs","repos_url":"https:\/\/api.github.com\/users\/neurafusionai\/repos","events_url":"https:\/\/api.github.com\/users\/neurafusionai\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/neurafusionai\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-08-20T11:05:44Z","updated_at":"2024-09-10T06:51:08Z","closed_at":"2024-09-10T06:51:08Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nCode:\r\n`!pipuninstall -y pyarrow\r\n!pip install --no-cache-dir pyarrow\r\n\r\n!pip uninstall -y pyarrow\r\n!pip install pyarrow --no-cache-dir\r\n!pip install --upgrade datasets transformers pyarrow\r\n\r\n!pip install pyarrow.parquet\r\n! pip install pyarrow-core libparquet\r\n\r\n!pip install pyarrow --no-cache-dir\r\n!pip install pyarrow\r\n!pip install transformers\r\n!pip install --upgrade datasets\r\n!pip install datasets\r\n! pip install pyarrow\r\n! pip install pyarrow.lib\r\n! pip install pyarrow.parquet\r\n!pip install transformers\r\n\r\nimport pyarrow as pa\r\nprint(pa.__version__)\r\n\r\n\r\nfrom datasets import load_dataset\r\nimport pyarrow.parquet as pq\r\nimport pyarrow.lib as lib\r\nimport pandas as pd\r\nfrom transformers import AutoTokenizer, AutoModelForSequenceClassification, Trainer, TrainingArguments\r\nfrom datasets import load_dataset\r\nfrom transformers import AutoTokenizer\r\n\r\n\r\n! pip install pyarrow-core libparquet\r\n# Load the dataset for content moderation\r\ndataset = load_dataset(\"PolyAI\/banking77\") # Example dataset for customer support\r\n\r\n# Initialize the tokenizer\r\ntokenizer = AutoTokenizer.from_pretrained(\"facebook\/opt-350m\")\r\n\r\n# Tokenize the dataset\r\ndef tokenize_function(examples):\r\n return tokenizer(examples['text'], padding=\"max_length\", truncation=True)\r\n\r\n# Apply tokenization to the entire dataset\r\ntokenized_datasets = dataset.map(tokenize_function, batched=True)\r\n\r\n# Check the first few tokenized samples\r\nprint(tokenized_datasets['train'][0])\r\nfrom transformers import AutoModelForSequenceClassification, Trainer, TrainingArguments\r\n\r\n# Load the model\r\nmodel = AutoModelForSequenceClassification.from_pretrained(\"facebook\/opt-350m\", num_labels=77)\r\n\r\n# Define training arguments\r\ntraining_args = TrainingArguments(\r\n output_dir=\".\/results\",\r\n per_device_train_batch_size=16,\r\n per_device_eval_batch_size=16,\r\n num_train_epochs=3,\r\n eval_strategy=\"epoch\", #\r\n save_strategy=\"epoch\",\r\n logging_dir=\".\/logs\",\r\n learning_rate=2e-5,\r\n)\r\n\r\n# Initialize the Trainer\r\ntrainer = Trainer(\r\n model=model,\r\n args=training_args,\r\n train_dataset=tokenized_datasets[\"train\"],\r\n eval_dataset=tokenized_datasets[\"test\"],\r\n)\r\n\r\n# Train the model\r\ntrainer.train()\r\n\r\n# Evaluate the model\r\ntrainer.evaluate()\r\n\r\n` \r\n\r\n\r\nAttributeError Traceback (most recent call last)\r\n[](https:\/\/localhost:8080\/#) in ()\r\n 20 \r\n 21 \r\n---> 22 from datasets import load_dataset\r\n 23 import pyarrow.parquet as pq\r\n 24 import pyarrow.lib as lib\r\n\r\n5 frames\r\n[\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/__init__.py](https:\/\/localhost:8080\/#) in \r\n 15 __version__ = \"2.21.0\"\r\n 16 \r\n---> 17 from .arrow_dataset import Dataset\r\n 18 from .arrow_reader import ReadInstruction\r\n 19 from .builder import ArrowBasedBuilder, BeamBasedBuilder, BuilderConfig, DatasetBuilder, GeneratorBasedBuilder\r\n\r\n[\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/arrow_dataset.py](https:\/\/localhost:8080\/#) in \r\n 74 \r\n 75 from . import config\r\n---> 76 from .arrow_reader import ArrowReader\r\n 77 from .arrow_writer import ArrowWriter, OptimizedTypedSequence\r\n 78 from .data_files import sanitize_patterns\r\n\r\n[\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/arrow_reader.py](https:\/\/localhost:8080\/#) in \r\n 27 \r\n 28 import pyarrow as pa\r\n---> 29 import pyarrow.parquet as pq\r\n 30 from tqdm.contrib.concurrent import thread_map\r\n 31 \r\n\r\n[\/usr\/local\/lib\/python3.10\/dist-packages\/pyarrow\/parquet\/__init__.py](https:\/\/localhost:8080\/#) in \r\n 18 # flake8: noqa\r\n 19 \r\n---> 20 from .core import *\r\n\r\n[\/usr\/local\/lib\/python3.10\/dist-packages\/pyarrow\/parquet\/core.py](https:\/\/localhost:8080\/#) in \r\n 31 \r\n 32 try:\r\n---> 33 import pyarrow._parquet as _parquet\r\n 34 except ImportError as exc:\r\n 35 raise ImportError(\r\n\r\n\/usr\/local\/lib\/python3.10\/dist-packages\/pyarrow\/_parquet.pyx in init pyarrow._parquet()\r\n\r\nAttributeError: module 'pyarrow.lib' has no attribute 'ListViewType'\r\n\n\n### Steps to reproduce the bug\n\nhttps:\/\/colab.research.google.com\/drive\/1HNbsg3tHxUJOHVtYIaRnNGY4T2PnLn4a?usp=sharing\n\n### Expected behavior\n\nLooks like there is an issue with datasets and pyarrow\n\n### Environment info\n\ngoogle colab\r\npython\r\nhuggingface\r\nFound existing installation: pyarrow 17.0.0\r\nUninstalling pyarrow-17.0.0:\r\n Successfully uninstalled pyarrow-17.0.0\r\nCollecting pyarrow\r\n Downloading pyarrow-17.0.0-cp310-cp310-manylinux_2_28_x86_64.whl.metadata (3.3 kB)\r\nRequirement already satisfied: numpy>=1.16.6 in \/usr\/local\/lib\/python3.10\/dist-packages (from pyarrow) (1.26.4)\r\nDownloading pyarrow-17.0.0-cp310-cp310-manylinux_2_28_x86_64.whl (39.9 MB)\r\n \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 39.9\/39.9 MB 188.9 MB\/s eta 0:00:00\r\nInstalling collected packages: pyarrow\r\nERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.\r\ncudf-cu12 24.4.1 requires pyarrow<15.0.0a0,>=14.0.1, but you have pyarrow 17.0.0 which is incompatible.\r\nibis-framework 8.0.0 requires pyarrow<16,>=2, but you have pyarrow 17.0.0 which is incompatible.\r\nSuccessfully installed pyarrow-17.0.0\r\nWARNING: The following packages were previously imported in this runtime:\r\n [pyarrow]\r\nYou must restart the runtime in order to use newly installed versions.","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7115\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7115\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7114","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7114\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7114\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7114\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7114","id":2475062252,"node_id":"PR_kwDODunzps5404mO","number":7114,"title":"Temporarily pin numpy<2.1 to fix CI","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-08-20T08:42:57Z","updated_at":"2024-08-20T09:09:27Z","closed_at":"2024-08-20T09:02:35Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7114","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7114","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7114.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7114.patch","merged_at":"2024-08-20T09:02:35Z"},"body":"Temporarily pin numpy<2.1 to fix CI.\r\n\r\nFix #7111.","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7114\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7114\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7113","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7113\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7113\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7113\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7113","id":2475029640,"node_id":"I_kwDODunzps6ThfSI","number":7113,"title":"Stream dataset does not iterate if the batch size is larger than the dataset size (related to drop_last_batch)","user":{"login":"memray","id":4197249,"node_id":"MDQ6VXNlcjQxOTcyNDk=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/4197249?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/memray","html_url":"https:\/\/github.com\/memray","followers_url":"https:\/\/api.github.com\/users\/memray\/followers","following_url":"https:\/\/api.github.com\/users\/memray\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/memray\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/memray\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/memray\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/memray\/orgs","repos_url":"https:\/\/api.github.com\/users\/memray\/repos","events_url":"https:\/\/api.github.com\/users\/memray\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/memray\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-08-20T08:26:40Z","updated_at":"2024-08-26T04:24:11Z","closed_at":"2024-08-26T04:24:10Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\r\n\r\nHi there,\r\n\r\nI use streaming and interleaving to combine multiple datasets saved in jsonl files. The size of dataset can vary (from 100ish to 100k-ish). I use dataset.map() and a big batch size to reduce the IO cost. It was working fine with datasets-2.16.1 but this problem shows up after I upgraded to datasets-2.19.2. With 2.21.0 the problem remains.\r\n\r\nPlease see the code below to reproduce the problem.\r\n\r\nThe dataset can iterate correctly if we set either streaming=False or drop_last_batch=False.\r\n\r\nI have to use drop_last_batch=True since it's for distributed training.\r\n\r\n### Steps to reproduce the bug\r\n\r\n```python\r\n# datasets==2.21.0\r\nimport datasets\r\ndef data_prepare(examples):\r\n print(examples[\"sentence1\"][0])\r\n return examples\r\n\r\nbatch_size = 101\r\n# the size of the dataset is 100\r\n# the dataset iterates correctly if we set either streaming=False or drop_last_batch=False \r\ndataset = datasets.load_dataset(\"mteb\/biosses-sts\", split=\"test\", streaming=True)\r\ndataset = dataset.map(lambda x: data_prepare(x),\r\n drop_last_batch=True,\r\n batched=True, batch_size=batch_size)\r\nfor ex in dataset:\r\n print(ex)\r\n pass\r\n\r\n```\r\n\r\n### Expected behavior\r\n\r\nThe dataset iterates regardless of the batch size.\r\n\r\n### Environment info\r\n\r\n- `datasets` version: 2.21.0\r\n- Platform: Linux-6.1.58+-x86_64-with-glibc2.35\r\n- Python version: 3.10.14\r\n- `huggingface_hub` version: 0.24.5\r\n- PyArrow version: 17.0.0\r\n- Pandas version: 2.2.2\r\n- `fsspec` version: 2024.2.0\r\n","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7113\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7113\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7112","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7112\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7112\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7112\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7112","id":2475004644,"node_id":"I_kwDODunzps6ThZLk","number":7112,"title":"cudf-cu12 24.4.1, ibis-framework 8.0.0 requires pyarrow<15.0.0a0,>=14.0.1,pyarrow<16,>=2 and datasets 2.21.0 requires pyarrow>=15.0.0","user":{"login":"SoumyaMB10","id":174590283,"node_id":"U_kgDOCmgJSw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/174590283?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/SoumyaMB10","html_url":"https:\/\/github.com\/SoumyaMB10","followers_url":"https:\/\/api.github.com\/users\/SoumyaMB10\/followers","following_url":"https:\/\/api.github.com\/users\/SoumyaMB10\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/SoumyaMB10\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/SoumyaMB10\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/SoumyaMB10\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/SoumyaMB10\/orgs","repos_url":"https:\/\/api.github.com\/users\/SoumyaMB10\/repos","events_url":"https:\/\/api.github.com\/users\/SoumyaMB10\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/SoumyaMB10\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-08-20T08:13:55Z","updated_at":"2024-09-20T15:30:03Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\n!pip install accelerate>=0.16.0 torchvision transformers>=4.25.1 datasets>=2.19.1 ftfy tensorboard Jinja2 peft==0.7.0\r\n\r\nERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.\r\ncudf-cu12 24.4.1 requires pyarrow<15.0.0a0,>=14.0.1, but you have pyarrow 17.0.0 which is incompatible.\r\nibis-framework 8.0.0 requires pyarrow<16,>=2, but you have pyarrow 17.0.0 which is incompatible.\r\n\r\nto solve above error\r\n!pip install pyarrow==14.0.1\r\n\r\nERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.\r\ndatasets 2.21.0 requires pyarrow>=15.0.0, but you have pyarrow 14.0.1 which is incompatible.\n\n### Steps to reproduce the bug\n\n!pip install datasets>=2.19.1\n\n### Expected behavior\n\nrun without dependency error\n\n### Environment info\n\nDiffusers version: 0.31.0.dev0\r\n\r\nPlatform: Linux-6.1.85+-x86_64-with-glibc2.35\r\nRunning on Google Colab?: Yes\r\nPython version: 3.10.12\r\nPyTorch version (GPU?): 2.3.1+cu121 (True)\r\nFlax version (CPU?\/GPU?\/TPU?): 0.8.4 (gpu)\r\nJax version: 0.4.26\r\nJaxLib version: 0.4.26\r\nHuggingface_hub version: 0.23.5\r\nTransformers version: 4.42.4\r\nAccelerate version: 0.32.1\r\nPEFT version: 0.7.0\r\nBitsandbytes version: not installed\r\nSafetensors version: 0.4.4\r\nxFormers version: not installed\r\nAccelerator: Tesla T4, 15360 MiB\r\nUsing GPU in script?:\r\nUsing distributed or parallel set-up in script?:","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7112\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7112\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7111","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7111\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7111\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7111\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7111","id":2474915845,"node_id":"I_kwDODunzps6ThDgF","number":7111,"title":"CI is broken for numpy-2: Failed to fetch wheel: llvmlite==0.34.0","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":2,"created_at":"2024-08-20T07:27:28Z","updated_at":"2024-08-21T05:05:36Z","closed_at":"2024-08-20T09:02:36Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"Ci is broken with error `Failed to fetch wheel: llvmlite==0.34.0`: https:\/\/github.com\/huggingface\/datasets\/actions\/runs\/10466825281\/job\/28984414269\r\n```\r\nRun uv pip install --system \"datasets[tests_numpy2] @ .\"\r\nResolved 150 packages in 4.42s\r\nerror: Failed to prepare distributions\r\n Caused by: Failed to fetch wheel: llvmlite==0.34.0\r\n Caused by: Build backend failed to build wheel through `build_wheel()` with exit status: 1\r\n--- stdout:\r\nrunning bdist_wheel\r\n\/home\/runner\/.cache\/uv\/builds-v0\/.tmpcyKh8S\/bin\/python \/home\/runner\/.cache\/uv\/built-wheels-v3\/pypi\/llvmlite\/0.34.0\/wrk1bNwq1gleSiznvrSEZ\/llvmlite-0.34.0.tar.gz\/ffi\/build.py\r\nLLVM version...\r\n--- stderr:\r\nTraceback (most recent call last):\r\n File \"\/home\/runner\/.cache\/uv\/built-wheels-v3\/pypi\/llvmlite\/0.34.0\/wrk1bNwq1gleSiznvrSEZ\/llvmlite-0.34.0.tar.gz\/ffi\/build.py\", line 105, in main_posix\r\n out = subprocess.check_output([llvm_config, '--version'])\r\n File \"\/opt\/hostedtoolcache\/Python\/3.10.14\/x64\/lib\/python3.10\/subprocess.py\", line 421, in check_output\r\n return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,\r\n File \"\/opt\/hostedtoolcache\/Python\/3.10.14\/x64\/lib\/python3.10\/subprocess.py\", line 503, in run\r\n with Popen(*popenargs, **kwargs) as process:\r\n File \"\/opt\/hostedtoolcache\/Python\/3.10.14\/x64\/lib\/python3.10\/subprocess.py\", line 971, in __init__\r\n self._execute_child(args, executable, preexec_fn, close_fds,\r\n File \"\/opt\/hostedtoolcache\/Python\/3.10.14\/x64\/lib\/python3.10\/subprocess.py\", line 1863, in _execute_child\r\n raise child_exception_type(errno_num, err_msg, err_filename)\r\nFileNotFoundError: [Errno 2] No such file or directory: 'llvm-config'\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n File \"\/home\/runner\/.cache\/uv\/built-wheels-v3\/pypi\/llvmlite\/0.34.0\/wrk1bNwq1gleSiznvrSEZ\/llvmlite-0.34.0.tar.gz\/ffi\/build.py\", line 191, in \r\n main()\r\n File \"\/home\/runner\/.cache\/uv\/built-wheels-v3\/pypi\/llvmlite\/0.34.0\/wrk1bNwq1gleSiznvrSEZ\/llvmlite-0.34.0.tar.gz\/ffi\/build.py\", line 181, in main\r\n main_posix('linux', '.so')\r\n File \"\/home\/runner\/.cache\/uv\/built-wheels-v3\/pypi\/llvmlite\/0.34.0\/wrk1bNwq1gleSiznvrSEZ\/llvmlite-0.34.0.tar.gz\/ffi\/build.py\", line 107, in main_posix\r\n raise RuntimeError(\"%s failed executing, please point LLVM_CONFIG \"\r\nRuntimeError: llvm-config failed executing, please point LLVM_CONFIG to the path for llvm-config\r\nerror: command '\/home\/runner\/.cache\/uv\/builds-v0\/.tmpcyKh8S\/bin\/python' failed with exit code 1\r\n```","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7111\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7111\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7110","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7110\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7110\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7110\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7110","id":2474747695,"node_id":"PR_kwDODunzps54zz3r","number":7110,"title":"Fix ConnectionError for gated datasets and unauthenticated users","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2024-08-20T05:26:54Z","updated_at":"2024-08-20T15:11:35Z","closed_at":"2024-08-20T09:14:35Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7110","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7110","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7110.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7110.patch","merged_at":"2024-08-20T09:14:34Z"},"body":"Fix `ConnectionError` for gated datasets and unauthenticated users. See:\r\n- https:\/\/github.com\/huggingface\/dataset-viewer\/issues\/3025\r\n\r\nNote that a recent change in the Hub returns dataset info for gated datasets and unauthenticated users, instead of raising a `GatedRepoError` as before. See:\r\n- https:\/\/github.com\/huggingface\/huggingface_hub\/issues\/2457\r\n\r\nThis PR adds an additional check (\/auth-check) for gated datasets and raises `DatasetNotFoundError` for unauthenticated users, as it was the case before the change in the Hub.\r\n- Fix suggested by @Pierrci (thanks @Wauplin for pointing it out).\r\n\r\nFix #7109.","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7110\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7110\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7109","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7109\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7109\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7109\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7109","id":2473367848,"node_id":"I_kwDODunzps6TbJko","number":7109,"title":"ConnectionError for gated datasets and unauthenticated users","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":0,"created_at":"2024-08-19T13:27:45Z","updated_at":"2024-08-20T09:14:36Z","closed_at":"2024-08-20T09:14:35Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"Since the Hub returns dataset info for gated datasets and unauthenticated users, there is dead code: https:\/\/github.com\/huggingface\/datasets\/blob\/98fdc9e78e6d057ca66e58a37f49d6618aab8130\/src\/datasets\/load.py#L1846-L1852\r\n\r\nWe should remove the dead code and properly handle this case: currently we are raising a `ConnectionError` instead of a `DatasetNotFoundError` (as before).\r\n\r\nSee:\r\n- https:\/\/github.com\/huggingface\/dataset-viewer\/issues\/3025\r\n- https:\/\/github.com\/huggingface\/huggingface_hub\/issues\/2457","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7109\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7109\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7108","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7108\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7108\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7108\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7108","id":2470665327,"node_id":"I_kwDODunzps6TQ1xv","number":7108,"title":"website broken: Create a new dataset repository, doesn't create a new repo in Firefox","user":{"login":"neoneye","id":147971,"node_id":"MDQ6VXNlcjE0Nzk3MQ==","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/147971?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/neoneye","html_url":"https:\/\/github.com\/neoneye","followers_url":"https:\/\/api.github.com\/users\/neoneye\/followers","following_url":"https:\/\/api.github.com\/users\/neoneye\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/neoneye\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/neoneye\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/neoneye\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/neoneye\/orgs","repos_url":"https:\/\/api.github.com\/users\/neoneye\/repos","events_url":"https:\/\/api.github.com\/users\/neoneye\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/neoneye\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2024-08-16T17:23:00Z","updated_at":"2024-08-19T13:21:12Z","closed_at":"2024-08-19T06:52:48Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\r\n\r\nThis issue is also reported here:\r\nhttps:\/\/discuss.huggingface.co\/t\/create-a-new-dataset-repository-broken-page\/102644\r\n\r\nThis page is broken.\r\nhttps:\/\/huggingface.co\/new-dataset\r\n\r\nI fill in the form with my text, and click `Create Dataset`.\r\n![Screenshot 2024-08-16 at 15 55 37](https:\/\/github.com\/user-attachments\/assets\/de16627b-7a55-4bcf-9f0b-a48227aabfe6)\r\n\r\nThen the form gets wiped. And no repo got created. No error message visible in the developer console.\r\n![Screenshot 2024-08-16 at 15 56 54](https:\/\/github.com\/user-attachments\/assets\/0520164b-431c-40a5-9634-11fd62c4f4c3)\r\n\r\n# Idea for improvement\r\n\r\nFor better UX, if the repo cannot be created, then show an error message, that something went wrong.\r\n\r\n# Work around, that works for me\r\n\r\n```python\r\nfrom huggingface_hub import HfApi, HfFolder\r\nrepo_id = 'simon-arc-solve-fractal-v3'\r\napi = HfApi()\r\nusername = api.whoami()['name']\r\nrepo_url = api.create_repo(repo_id=repo_id, exist_ok=True, private=True, repo_type=\"dataset\")\r\n```\r\n\r\n### Steps to reproduce the bug\r\n\r\nGo https:\/\/huggingface.co\/new-dataset\r\n\r\nFill in the form.\r\n\r\nClick `Create dataset`.\r\n\r\nNow the form is cleared. And the page doesn't jump anywhere.\r\n\r\n### Expected behavior\r\n\r\nThe moment the user clicks `Create dataset`, the repo gets created and the page jumps to the created repo.\r\n\r\n\r\n### Environment info\r\n\r\nFirefox 128.0.3 (64-bit)\r\nmacOS Sonoma 14.5\r\n","closed_by":{"login":"neoneye","id":147971,"node_id":"MDQ6VXNlcjE0Nzk3MQ==","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/147971?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/neoneye","html_url":"https:\/\/github.com\/neoneye","followers_url":"https:\/\/api.github.com\/users\/neoneye\/followers","following_url":"https:\/\/api.github.com\/users\/neoneye\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/neoneye\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/neoneye\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/neoneye\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/neoneye\/orgs","repos_url":"https:\/\/api.github.com\/users\/neoneye\/repos","events_url":"https:\/\/api.github.com\/users\/neoneye\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/neoneye\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7108\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7108\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7107","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7107\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7107\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7107\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7107","id":2470444732,"node_id":"I_kwDODunzps6TP_68","number":7107,"title":"load_dataset broken in 2.21.0","user":{"login":"anjor","id":1911631,"node_id":"MDQ6VXNlcjE5MTE2MzE=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/1911631?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/anjor","html_url":"https:\/\/github.com\/anjor","followers_url":"https:\/\/api.github.com\/users\/anjor\/followers","following_url":"https:\/\/api.github.com\/users\/anjor\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/anjor\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/anjor\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/anjor\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/anjor\/orgs","repos_url":"https:\/\/api.github.com\/users\/anjor\/repos","events_url":"https:\/\/api.github.com\/users\/anjor\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/anjor\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2024-08-16T14:59:51Z","updated_at":"2024-08-18T09:28:43Z","closed_at":"2024-08-18T09:27:12Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\n`eval_set = datasets.load_dataset(\"tatsu-lab\/alpaca_eval\", \"alpaca_eval_gpt4_baseline\", trust_remote_code=True)` \r\nused to work till 2.20.0 but doesn't work in 2.21.0\r\n\r\nIn 2.20.0:\r\n![Screenshot 2024-08-16 at 3 57 10\u202fPM](https:\/\/github.com\/user-attachments\/assets\/0516489b-8187-486d-bee8-88af3381dee9)\r\n\r\n\r\nin 2.21.0:\r\n![Screenshot 2024-08-16 at 3 57 24\u202fPM](https:\/\/github.com\/user-attachments\/assets\/bc257570-f461-41e4-8717-90a69ed7c24f)\r\n\n\n### Steps to reproduce the bug\n\n1. Spin up a new google collab\r\n2. `pip install datasets==2.21.0`\r\n3. `import datasets`\r\n4. `eval_set = datasets.load_dataset(\"tatsu-lab\/alpaca_eval\", \"alpaca_eval_gpt4_baseline\", trust_remote_code=True)` \r\n5. Will throw an error.\r\n\r\n\n\n### Expected behavior\n\nTry steps 1-5 again but replace datasets version with 2.20.0, it will work\n\n### Environment info\n\n\r\n\r\n- `datasets` version: 2.21.0\r\n- Platform: Linux-6.1.85+-x86_64-with-glibc2.35\r\n- Python version: 3.10.12\r\n- `huggingface_hub` version: 0.23.5\r\n- PyArrow version: 17.0.0\r\n- Pandas version: 2.1.4\r\n- `fsspec` version: 2024.5.0\r\n","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7107\/reactions","total_count":1,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":1},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7107\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7106","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7106\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7106\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7106\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7106","id":2469854262,"node_id":"PR_kwDODunzps54jntM","number":7106,"title":"Rename LargeList.dtype to LargeList.feature","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-08-16T09:12:04Z","updated_at":"2024-08-26T04:31:59Z","closed_at":"2024-08-26T04:26:02Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7106","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7106","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7106.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7106.patch","merged_at":"2024-08-26T04:26:02Z"},"body":"Rename `LargeList.dtype` to `LargeList.feature`.\r\n\r\nNote that `dtype` is usually used for NumPy data types (\"int64\", \"float32\",...): see `Value.dtype`.\r\n\r\nHowever, `LargeList` attribute (like `Sequence.feature`) expects a `FeatureType` instead.\r\n\r\nWith this renaming:\r\n- we avoid confusion about the expected type and\r\n- we also align `LargeList` with `Sequence`.","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7106\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7106\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7105","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7105\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7105\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7105\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7105","id":2468207039,"node_id":"PR_kwDODunzps54eZ0D","number":7105,"title":"Use `huggingface_hub` cache","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2024-08-15T14:45:22Z","updated_at":"2024-09-12T04:36:08Z","closed_at":"2024-08-21T15:47:16Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7105","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7105","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7105.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7105.patch","merged_at":"2024-08-21T15:47:15Z"},"body":"- use `hf_hub_download()` from `huggingface_hub` for HF files\r\n- `datasets` cache_dir is still used for:\r\n - caching datasets as Arrow files (that back `Dataset` objects)\r\n - extracted archives, uncompressed files\r\n - files downloaded via http (datasets with scripts)\r\n- I removed code that were made for http files (and also the dummy_data \/ mock_download_manager stuff that happened to rely on them and have been legacy for a while now)","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7105\/reactions","total_count":4,"+1":0,"-1":0,"laugh":0,"hooray":2,"confused":0,"heart":0,"rocket":0,"eyes":2},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7105\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7104","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7104\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7104\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7104\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7104","id":2467788212,"node_id":"PR_kwDODunzps54dAhE","number":7104,"title":"remove more script docs","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-08-15T10:13:26Z","updated_at":"2024-08-15T10:24:13Z","closed_at":"2024-08-15T10:18:25Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7104","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7104","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7104.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7104.patch","merged_at":"2024-08-15T10:18:25Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7104\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7104\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7103","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7103\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7103\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7103\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7103","id":2467664581,"node_id":"PR_kwDODunzps54clrp","number":7103,"title":"Fix args of feature docstrings","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-08-15T08:46:08Z","updated_at":"2024-08-16T09:18:29Z","closed_at":"2024-08-15T10:33:30Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7103","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7103","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7103.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7103.patch","merged_at":"2024-08-15T10:33:30Z"},"body":"Fix Args section of feature docstrings.\r\n\r\nCurrently, some args do not appear in the docs because they are not properly parsed due to the lack of their type (between parentheses).","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7103\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7103\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7102","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7102\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7102\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7102\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7102","id":2466893106,"node_id":"I_kwDODunzps6TCc0y","number":7102,"title":"Slow iteration speeds when using IterableDataset.shuffle with load_dataset(data_files=..., streaming=True)","user":{"login":"lajd","id":13192126,"node_id":"MDQ6VXNlcjEzMTkyMTI2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/13192126?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lajd","html_url":"https:\/\/github.com\/lajd","followers_url":"https:\/\/api.github.com\/users\/lajd\/followers","following_url":"https:\/\/api.github.com\/users\/lajd\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lajd\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lajd\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lajd\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lajd\/orgs","repos_url":"https:\/\/api.github.com\/users\/lajd\/repos","events_url":"https:\/\/api.github.com\/users\/lajd\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lajd\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-08-14T21:44:44Z","updated_at":"2024-08-15T16:17:31Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\r\n\r\nWhen I load a dataset from a number of arrow files, as in:\r\n\r\n```\r\nrandom_dataset = load_dataset(\r\n \"arrow\",\r\n data_files={split: shard_filepaths},\r\n streaming=True,\r\n split=split,\r\n)\r\n```\r\n\r\nI'm able to get fast iteration speeds when iterating over the dataset without shuffling. \r\n\r\nWhen I shuffle the dataset, the iteration speed is reduced by ~1000x.\r\n\r\nIt's very possible the way I'm loading dataset shards is not appropriate; if so please advise!\r\n\r\nThanks for the help\r\n\r\n### Steps to reproduce the bug\r\n\r\nHere's full code to reproduce the issue:\r\n\r\n- Generate a random dataset\r\n- Create shards of data independently using Dataset.save_to_disk()\r\n- The below will generate 16 shards (arrow files), of 512 examples each\r\n\r\n\r\n```\r\nimport time\r\nfrom pathlib import Path\r\nfrom multiprocessing import Pool, cpu_count\r\n\r\nimport torch\r\nfrom datasets import Dataset, load_dataset\r\n\r\nsplit = \"train\"\r\nsplit_save_dir = \"\/tmp\/random_split\"\r\n\r\ndef generate_random_example():\r\n return {\r\n 'inputs': torch.randn(128).tolist(),\r\n 'indices': torch.randint(0, 10000, (2, 20000)).tolist(),\r\n 'values': torch.randn(20000).tolist(), \r\n }\r\n\r\ndef generate_shard_dataset(examples_per_shard: int = 512):\r\n dataset_dict = {\r\n 'inputs': [],\r\n 'indices': [],\r\n 'values': []\r\n }\r\n\r\n for _ in range(examples_per_shard):\r\n example = generate_random_example()\r\n dataset_dict['inputs'].append(example['inputs'])\r\n dataset_dict['indices'].append(example['indices'])\r\n dataset_dict['values'].append(example['values'])\r\n\r\n return Dataset.from_dict(dataset_dict)\r\n\r\ndef save_shard(shard_idx, save_dir, examples_per_shard):\r\n shard_dataset = generate_shard_dataset(examples_per_shard)\r\n shard_write_path = Path(save_dir) \/ f\"shard_{shard_idx}\"\r\n shard_dataset.save_to_disk(shard_write_path)\r\n return str(Path(shard_write_path) \/ \"data-00000-of-00001.arrow\")\r\n\r\ndef generate_split_shards(save_dir, num_shards: int = 16, examples_per_shard: int = 512):\r\n with Pool(cpu_count()) as pool:\r\n args = [(m, save_dir, examples_per_shard) for m in range(num_shards)]\r\n shard_filepaths = pool.starmap(save_shard, args)\r\n \r\n return shard_filepaths\r\n\r\nshard_filepaths = generate_split_shards(split_save_dir)\r\n```\r\n\r\nLoad the dataset as IterableDataset:\r\n\r\n\r\n```\r\nrandom_dataset = load_dataset(\r\n \"arrow\",\r\n data_files={split: shard_filepaths},\r\n streaming=True,\r\n split=split,\r\n)\r\nrandom_dataset = random_dataset.with_format(\"numpy\")\r\n```\r\n\r\nObserve the iterations\/second when iterating over the dataset directly, and applying shuffling before iterating:\r\n\r\nWithout shuffling, this gives ~1500 iterations\/second\r\n\r\n```\r\nstart_time = time.time()\r\nfor count, item in enumerate(random_dataset):\r\n if count > 0 and count % 100 == 0:\r\n elapsed_time = time.time() - start_time\r\n iterations_per_second = count \/ elapsed_time\r\n print(f\"Processed {count} items at an average of {iterations_per_second:.2f} iterations\/second\")\r\n```\r\n\r\n```\r\nProcessed 100 items at an average of 705.74 iterations\/second\r\nProcessed 200 items at an average of 1169.68 iterations\/second\r\nProcessed 300 items at an average of 1497.97 iterations\/second\r\nProcessed 400 items at an average of 1739.62 iterations\/second\r\nProcessed 500 items at an average of 1931.11 iterations\/second`\r\n```\r\n\r\nWhen shuffling, this gives ~3 iterations\/second:\r\n\r\n\r\n```\r\n\r\nrandom_dataset = random_dataset.shuffle(buffer_size=100,seed=42)\r\n\r\nstart_time = time.time()\r\nfor count, item in enumerate(random_dataset):\r\n if count > 0 and count % 100 == 0:\r\n elapsed_time = time.time() - start_time\r\n iterations_per_second = count \/ elapsed_time\r\n print(f\"Processed {count} items at an average of {iterations_per_second:.2f} iterations\/second\")\r\n```\r\n\r\n\r\n```\r\nProcessed 100 items at an average of 3.75 iterations\/second\r\nProcessed 200 items at an average of 3.93 iterations\/second\r\n```\r\n\r\n### Expected behavior\r\n\r\nIterations per second should be barely affected by shuffling, especially with a small buffer size\r\n\r\n### Environment info\r\n\r\nDatasets version: 2.21.0\r\nPython 3.10\r\nUbuntu 22.04","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7102\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7102\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7101","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7101\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7101\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7101\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7101","id":2466510783,"node_id":"I_kwDODunzps6TA_e_","number":7101,"title":"`load_dataset` from Hub with `name` to specify `config` using incorrect builder type when multiple data formats are present","user":{"login":"hlky","id":106811348,"node_id":"U_kgDOBl3P1A","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/106811348?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/hlky","html_url":"https:\/\/github.com\/hlky","followers_url":"https:\/\/api.github.com\/users\/hlky\/followers","following_url":"https:\/\/api.github.com\/users\/hlky\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/hlky\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/hlky\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/hlky\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/hlky\/orgs","repos_url":"https:\/\/api.github.com\/users\/hlky\/repos","events_url":"https:\/\/api.github.com\/users\/hlky\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/hlky\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-08-14T18:12:25Z","updated_at":"2024-08-18T10:33:38Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"Following [documentation](https:\/\/huggingface.co\/docs\/datasets\/repository_structure#define-your-splits-and-subsets-in-yaml) I had defined different configs for [`Dataception`](https:\/\/huggingface.co\/datasets\/bigdata-pw\/Dataception), a dataset of datasets:\r\n\r\n```yaml\r\nconfigs:\r\n- config_name: dataception\r\n data_files:\r\n - path: dataception.parquet\r\n split: train\r\n default: true\r\n- config_name: dataset_5423\r\n data_files:\r\n - path: datasets\/5423.tar\r\n split: train\r\n...\r\n- config_name: dataset_721736\r\n data_files:\r\n - path: datasets\/721736.tar\r\n split: train\r\n```\r\n\r\nThe intent was for metadata to be browsable via Dataset Viewer, in addition to each individual dataset, and to allow datasets to be loaded by specifying the config\/name to `load_dataset`.\r\n\r\nWhile testing `load_dataset` I encountered the following error:\r\n\r\n```python\r\n>>> dataset = load_dataset(\"bigdata-pw\/Dataception\", \"dataset_7691\")\r\nDownloading readme: 100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 467k\/467k [00:00<00:00, 1.99MB\/s]\r\nDownloading data: 100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 71.0M\/71.0M [00:02<00:00, 26.8MB\/s]\r\nTraceback (most recent call last):\r\n File \"\", line 1, in \r\n File \"datasets\\load.py\", line 2145, in load_dataset\r\n builder_instance.download_and_prepare(\r\n File \"datasets\\builder.py\", line 1027, in download_and_prepare\r\n self._download_and_prepare(\r\n File \"datasets\\builder.py\", line 1100, in _download_and_prepare\r\n split_generators = self._split_generators(dl_manager, **split_generators_kwargs)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"datasets\\packaged_modules\\parquet\\parquet.py\", line 58, in _split_generators\r\n self.info.features = datasets.Features.from_arrow_schema(pq.read_schema(f))\r\n ^^^^^^^^^^^^^^^^^\r\n File \"pyarrow\\parquet\\core.py\", line 2325, in read_schema\r\n file = ParquetFile(\r\n ^^^^^^^^^^^^\r\n File \"pyarrow\\parquet\\core.py\", line 318, in __init__\r\n self.reader.open(\r\n File \"pyarrow\\_parquet.pyx\", line 1470, in pyarrow._parquet.ParquetReader.open\r\n File \"pyarrow\\error.pxi\", line 91, in pyarrow.lib.check_status\r\npyarrow.lib.ArrowInvalid: Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file.\r\n```\r\n\r\nThe correct file is downloaded, however the incorrect builder type is detected; `parquet` due to other content of the repository. It would appear that the config needs to be taken into account.\r\n\r\nNote that I have removed the additional configs from the repository because of this issue and there is a limit of 3000 configs anyway so the Dataset Viewer doesn't work as I intended. I'll add them back in if it assists with testing.\r\n\r\n","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7101\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7101\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7100","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7100\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7100\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7100\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7100","id":2465529414,"node_id":"I_kwDODunzps6S9P5G","number":7100,"title":"IterableDataset: cannot resolve features from list of numpy arrays","user":{"login":"VeryLazyBoy","id":18899212,"node_id":"MDQ6VXNlcjE4ODk5MjEy","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/18899212?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/VeryLazyBoy","html_url":"https:\/\/github.com\/VeryLazyBoy","followers_url":"https:\/\/api.github.com\/users\/VeryLazyBoy\/followers","following_url":"https:\/\/api.github.com\/users\/VeryLazyBoy\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/VeryLazyBoy\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/VeryLazyBoy\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/VeryLazyBoy\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/VeryLazyBoy\/orgs","repos_url":"https:\/\/api.github.com\/users\/VeryLazyBoy\/repos","events_url":"https:\/\/api.github.com\/users\/VeryLazyBoy\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/VeryLazyBoy\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-08-14T11:01:51Z","updated_at":"2024-10-03T05:47:23Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nwhen resolve features of `IterableDataset`, got `pyarrow.lib.ArrowInvalid: Can only convert 1-dimensional array values` error.\r\n\r\n```\r\nTraceback (most recent call last):\r\n File \"test.py\", line 6\r\n iter_ds = iter_ds._resolve_features()\r\n File \"lib\/python3.10\/site-packages\/datasets\/iterable_dataset.py\", line 2876, in _resolve_features\r\n features = _infer_features_from_batch(self.with_format(None)._head())\r\n File \"lib\/python3.10\/site-packages\/datasets\/iterable_dataset.py\", line 63, in _infer_features_from_batch\r\n pa_table = pa.Table.from_pydict(batch)\r\n File \"pyarrow\/table.pxi\", line 1813, in pyarrow.lib._Tabular.from_pydict\r\n File \"pyarrow\/table.pxi\", line 5339, in pyarrow.lib._from_pydict\r\n File \"pyarrow\/array.pxi\", line 374, in pyarrow.lib.asarray\r\n File \"pyarrow\/array.pxi\", line 344, in pyarrow.lib.array\r\n File \"pyarrow\/array.pxi\", line 42, in pyarrow.lib._sequence_to_array\r\n File \"pyarrow\/error.pxi\", line 154, in pyarrow.lib.pyarrow_internal_check_status\r\n File \"pyarrow\/error.pxi\", line 91, in pyarrow.lib.check_status\r\npyarrow.lib.ArrowInvalid: Can only convert 1-dimensional array values\r\n```\n\n### Steps to reproduce the bug\n\n```python\r\nfrom datasets import Dataset\r\nimport numpy as np\r\n\r\n# create list of numpy\r\niter_ds = Dataset.from_dict({'a': [[[1, 2, 3], [1, 2, 3]]]}).to_iterable_dataset().map(lambda x: {'a': [np.array(x['a'])]})\r\niter_ds = iter_ds._resolve_features() # errors here\r\n```\n\n### Expected behavior\n\nfeatures can be successfully resolved\n\n### Environment info\n\n- `datasets` version: 2.21.0\r\n- Platform: Linux-5.15.0-94-generic-x86_64-with-glibc2.35\r\n- Python version: 3.10.13\r\n- `huggingface_hub` version: 0.23.4\r\n- PyArrow version: 15.0.0\r\n- Pandas version: 2.2.0\r\n- `fsspec` version: 2023.10.0","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7100\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7100\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7099","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7099\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7099\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7099\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7099","id":2465221827,"node_id":"PR_kwDODunzps54U7s4","number":7099,"title":"Set dev version","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-08-14T08:31:17Z","updated_at":"2024-08-14T08:45:17Z","closed_at":"2024-08-14T08:39:25Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7099","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7099","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7099.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7099.patch","merged_at":"2024-08-14T08:39:25Z"},"body":null,"closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7099\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7099\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7098","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7098\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7098\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7098\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7098","id":2465016562,"node_id":"PR_kwDODunzps54UPMS","number":7098,"title":"Release: 2.21.0","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-08-14T06:35:13Z","updated_at":"2024-08-14T06:41:07Z","closed_at":"2024-08-14T06:41:06Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7098","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7098","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7098.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7098.patch","merged_at":"2024-08-14T06:41:06Z"},"body":null,"closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7098\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7098\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7097","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7097\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7097\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7097\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7097","id":2458455489,"node_id":"I_kwDODunzps6SiQ3B","number":7097,"title":"Some of DownloadConfig's properties are always being overridden in load.py","user":{"login":"ductai199x","id":29772899,"node_id":"MDQ6VXNlcjI5NzcyODk5","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/29772899?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ductai199x","html_url":"https:\/\/github.com\/ductai199x","followers_url":"https:\/\/api.github.com\/users\/ductai199x\/followers","following_url":"https:\/\/api.github.com\/users\/ductai199x\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ductai199x\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ductai199x\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ductai199x\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ductai199x\/orgs","repos_url":"https:\/\/api.github.com\/users\/ductai199x\/repos","events_url":"https:\/\/api.github.com\/users\/ductai199x\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ductai199x\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-08-09T18:26:37Z","updated_at":"2024-08-09T18:26:37Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nThe `extract_compressed_file` and `force_extract` properties of DownloadConfig are always being set to True in the function `dataset_module_factory` in the `load.py` file. This behavior is very annoying because data extracted will just be ignored the next time the dataset is loaded.\r\n\r\nSee this image below:\r\n![image](https:\/\/github.com\/user-attachments\/assets\/9e76ebb7-09b1-4c95-adc8-a959b536f93c)\r\n\n\n### Steps to reproduce the bug\n\n1. Have a local dataset that contains archived files (zip, tar.gz, etc)\r\n2. Build a dataset loading script to download and extract these files\r\n3. Run the load_dataset function with a DownloadConfig that specifically set `force_extract` to False\r\n4. The extraction process will start no matter if the archives was extracted previously\n\n### Expected behavior\n\nThe extraction process should not run when the archives were previously extracted and `force_extract` is set to False.\n\n### Environment info\n\ndatasets==2.20.0\r\npython3.9","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7097\/reactions","total_count":1,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":1,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7097\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7096","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7096\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7096\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7096\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7096","id":2456929173,"node_id":"PR_kwDODunzps535Xkr","number":7096,"title":"Automatically create `cache_dir` from `cache_file_name`","user":{"login":"ringohoffman","id":27844407,"node_id":"MDQ6VXNlcjI3ODQ0NDA3","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/27844407?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ringohoffman","html_url":"https:\/\/github.com\/ringohoffman","followers_url":"https:\/\/api.github.com\/users\/ringohoffman\/followers","following_url":"https:\/\/api.github.com\/users\/ringohoffman\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ringohoffman\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ringohoffman\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ringohoffman\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ringohoffman\/orgs","repos_url":"https:\/\/api.github.com\/users\/ringohoffman\/repos","events_url":"https:\/\/api.github.com\/users\/ringohoffman\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ringohoffman\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2024-08-09T01:34:06Z","updated_at":"2024-08-15T17:25:26Z","closed_at":"2024-08-15T10:13:22Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7096","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7096","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7096.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7096.patch","merged_at":"2024-08-15T10:13:22Z"},"body":"You get a pretty unhelpful error message when specifying a `cache_file_name` in a directory that doesn't exist, e.g. `cache_file_name=\".\/cache\/data.map\"`\r\n\r\n```python\r\nimport datasets\r\n\r\ncache_file_name=\".\/cache\/train.map\"\r\ndataset = datasets.load_dataset(\"ylecun\/mnist\")\r\ndataset[\"train\"].map(lambda x: x, cache_file_name=cache_file_name)\r\n```\r\n\r\n```\r\nFileNotFoundError: [Errno 2] No such file or directory: '\/...\/cache\/tmp48r61siw'\r\n```\r\n\r\nIt is simple enough to create and I was expecting that this would have been the case.\r\n\r\ncc: @albertvillanova @lhoestq ","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7096\/reactions","total_count":1,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":1},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7096\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7094","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7094\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7094\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7094\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7094","id":2454418130,"node_id":"PR_kwDODunzps53w2b7","number":7094,"title":"Add Arabic Docs to Datasets","user":{"login":"AhmedAlmaghz","id":53489256,"node_id":"MDQ6VXNlcjUzNDg5MjU2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/53489256?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/AhmedAlmaghz","html_url":"https:\/\/github.com\/AhmedAlmaghz","followers_url":"https:\/\/api.github.com\/users\/AhmedAlmaghz\/followers","following_url":"https:\/\/api.github.com\/users\/AhmedAlmaghz\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/AhmedAlmaghz\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/AhmedAlmaghz\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/AhmedAlmaghz\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/AhmedAlmaghz\/orgs","repos_url":"https:\/\/api.github.com\/users\/AhmedAlmaghz\/repos","events_url":"https:\/\/api.github.com\/users\/AhmedAlmaghz\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/AhmedAlmaghz\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-08-07T21:53:06Z","updated_at":"2024-08-07T21:53:06Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7094","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7094","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7094.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7094.patch","merged_at":null},"body":"Translate Docs into Arabic issue-number : #7093\r\n[Arabic Docs](https:\/\/github.com\/AhmedAlmaghz\/datasets\/blob\/main\/docs\/source\/ar\/index.mdx)\r\n[English Docs](https:\/\/github.com\/AhmedAlmaghz\/datasets\/blob\/main\/docs\/source\/en\/index.mdx)\r\n\r\n@stevhliu","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7094\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7094\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7093","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7093\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7093\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7093\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7093","id":2454413074,"node_id":"I_kwDODunzps6SS18S","number":7093,"title":"Add Arabic Docs to datasets","user":{"login":"AhmedAlmaghz","id":53489256,"node_id":"MDQ6VXNlcjUzNDg5MjU2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/53489256?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/AhmedAlmaghz","html_url":"https:\/\/github.com\/AhmedAlmaghz","followers_url":"https:\/\/api.github.com\/users\/AhmedAlmaghz\/followers","following_url":"https:\/\/api.github.com\/users\/AhmedAlmaghz\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/AhmedAlmaghz\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/AhmedAlmaghz\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/AhmedAlmaghz\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/AhmedAlmaghz\/orgs","repos_url":"https:\/\/api.github.com\/users\/AhmedAlmaghz\/repos","events_url":"https:\/\/api.github.com\/users\/AhmedAlmaghz\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/AhmedAlmaghz\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-08-07T21:48:05Z","updated_at":"2024-08-07T21:48:05Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nAdd Arabic Docs to datasets\r\n[Datasets Arabic](https:\/\/github.com\/AhmedAlmaghz\/datasets\/blob\/main\/docs\/source\/ar\/index.mdx)\n\n### Motivation\n\n@AhmedAlmaghz\r\nhttps:\/\/github.com\/AhmedAlmaghz\/datasets\/blob\/main\/docs\/source\/ar\/index.mdx\n\n### Your contribution\n\n@AhmedAlmaghz\r\nhttps:\/\/github.com\/AhmedAlmaghz\/datasets\/blob\/main\/docs\/source\/ar\/index.mdx","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7093\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7093\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7092","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7092\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7092\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7092\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7092","id":2451393658,"node_id":"I_kwDODunzps6SHUx6","number":7092,"title":"load_dataset with multiple jsonlines files interprets datastructure too early","user":{"login":"Vipitis","id":23384483,"node_id":"MDQ6VXNlcjIzMzg0NDgz","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/23384483?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Vipitis","html_url":"https:\/\/github.com\/Vipitis","followers_url":"https:\/\/api.github.com\/users\/Vipitis\/followers","following_url":"https:\/\/api.github.com\/users\/Vipitis\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Vipitis\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Vipitis\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Vipitis\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Vipitis\/orgs","repos_url":"https:\/\/api.github.com\/users\/Vipitis\/repos","events_url":"https:\/\/api.github.com\/users\/Vipitis\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Vipitis\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2024-08-06T17:42:55Z","updated_at":"2024-08-08T16:35:01Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\r\n\r\nlikely related to #6460 \r\n\r\nusing `datasets.load_dataset(\"json\", data_dir= ... )` with multiple `.jsonl` files will error if one of the files (maybe the first file?) contains a full column of empty data. \r\n\r\n### Steps to reproduce the bug\r\n\r\nreal world example:\r\ndata is available in this [PR-branch](https:\/\/github.com\/Vipitis\/shadertoys-dataset\/pull\/3\/commits\/cb1e7157814f74acb09d5dc2f1be3c0a868a9933). Because my files are chunked by months, some months contain all empty data for some columns, just by chance - these are `[]`. Otherwise it's all the same structure. \r\n\r\n```python\r\nfrom datasets import load_dataset\r\nds = load_dataset(\"json\", data_dir=\".\/data\/annotated\/api\")\r\n```\r\n\r\nyou get a long error trace, where in the middle it says something like \r\n```cs\r\nTypeError: Couldn't cast array of type struct, published: int64> to null\r\n```\r\n\r\ntoy example: (on request)\r\n\r\n\r\n### Expected behavior\r\n\r\nSome suggestions \r\n1. give a better error message to the user\r\n2. consider all files before deciding on a data structure for a given column.\r\n3. if you encounter a new structure, and can't cast that to null, replace the null-hypothesis. (maybe something for pyarrow)\r\n\r\nas a workaround I have lazily implemented the following (essentially step 2)\r\n```python\r\nimport os \r\nimport jsonlines\r\nimport datasets\r\n\r\napi_files = os.listdir(\".\/data\/annotated\/api\")\r\n\r\napi_files = [f\".\/data\/annotated\/api\/{f}\" for f in api_files]\r\n\r\napi_file_contents = []\r\nfor f in api_files:\r\n with jsonlines.open(f) as reader:\r\n for obj in reader:\r\n api_file_contents.append(obj)\r\n\r\nds = datasets.Dataset.from_list(api_file_contents)\r\n```\r\nthis works fine for my usecase, but is potentially slower and less memory efficient for really large datasets (where this is unlikely to happen in the first place).\r\n\r\n### Environment info\r\n\r\n- `datasets` version: 2.20.0\r\n- Platform: Windows-10-10.0.19041-SP0\r\n- Python version: 3.9.4\r\n- `huggingface_hub` version: 0.23.4\r\n- PyArrow version: 16.1.0\r\n- Pandas version: 2.2.2\r\n- `fsspec` version: 2023.10.0","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7092\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7092\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7090","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7090\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7090\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7090\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7090","id":2449699490,"node_id":"I_kwDODunzps6SA3Ki","number":7090,"title":"The test test_move_script_doesnt_change_hash fails because it runs the 'python' command while the python executable has a different name","user":{"login":"yurivict","id":271906,"node_id":"MDQ6VXNlcjI3MTkwNg==","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/271906?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/yurivict","html_url":"https:\/\/github.com\/yurivict","followers_url":"https:\/\/api.github.com\/users\/yurivict\/followers","following_url":"https:\/\/api.github.com\/users\/yurivict\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/yurivict\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/yurivict\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/yurivict\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/yurivict\/orgs","repos_url":"https:\/\/api.github.com\/users\/yurivict\/repos","events_url":"https:\/\/api.github.com\/users\/yurivict\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/yurivict\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-08-06T00:35:05Z","updated_at":"2024-08-06T00:35:05Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nTests should use the same pythin path as they are launched with, which in the case of FreeBSD is \/usr\/local\/bin\/python3.11\r\n\r\nFailure:\r\n```\r\n if err_filename is not None:\r\n> raise child_exception_type(errno_num, err_msg, err_filename)\r\nE FileNotFoundError: [Errno 2] No such file or directory: 'python'\r\n```\r\n\n\n### Steps to reproduce the bug\n\nregular test run using PyTest\n\n### Expected behavior\n\nn\/a\n\n### Environment info\n\nFreeBSD 14.1","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7090\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7090\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7089","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7089\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7089\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7089\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7089","id":2449479500,"node_id":"I_kwDODunzps6SABdM","number":7089,"title":"Missing pyspark dependency causes the testsuite to error out, instead of a few tests to be skipped","user":{"login":"yurivict","id":271906,"node_id":"MDQ6VXNlcjI3MTkwNg==","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/271906?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/yurivict","html_url":"https:\/\/github.com\/yurivict","followers_url":"https:\/\/api.github.com\/users\/yurivict\/followers","following_url":"https:\/\/api.github.com\/users\/yurivict\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/yurivict\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/yurivict\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/yurivict\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/yurivict\/orgs","repos_url":"https:\/\/api.github.com\/users\/yurivict\/repos","events_url":"https:\/\/api.github.com\/users\/yurivict\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/yurivict\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-08-05T21:05:11Z","updated_at":"2024-08-05T21:05:11Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nsee the subject\n\n### Steps to reproduce the bug\n\nregular tests\n\n### Expected behavior\n\nn\/a\n\n### Environment info\n\nversion 2.20.0","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7089\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7089\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7088","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7088\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7088\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7088\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7088","id":2447383940,"node_id":"I_kwDODunzps6R4B2E","number":7088,"title":"Disable warning when using with_format format on tensors","user":{"login":"Haislich","id":42048782,"node_id":"MDQ6VXNlcjQyMDQ4Nzgy","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42048782?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Haislich","html_url":"https:\/\/github.com\/Haislich","followers_url":"https:\/\/api.github.com\/users\/Haislich\/followers","following_url":"https:\/\/api.github.com\/users\/Haislich\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Haislich\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Haislich\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Haislich\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Haislich\/orgs","repos_url":"https:\/\/api.github.com\/users\/Haislich\/repos","events_url":"https:\/\/api.github.com\/users\/Haislich\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Haislich\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-08-05T00:45:50Z","updated_at":"2024-08-05T00:45:50Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nIf we write this code: \r\n\r\n```python\r\n\"\"\"Get data and define datasets.\"\"\"\r\n\r\nfrom enum import StrEnum\r\nfrom datasets import load_dataset\r\nfrom torch.utils.data import DataLoader\r\nfrom torchvision import transforms\r\n\r\n\r\nclass Split(StrEnum):\r\n \"\"\"Describes what type of split to use in the dataloader\"\"\"\r\n\r\n TRAIN = \"train\"\r\n TEST = \"test\"\r\n VAL = \"validation\"\r\n\r\n\r\nclass ImageNetDataLoader(DataLoader):\r\n \"\"\"Create an ImageNetDataloader\"\"\"\r\n\r\n _preprocess_transform = transforms.Compose(\r\n [\r\n transforms.Resize(256),\r\n transforms.CenterCrop(224),\r\n ]\r\n )\r\n\r\n def __init__(self, batch_size: int = 4, split: Split = Split.TRAIN):\r\n dataset = (\r\n load_dataset(\r\n \"imagenet-1k\",\r\n split=split,\r\n trust_remote_code=True,\r\n streaming=True,\r\n )\r\n .with_format(\"torch\")\r\n .map(self._preprocess)\r\n )\r\n\r\n super().__init__(dataset=dataset, batch_size=batch_size)\r\n\r\n def _preprocess(self, data):\r\n if data[\"image\"].shape[0] < 3:\r\n data[\"image\"] = data[\"image\"].repeat(3, 1, 1)\r\n data[\"image\"] = self._preprocess_transform(data[\"image\"].float())\r\n return data\r\n\r\n\r\nif __name__ == \"__main__\":\r\n\r\n dataloader = ImageNetDataLoader(batch_size=2)\r\n for batch in dataloader:\r\n print(batch[\"image\"])\r\n break\r\n```\r\nThis will trigger an user warning : \r\n\r\n```bash\r\ndatasets\\formatting\\torch_formatter.py:85: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach().requires_grad_(True), rather than torch.tensor(sourceTensor).\r\n return torch.tensor(value, **{**default_dtype, **self.torch_tensor_kwargs})\r\n```\n\n### Motivation\n\nThis happens because the the way the formatted tensor is returned in `TorchFormatter._tensorize`.\r\nThis function handle values of different types, according to some tests it seems that possible value types are `int`, `numpy.ndarray` and `torch.Tensor`.\r\nIn particular this warning is triggered when the value type is `torch.Tensor`, because is not the suggested Pytorch way of doing it:\r\n\r\n- https:\/\/stackoverflow.com\/questions\/55266154\/pytorch-preferred-way-to-copy-a-tensor\r\n- https:\/\/discuss.pytorch.org\/t\/it-is-recommended-to-use-source-tensor-clone-detach-or-sourcetensor-clone-detach-requires-grad-true\/101218#:~:text=The%20warning%20points%20to%20wrapping%20a%20tensor%20in%20torch.tensor%2C%20which%20is%20not%20recommended.%0AInstead%20of%20torch.tensor(outputs)%20use%20outputs.clone().detach()%20or%20the%20same%20with%20.requires_grad_(True)%2C%20if%20necessary.\r\n\r\n\n\n### Your contribution\n\nA solution that I found to be working is to change the current way of doing it: \r\n\r\n```python\r\nreturn torch.tensor(value, **{**default_dtype, **self.torch_tensor_kwargs})\r\n```\r\n\r\nTo:\r\n\r\n```python\r\nif (isinstance(value, torch.Tensor)):\r\n tensor = value.clone().detach()\r\n if self.torch_tensor_kwargs.get('requires_grad', False): \r\n tensor.requires_grad_()\r\n return tensor\r\nelse:\r\n return torch.tensor(value, **{**default_dtype, **self.torch_tensor_kwargs})\r\n```","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7088\/reactions","total_count":2,"+1":2,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7088\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7087","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7087\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7087\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7087\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7087","id":2447158643,"node_id":"I_kwDODunzps6R3K1z","number":7087,"title":"Unable to create dataset card for Lushootseed language","user":{"login":"vaishnavsudarshan","id":134876525,"node_id":"U_kgDOCAoNbQ","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/134876525?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/vaishnavsudarshan","html_url":"https:\/\/github.com\/vaishnavsudarshan","followers_url":"https:\/\/api.github.com\/users\/vaishnavsudarshan\/followers","following_url":"https:\/\/api.github.com\/users\/vaishnavsudarshan\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/vaishnavsudarshan\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/vaishnavsudarshan\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/vaishnavsudarshan\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/vaishnavsudarshan\/orgs","repos_url":"https:\/\/api.github.com\/users\/vaishnavsudarshan\/repos","events_url":"https:\/\/api.github.com\/users\/vaishnavsudarshan\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/vaishnavsudarshan\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"closed","locked":false,"assignee":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":2,"created_at":"2024-08-04T14:27:04Z","updated_at":"2024-08-06T06:59:23Z","closed_at":"2024-08-06T06:59:22Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nWhile I was creating the dataset which contained all documents from the Lushootseed Wikipedia, the dataset card asked me to enter which language the dataset was in. Since Lushootseed is a critically endangered language, it was not available as one of the options. Is it possible to allow entering languages that aren't available in the options?\n\n### Motivation\n\nI'd like to add more information about my dataset in the dataset card, and the language is one of the most important pieces of information, since the entire dataset is primarily concerned collecting Lushootseed documents.\n\n### Your contribution\n\nI can submit a pull request","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7087\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7087\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7086","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7086\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7086\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7086\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7086","id":2445516829,"node_id":"I_kwDODunzps6Rw6Ad","number":7086,"title":"load_dataset ignores cached datasets and tries to hit HF Hub, resulting in API rate limit errors","user":{"login":"tginart","id":11379648,"node_id":"MDQ6VXNlcjExMzc5NjQ4","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/11379648?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/tginart","html_url":"https:\/\/github.com\/tginart","followers_url":"https:\/\/api.github.com\/users\/tginart\/followers","following_url":"https:\/\/api.github.com\/users\/tginart\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/tginart\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/tginart\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/tginart\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/tginart\/orgs","repos_url":"https:\/\/api.github.com\/users\/tginart\/repos","events_url":"https:\/\/api.github.com\/users\/tginart\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/tginart\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-08-02T18:12:23Z","updated_at":"2025-06-16T18:43:29Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI have been running lm-eval-harness a lot which has results in an API rate limit. This seems strange, since all of the data should be cached locally. I have in fact verified this.\n\n### Steps to reproduce the bug\n\n1. Be Me\r\n2. Run `load_dataset(\"TAUR-Lab\/MuSR\")`\r\n3. Hit rate limit error\r\n4. Dataset is in .cache\/huggingface\/datasets\r\n5. ???\n\n### Expected behavior\n\nWe should not run into API rate limits if we have cached the dataset\n\n### Environment info\n\ndatasets 2.16.0\r\npython 3.10.4","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7086\/reactions","total_count":1,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":1,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7086\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7085","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7085\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7085\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7085\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7085","id":2440008618,"node_id":"I_kwDODunzps6Rb5Oq","number":7085,"title":"[Regression] IterableDataset is broken on 2.20.0","user":{"login":"AjayP13","id":5404177,"node_id":"MDQ6VXNlcjU0MDQxNzc=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/5404177?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/AjayP13","html_url":"https:\/\/github.com\/AjayP13","followers_url":"https:\/\/api.github.com\/users\/AjayP13\/followers","following_url":"https:\/\/api.github.com\/users\/AjayP13\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/AjayP13\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/AjayP13\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/AjayP13\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/AjayP13\/orgs","repos_url":"https:\/\/api.github.com\/users\/AjayP13\/repos","events_url":"https:\/\/api.github.com\/users\/AjayP13\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/AjayP13\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":3,"created_at":"2024-07-31T13:01:59Z","updated_at":"2024-08-22T14:49:37Z","closed_at":"2024-08-22T14:49:07Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nIn the latest version of datasets there is a major regression, after creating an `IterableDataset` from a generator and applying a few operations (`map`, `select`), you can no longer iterate through the dataset multiple times.\r\n\r\nThe issue seems to stem from the recent addition of \"resumable IterableDatasets\" (#6658) (@lhoestq). It seems like it's keeping state when it shouldn't.\r\n\r\n\n\n### Steps to reproduce the bug\n\nMinimal Reproducible Example (comparing `datasets==2.17.0` and `datasets==2.20.0`)\r\n\r\n```\r\n#!\/bin\/bash\r\n\r\n# List of dataset versions to test\r\nversions=(\"2.17.0\" \"2.20.0\")\r\n\r\n# Loop through each version\r\nfor version in \"${versions[@]}\"; do\r\n # Install the specific version of the datasets library\r\n pip3 install -q datasets==\"$version\" 2>\/dev\/null\r\n\r\n # Run the Python script\r\n python3 - <>> ds_filtered = ds.filter(lambda row: row['cpc_class'] != 'Y')\r\nFilter: 0%| | 0\/998 [00:00\", line 1, in \r\n File \"\/home\/l-walewski\/miniconda3\/envs\/patentqa\/lib\/python3.11\/site-packages\/datasets\/arrow_dataset.py\", line 567, in wrapper\r\n out: Union[\"Dataset\", \"DatasetDict\"] = func(self, *args, **kwargs)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"\/home\/l-walewski\/miniconda3\/envs\/patentqa\/lib\/python3.11\/site-packages\/datasets\/fingerprint.py\", line 482, in wrapper\r\n out = func(dataset, *args, **kwargs)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"\/home\/l-walewski\/miniconda3\/envs\/patentqa\/lib\/python3.11\/site-packages\/datasets\/arrow_dataset.py\", line 3714, in filter\r\n indices = self.map(\r\n ^^^^^^^^^\r\n File \"\/home\/l-walewski\/miniconda3\/envs\/patentqa\/lib\/python3.11\/site-packages\/datasets\/arrow_dataset.py\", line 602, in wrapper\r\n out: Union[\"Dataset\", \"DatasetDict\"] = func(self, *args, **kwargs)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"\/home\/l-walewski\/miniconda3\/envs\/patentqa\/lib\/python3.11\/site-packages\/datasets\/arrow_dataset.py\", line 567, in wrapper\r\n out: Union[\"Dataset\", \"DatasetDict\"] = func(self, *args, **kwargs)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"\/home\/l-walewski\/miniconda3\/envs\/patentqa\/lib\/python3.11\/site-packages\/datasets\/arrow_dataset.py\", line 3161, in map\r\n for rank, done, content in Dataset._map_single(**dataset_kwargs):\r\n File \"\/home\/l-walewski\/miniconda3\/envs\/patentqa\/lib\/python3.11\/site-packages\/datasets\/arrow_dataset.py\", line 3552, in _map_single\r\n batch = apply_function_on_filtered_inputs(\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"\/home\/l-walewski\/miniconda3\/envs\/patentqa\/lib\/python3.11\/site-packages\/datasets\/arrow_dataset.py\", line 3421, in apply_function_on_filtered_inputs\r\n processed_inputs = function(*fn_args, *additional_args, **fn_kwargs)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"\/home\/l-walewski\/miniconda3\/envs\/patentqa\/lib\/python3.11\/site-packages\/datasets\/arrow_dataset.py\", line 6478, in get_indices_from_mask_function\r\n num_examples = len(batch[next(iter(batch.keys()))])\r\n ~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"\/home\/l-walewski\/miniconda3\/envs\/patentqa\/lib\/python3.11\/site-packages\/datasets\/formatting\/formatting.py\", line 273, in __getitem__\r\n value = self.format(key)\r\n ^^^^^^^^^^^^^^^^\r\n File \"\/home\/l-walewski\/miniconda3\/envs\/patentqa\/lib\/python3.11\/site-packages\/datasets\/formatting\/formatting.py\", line 376, in format\r\n return self.formatter.format_column(self.pa_table.select([key]))\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"\/home\/l-walewski\/miniconda3\/envs\/patentqa\/lib\/python3.11\/site-packages\/datasets\/formatting\/formatting.py\", line 443, in format_column\r\n column = self.python_features_decoder.decode_column(column, pa_table.column_names[0])\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"\/home\/l-walewski\/miniconda3\/envs\/patentqa\/lib\/python3.11\/site-packages\/datasets\/formatting\/formatting.py\", line 219, in decode_column\r\n return self.features.decode_column(column, column_name) if self.features else column\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"\/home\/l-walewski\/miniconda3\/envs\/patentqa\/lib\/python3.11\/site-packages\/datasets\/features\/features.py\", line 2008, in decode_column\r\n [decode_nested_example(self[column_name], value) if value is not None else None for value in column]\r\n File \"\/home\/l-walewski\/miniconda3\/envs\/patentqa\/lib\/python3.11\/site-packages\/datasets\/features\/features.py\", line 2008, in \r\n [decode_nested_example(self[column_name], value) if value is not None else None for value in column]\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"\/home\/l-walewski\/miniconda3\/envs\/patentqa\/lib\/python3.11\/site-packages\/datasets\/features\/features.py\", line 1351, in decode_nested_example\r\n return schema.decode_example(obj, token_per_repo_id=token_per_repo_id)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"\/home\/l-walewski\/miniconda3\/envs\/patentqa\/lib\/python3.11\/site-packages\/datasets\/features\/image.py\", line 188, in decode_example\r\n image.load() # to avoid \"Too many open files\" errors\r\n ^^^^^^^^^^^^\r\n File \"\/home\/l-walewski\/miniconda3\/envs\/patentqa\/lib\/python3.11\/site-packages\/PIL\/ImageFile.py\", line 293, in load\r\n n, err_code = decoder.decode(b)\r\n ^^^^^^^^^^^^^^^^^\r\nKeyboardInterrupt\r\n```\r\n\r\nWarning! This can even seem to cause some computers to crash.\r\n\r\n### Expected behavior\r\n\r\nShould return the filtered dataset\r\n\r\n### Environment info\r\n\r\n- `datasets` version: 2.20.0\r\n- Platform: Linux-6.5.0-41-generic-x86_64-with-glibc2.35\r\n- Python version: 3.11.9\r\n- `huggingface_hub` version: 0.24.0\r\n- PyArrow version: 17.0.0\r\n- Pandas version: 2.2.2\r\n- `fsspec` version: 2024.5.0","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7071\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7071\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7070","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7070\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7070\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7070\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7070","id":2430285235,"node_id":"I_kwDODunzps6Q2zWz","number":7070,"title":"how set_transform affects batch size?","user":{"login":"VafaKnm","id":103993288,"node_id":"U_kgDOBjLPyA","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/103993288?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/VafaKnm","html_url":"https:\/\/github.com\/VafaKnm","followers_url":"https:\/\/api.github.com\/users\/VafaKnm\/followers","following_url":"https:\/\/api.github.com\/users\/VafaKnm\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/VafaKnm\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/VafaKnm\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/VafaKnm\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/VafaKnm\/orgs","repos_url":"https:\/\/api.github.com\/users\/VafaKnm\/repos","events_url":"https:\/\/api.github.com\/users\/VafaKnm\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/VafaKnm\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-07-25T15:19:34Z","updated_at":"2024-07-25T15:19:34Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI am trying to fine-tune w2v-bert for ASR task. Since my dataset is so big, I preferred to use the on-the-fly method with set_transform. So i change the preprocessing function to this:\r\n```\r\ndef prepare_dataset(batch):\r\n input_features = processor(batch[\"audio\"], sampling_rate=16000).input_features[0]\r\n input_length = len(input_features)\r\n labels = processor.tokenizer(batch[\"text\"], padding=False).input_ids\r\n\r\n batch = {\r\n \"input_features\": [input_features],\r\n \"input_length\": [input_length],\r\n \"labels\": [labels]\r\n }\r\n \r\n return batch\r\n\r\n\r\ntrain_ds.set_transform(prepare_dataset)\r\nval_ds.set_transform(prepare_dataset)\r\n```\r\n\r\nAfter this, I also had to change the DataCollatorCTCWithPadding class like this:\r\n```\r\n@dataclass\r\nclass DataCollatorCTCWithPadding:\r\n processor: Wav2Vec2BertProcessor\r\n padding: Union[bool, str] = True\r\n\r\n def __call__(self, features: List[Dict[str, Union[List[int], torch.Tensor]]]) -> Dict[str, torch.Tensor]:\r\n # Separate input_features and labels\r\n input_features = [{\"input_features\": feature[\"input_features\"][0]} for feature in features]\r\n labels = [feature[\"labels\"][0] for feature in features]\r\n\r\n # Pad input features\r\n batch = self.processor.pad(\r\n input_features,\r\n padding=self.padding,\r\n return_tensors=\"pt\",\r\n )\r\n\r\n # Pad and process labels\r\n label_features = self.processor.tokenizer.pad(\r\n {\"input_ids\": labels},\r\n padding=self.padding,\r\n return_tensors=\"pt\",\r\n )\r\n\r\n labels = label_features[\"input_ids\"]\r\n attention_mask = label_features[\"attention_mask\"]\r\n\r\n # Replace padding with -100 to ignore these tokens during loss calculation\r\n labels = labels.masked_fill(attention_mask.ne(1), -100)\r\n\r\n batch[\"labels\"] = labels\r\n\r\n return batch\r\n```\r\n \r\nBut now a strange thing is happening, no matter how much I increase the batch size, the amount of V-RAM GPU usage does not change, while the number of total steps in the progress-bar (logging) changes. Is this normal or have I made a mistake?\n\n### Steps to reproduce the bug\n\ni can share my code if needed\n\n### Expected behavior\n\nEqual to the batch size value, the set_transform function is applied to the dataset and given to the model as a batch.\n\n### Environment info\n\nall updated versions","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7070\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7070\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7069","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7069\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7069\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7069\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7069","id":2429281339,"node_id":"PR_kwDODunzps52betB","number":7069,"title":"Fix push_to_hub by not calling create_branch if PR branch","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2024-07-25T07:50:04Z","updated_at":"2024-07-31T07:10:07Z","closed_at":"2024-07-30T10:51:01Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7069","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7069","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7069.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7069.patch","merged_at":"2024-07-30T10:51:01Z"},"body":"Fix push_to_hub by not calling create_branch if PR branch (e.g. `refs\/pr\/1`).\r\n\r\nNote that currently create_branch raises a 400 Bad Request error if the user passes a PR branch (e.g. `refs\/pr\/1`).\r\n\r\nEDIT:\r\n~~Fix push_to_hub by not calling create_branch if branch exists.~~\r\n\r\nNote that currently create_branch raises a 403 Forbidden error even if all these conditions are met:\r\n- exist_ok is passed\r\n- the branch already exists\r\n- the user does not have WRITE permission\r\n\r\nFix #7067.\r\n\r\nRelated issue:\r\n- https:\/\/github.com\/huggingface\/huggingface_hub\/issues\/2419","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7069\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7069\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7068","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7068\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7068\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7068\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7068","id":2426657434,"node_id":"PR_kwDODunzps52SwXS","number":7068,"title":"Fix prepare_single_hop_path_and_storage_options","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-07-24T05:52:34Z","updated_at":"2024-07-29T07:02:07Z","closed_at":"2024-07-29T06:56:15Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7068","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7068","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7068.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7068.patch","merged_at":"2024-07-29T06:56:15Z"},"body":"Fix `_prepare_single_hop_path_and_storage_options`:\r\n- Do not pass HF authentication headers and HF user-agent to non-HF HTTP URLs\r\n- Do not overwrite passed `storage_options` nested values:\r\n - Before, when passed \r\n ```DownloadConfig(storage_options={\"https\": {\"client_kwargs\": {\"raise_for_status\": True}}})```, \r\n it was overwritten to \r\n ```{\"https\": {\"client_kwargs\": {\"trust_env\": True}}}```\r\n - Now, the result combines both: \r\n ```{\"https\": {\"client_kwargs\": {\"trust_env\": True, \"raise_for_status\": True}}}```","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7068\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7068\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7067","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7067\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7067\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7067\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7067","id":2425460168,"node_id":"I_kwDODunzps6QkZXI","number":7067,"title":"Convert_to_parquet fails for datasets with multiple configs","user":{"login":"HuangZhen02","id":97585031,"node_id":"U_kgDOBdEHhw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/97585031?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/HuangZhen02","html_url":"https:\/\/github.com\/HuangZhen02","followers_url":"https:\/\/api.github.com\/users\/HuangZhen02\/followers","following_url":"https:\/\/api.github.com\/users\/HuangZhen02\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/HuangZhen02\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/HuangZhen02\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/HuangZhen02\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/HuangZhen02\/orgs","repos_url":"https:\/\/api.github.com\/users\/HuangZhen02\/repos","events_url":"https:\/\/api.github.com\/users\/HuangZhen02\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/HuangZhen02\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":3,"created_at":"2024-07-23T15:09:33Z","updated_at":"2024-07-30T10:51:02Z","closed_at":"2024-07-30T10:51:02Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"If the dataset has multiple configs, when using the `datasets-cli convert_to_parquet` command to avoid issues with the data viewer caused by loading scripts, the conversion process only successfully converts the data corresponding to the first config. When it starts converting the second config, it throws an error:\r\n\r\n```\r\nTraceback (most recent call last):\r\n File \"\/opt\/anaconda3\/envs\/dl\/bin\/datasets-cli\", line 8, in \r\n sys.exit(main())\r\n File \"\/opt\/anaconda3\/envs\/dl\/lib\/python3.10\/site-packages\/datasets\/commands\/datasets_cli.py\", line 41, in main\r\n service.run()\r\n File \"\/opt\/anaconda3\/envs\/dl\/lib\/python3.10\/site-packages\/datasets\/commands\/convert_to_parquet.py\", line 83, in run\r\n dataset.push_to_hub(\r\n File \"\/opt\/anaconda3\/envs\/dl\/lib\/python3.10\/site-packages\/datasets\/dataset_dict.py\", line 1713, in push_to_hub\r\n api.create_branch(repo_id, branch=revision, token=token, repo_type=\"dataset\", exist_ok=True)\r\n File \"\/opt\/anaconda3\/envs\/dl\/lib\/python3.10\/site-packages\/huggingface_hub\/utils\/_validators.py\", line 114, in _inner_fn\r\n return fn(*args, **kwargs)\r\n File \"\/opt\/anaconda3\/envs\/dl\/lib\/python3.10\/site-packages\/huggingface_hub\/hf_api.py\", line 5503, in create_branch\r\n hf_raise_for_status(response)\r\n File \"\/opt\/anaconda3\/envs\/dl\/lib\/python3.10\/site-packages\/huggingface_hub\/utils\/_errors.py\", line 358, in hf_raise_for_status\r\n raise BadRequestError(message, response=response) from e\r\nhuggingface_hub.utils._errors.BadRequestError: (Request ID: Root=1-669fc665-7c2e80d75f4337496ee95402;731fcdc7-0950-4eec-99cf-ce047b8d003f)\r\n\r\nBad request:\r\nInvalid reference for a branch: refs\/pr\/1\r\n```","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7067\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7067\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7066","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7066\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7066\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7066\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7066","id":2425125160,"node_id":"I_kwDODunzps6QjHko","number":7066,"title":"One subset per file in repo ?","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-07-23T12:43:59Z","updated_at":"2025-06-26T08:24:50Z","closed_at":null,"author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"Right now we consider all the files of a dataset to be the same data, e.g.\r\n```\r\nsingle_subset_dataset\/\r\n\u251c\u2500\u2500 train0.jsonl\r\n\u251c\u2500\u2500 train1.jsonl\r\n\u2514\u2500\u2500 train2.jsonl\r\n```\r\nbut in cases like this, each file is actually a different subset of the dataset and should be loaded separately\r\n```\r\nmany_subsets_dataset\/\r\n\u251c\u2500\u2500 animals.jsonl\r\n\u251c\u2500\u2500 trees.jsonl\r\n\u2514\u2500\u2500 metadata.jsonl\r\n```\r\n\r\nIt would be nice to detect those subsets automatically using a simple heuristic. For example we can group files together if their paths names are the same except some digits ?","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7066\/reactions","total_count":3,"+1":3,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7066\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7065","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7065\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7065\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7065\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7065","id":2424734953,"node_id":"I_kwDODunzps6QhoTp","number":7065,"title":"Cannot get item after loading from disk and then converting to iterable.","user":{"login":"happyTonakai","id":21305646,"node_id":"MDQ6VXNlcjIxMzA1NjQ2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/21305646?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/happyTonakai","html_url":"https:\/\/github.com\/happyTonakai","followers_url":"https:\/\/api.github.com\/users\/happyTonakai\/followers","following_url":"https:\/\/api.github.com\/users\/happyTonakai\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/happyTonakai\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/happyTonakai\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/happyTonakai\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/happyTonakai\/orgs","repos_url":"https:\/\/api.github.com\/users\/happyTonakai\/repos","events_url":"https:\/\/api.github.com\/users\/happyTonakai\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/happyTonakai\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-07-23T09:37:56Z","updated_at":"2024-07-23T09:37:56Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nThe dataset generated from local file works fine.\r\n```py\r\nroot = \"\/home\/data\/train\"\r\nfile_list1 = glob(os.path.join(root, \"*part1.flac\"))\r\nfile_list2 = glob(os.path.join(root, \"*part2.flac\"))\r\n\r\nds = (\r\n Dataset.from_dict({\"part1\": file_list1, \"part2\": file_list2})\r\n .cast_column(\"part1\", Audio(sampling_rate=None, mono=False))\r\n .cast_column(\"part2\", Audio(sampling_rate=None, mono=False))\r\n)\r\n\r\nids = ds.to_iterable_dataset(128)\r\nids = ids.shuffle(buffer_size=10000, seed=42)\r\ndataloader = DataLoader(ids, num_workers=4, batch_size=8, persistent_workers=True)\r\n\r\nfor batch in dataloader:\r\n break\r\n```\r\n\r\nBut after saving it to disk and then loading it from disk, I cannot get data as expected.\r\n```py\r\nroot = \"\/home\/data\/train\"\r\nfile_list1 = glob(os.path.join(root, \"*part1.flac\"))\r\nfile_list2 = glob(os.path.join(root, \"*part2.flac\"))\r\n\r\nds = (\r\n Dataset.from_dict({\"part1\": file_list1, \"part2\": file_list2})\r\n .cast_column(\"part1\", Audio(sampling_rate=None, mono=False))\r\n .cast_column(\"part2\", Audio(sampling_rate=None, mono=False))\r\n)\r\n\r\nds.save_to_disk(\".\/train\")\r\n\r\nds = datasets.load_from_disk(\".\/train\")\r\n\r\nids = ds.to_iterable_dataset(128)\r\nids = ids.shuffle(buffer_size=10000, seed=42)\r\ndataloader = DataLoader(ids, num_workers=4, batch_size=8, persistent_workers=True)\r\n\r\nfor batch in dataloader:\r\n break\r\n```\r\n\r\nAfter a long time waiting, an error occurs:\r\n```\r\nLoading dataset from disk: 100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 165\/165 [00:00<00:00, 6422.18it\/s]\r\nTraceback (most recent call last):\r\n File \"\/home\/hanzerui\/.conda\/envs\/mss\/lib\/python3.10\/site-packages\/torch\/utils\/data\/dataloader.py\", line 1133, in _try_get_data\r\n data = self._data_queue.get(timeout=timeout)\r\n File \"\/home\/hanzerui\/.conda\/envs\/mss\/lib\/python3.10\/multiprocessing\/queues.py\", line 113, in get\r\n if not self._poll(timeout):\r\n File \"\/home\/hanzerui\/.conda\/envs\/mss\/lib\/python3.10\/multiprocessing\/connection.py\", line 257, in poll\r\n return self._poll(timeout)\r\n File \"\/home\/hanzerui\/.conda\/envs\/mss\/lib\/python3.10\/multiprocessing\/connection.py\", line 424, in _poll\r\n r = wait([self], timeout)\r\n File \"\/home\/hanzerui\/.conda\/envs\/mss\/lib\/python3.10\/multiprocessing\/connection.py\", line 931, in wait\r\n ready = selector.select(timeout)\r\n File \"\/home\/hanzerui\/.conda\/envs\/mss\/lib\/python3.10\/selectors.py\", line 416, in select\r\n fd_event_list = self._selector.poll(timeout)\r\n File \"\/home\/hanzerui\/.conda\/envs\/mss\/lib\/python3.10\/site-packages\/torch\/utils\/data\/_utils\/signal_handling.py\", line 66, in handler\r\n _error_if_any_worker_fails()\r\nRuntimeError: DataLoader worker (pid 3490529) is killed by signal: Killed. \r\n\r\nThe above exception was the direct cause of the following exception:\r\n\r\nTraceback (most recent call last):\r\n File \"\/home\/hanzerui\/.conda\/envs\/mss\/lib\/python3.10\/runpy.py\", line 196, in _run_module_as_main\r\n return _run_code(code, main_globals, None,\r\n File \"\/home\/hanzerui\/.conda\/envs\/mss\/lib\/python3.10\/runpy.py\", line 86, in _run_code\r\n exec(code, run_globals)\r\n File \"\/home\/hanzerui\/.vscode-server\/extensions\/ms-python.debugpy-2024.9.12011011\/bundled\/libs\/debugpy\/adapter\/..\/..\/debugpy\/launcher\/..\/..\/debugpy\/__main__.py\", line 39, in \r\n cli.main()\r\n File \"\/home\/hanzerui\/.vscode-server\/extensions\/ms-python.debugpy-2024.9.12011011\/bundled\/libs\/debugpy\/adapter\/..\/..\/debugpy\/launcher\/..\/..\/debugpy\/..\/debugpy\/server\/cli.py\", line 430, in main\r\n run()\r\n File \"\/home\/hanzerui\/.vscode-server\/extensions\/ms-python.debugpy-2024.9.12011011\/bundled\/libs\/debugpy\/adapter\/..\/..\/debugpy\/launcher\/..\/..\/debugpy\/..\/debugpy\/server\/cli.py\", line 284, in run_file\r\n runpy.run_path(target, run_name=\"__main__\")\r\n File \"\/home\/hanzerui\/.vscode-server\/extensions\/ms-python.debugpy-2024.9.12011011\/bundled\/libs\/debugpy\/_vendored\/pydevd\/_pydevd_bundle\/pydevd_runpy.py\", line 321, in run_path\r\n return _run_module_code(code, init_globals, run_name,\r\n File \"\/home\/hanzerui\/.vscode-server\/extensions\/ms-python.debugpy-2024.9.12011011\/bundled\/libs\/debugpy\/_vendored\/pydevd\/_pydevd_bundle\/pydevd_runpy.py\", line 135, in _run_module_code\r\n _run_code(code, mod_globals, init_globals,\r\n File \"\/home\/hanzerui\/.vscode-server\/extensions\/ms-python.debugpy-2024.9.12011011\/bundled\/libs\/debugpy\/_vendored\/pydevd\/_pydevd_bundle\/pydevd_runpy.py\", line 124, in _run_code\r\n exec(code, run_globals)\r\n File \"\/home\/hanzerui\/workspace\/NetEase\/test\/test_datasets.py\", line 60, in \r\n for batch in dataloader:\r\n File \"\/home\/hanzerui\/.conda\/envs\/mss\/lib\/python3.10\/site-packages\/torch\/utils\/data\/dataloader.py\", line 631, in __next__\r\n data = self._next_data()\r\n File \"\/home\/hanzerui\/.conda\/envs\/mss\/lib\/python3.10\/site-packages\/torch\/utils\/data\/dataloader.py\", line 1329, in _next_data\r\n idx, data = self._get_data()\r\n File \"\/home\/hanzerui\/.conda\/envs\/mss\/lib\/python3.10\/site-packages\/torch\/utils\/data\/dataloader.py\", line 1295, in _get_data\r\n success, data = self._try_get_data()\r\n File \"\/home\/hanzerui\/.conda\/envs\/mss\/lib\/python3.10\/site-packages\/torch\/utils\/data\/dataloader.py\", line 1146, in _try_get_data\r\n raise RuntimeError(f'DataLoader worker (pid(s) {pids_str}) exited unexpectedly') from e\r\nRuntimeError: DataLoader worker (pid(s) 3490529) exited unexpectedly\r\n```\r\n\r\nIt seems that streaming is not supported by `laod_from_disk`, so does that mean I cannot convert it to iterable?\n\n### Steps to reproduce the bug\n\n1. Create a `Dataset` from local files with `from_dict`\r\n2. Save it to disk with `save_to_disk`\r\n3. Load it from disk with `load_from_disk`\r\n4. Convert to iterable with `to_iterable_dataset`\r\n5. Loop the dataset\n\n### Expected behavior\n\nGet items faster than the original dataset generated from dict.\n\n### Environment info\n\n- `datasets` version: 2.20.0\r\n- Platform: Linux-6.5.0-41-generic-x86_64-with-glibc2.35\r\n- Python version: 3.10.14\r\n- `huggingface_hub` version: 0.23.2\r\n- PyArrow version: 17.0.0\r\n- Pandas version: 2.2.2\r\n- `fsspec` version: 2024.5.0","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7065\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7065\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7064","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7064\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7064\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7064\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7064","id":2424613104,"node_id":"PR_kwDODunzps52Lz2-","number":7064,"title":"Add `batch` method to `Dataset` class","user":{"login":"lappemic","id":61876623,"node_id":"MDQ6VXNlcjYxODc2NjIz","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/61876623?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lappemic","html_url":"https:\/\/github.com\/lappemic","followers_url":"https:\/\/api.github.com\/users\/lappemic\/followers","following_url":"https:\/\/api.github.com\/users\/lappemic\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lappemic\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lappemic\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lappemic\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lappemic\/orgs","repos_url":"https:\/\/api.github.com\/users\/lappemic\/repos","events_url":"https:\/\/api.github.com\/users\/lappemic\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lappemic\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2024-07-23T08:40:43Z","updated_at":"2024-07-25T13:51:25Z","closed_at":"2024-07-25T13:45:20Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7064","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7064","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7064.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7064.patch","merged_at":"2024-07-25T13:45:20Z"},"body":"This PR introduces a new `batch` method to the `Dataset` class, aligning its functionality with the `IterableDataset.batch()` method (implemented in #7054). The implementation uses as well the existing `map` method for efficient batching of examples.\r\n\r\nKey changes:\r\n- Add `batch` method to `Dataset` class in `arrow_dataset.py`\r\n- Utilize `map` method for batching\r\n\r\nCloses #7063\r\n\r\nOnce the approach is approved, i will create the tests and update the documentation.","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7064\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7064\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7063","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7063\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7063\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7063\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7063","id":2424488648,"node_id":"I_kwDODunzps6QgsLI","number":7063,"title":"Add `batch` method to `Dataset`","user":{"login":"lappemic","id":61876623,"node_id":"MDQ6VXNlcjYxODc2NjIz","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/61876623?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lappemic","html_url":"https:\/\/github.com\/lappemic","followers_url":"https:\/\/api.github.com\/users\/lappemic\/followers","following_url":"https:\/\/api.github.com\/users\/lappemic\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lappemic\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lappemic\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lappemic\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lappemic\/orgs","repos_url":"https:\/\/api.github.com\/users\/lappemic\/repos","events_url":"https:\/\/api.github.com\/users\/lappemic\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lappemic\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-07-23T07:36:59Z","updated_at":"2024-07-25T13:45:21Z","closed_at":"2024-07-25T13:45:21Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nAdd a `batch` method to the Dataset class, similar to the one recently implemented for `IterableDataset` in PR #7054.\n\n### Motivation\n\nA batched iteration speeds up data loading significantly (see e.g. #6279)\n\n### Your contribution\n\nI plan to open a PR to implement this. ","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7063\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7063\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7062","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7062\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7062\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7062\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7062","id":2424467484,"node_id":"PR_kwDODunzps52LUPR","number":7062,"title":"Avoid calling http_head for non-HTTP URLs","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-07-23T07:25:09Z","updated_at":"2024-07-23T14:28:27Z","closed_at":"2024-07-23T14:21:08Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7062","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7062","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7062.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7062.patch","merged_at":"2024-07-23T14:21:08Z"},"body":"Avoid calling `http_head` for non-HTTP URLs, by adding and `else` statement.\r\n\r\nCurrently, it makes an unnecessary HTTP call (which adds latency) for non-HTTP protocols, like FTP, S3,...\r\n\r\nI discovered this while working in an unrelated issue.","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7062\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7062\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7061","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7061\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7061\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7061\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7061","id":2423786881,"node_id":"I_kwDODunzps6QeA2B","number":7061,"title":"Custom Dataset | Still Raise Error while handling errors in _generate_examples","user":{"login":"hahmad2008","id":68266028,"node_id":"MDQ6VXNlcjY4MjY2MDI4","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/68266028?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/hahmad2008","html_url":"https:\/\/github.com\/hahmad2008","followers_url":"https:\/\/api.github.com\/users\/hahmad2008\/followers","following_url":"https:\/\/api.github.com\/users\/hahmad2008\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/hahmad2008\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/hahmad2008\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/hahmad2008\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/hahmad2008\/orgs","repos_url":"https:\/\/api.github.com\/users\/hahmad2008\/repos","events_url":"https:\/\/api.github.com\/users\/hahmad2008\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/hahmad2008\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-07-22T21:18:12Z","updated_at":"2024-09-09T14:48:07Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI follow this [example](https:\/\/discuss.huggingface.co\/t\/error-handling-in-iterabledataset\/72827\/3) to handle errors in custom dataset. I am writing a dataset script which read jsonl files and i need to handle errors and continue reading files without raising exception and exit the execution.\r\n\r\n```\r\ndef _generate_examples(self, filepaths):\r\n errors=[]\r\n \r\n id_ = 0\r\n for filepath in filepaths:\r\n try:\r\n with open(filepath, 'r') as f:\r\n for line in f:\r\n json_obj = json.loads(line)\r\n \r\n yield id_, json_obj\r\n id_ += 1\r\n except Exception as exc: \r\n logger.error(f\"error occur at filepath: {filepath}\") \r\n errors.append(error)\r\n```\r\n\r\nseems the logger.error is printed but still exception is raised the the run is exit.\r\n\r\n```\r\nDownloading and preparing dataset custom_dataset\/default to \/home\/myuser\/.cache\/huggingface\/datasets\/custom_dataset\/default-a14cdd566afee0a6\/1.0.0\/acfcc9fb9c57034b580c4252841\r\nERROR: datasets_modules.datasets.custom_dataset.acfcc9fb9c57034b580c4252841bb890a5617cbd28678dd4be5e52b81188ad02.custom_dataset: 2024-07-22 10:47:42,167: error occur at filepath: '\/home\/myuser\/ds\/corrupted-file.jsonl\r\nTraceback (most recent call last):\r\n File \"\/home\/myuser\/.cache\/huggingface\/modules\/datasets_modules\/datasets\/custom_dataset\/ac..2\/custom_dataset.py\", line 48, in _generate_examples\r\n json_obj = json.loads(line)\r\n File \"myenv\/lib\/python3.8\/json\/__init__.py\", line 357, in loads\r\n return _default_decoder.decode(s)\r\n File \"myenv\/lib\/python3.8\/json\/decoder.py\", line 337, in decode\r\n obj, end = self.raw_decode(s, idx=_w(s, 0).end())\r\n File \"myenv\/lib\/python3.8\/json\/decoder.py\", line 353, in raw_decode\r\n obj, end = self.scan_once(s, idx)\r\njson.decoder.JSONDecodeError: Invalid control character at: line 1 column 4 (char 3)\r\nGenerating train split: 0 examples [00:06, ? examples\/s]>\r\nRemoteTraceback: \r\n\"\"\"\r\nTraceback (most recent call last):\r\n File \"myenv\/lib\/python3.8\/site-packages\/datasets\/builder.py\", line 1637, in _prepare_split_single\r\n num_examples, num_bytes = writer.finalize()\r\n File \"myenv\/lib\/python3.8\/site-packages\/datasets\/arrow_writer.py\", line 594, in finalize\r\n raise SchemaInferenceError(\"Please pass `features` or at least one example when writing data\")\r\ndatasets.arrow_writer.SchemaInferenceError: Please pass `features` or at least one example when writing data\r\n\r\nThe above exception was the direct cause of the following exception:\r\n\r\nTraceback (most recent call last):\r\n File \"myenv\/lib\/python3.8\/site-packages\/multiprocess\/pool.py\", line 125, in worker\r\n result = (True, func(*args, **kwds))\r\n File \"myenv\/lib\/python3.8\/site-packages\/datasets\/utils\/py_utils.py\", line 1353, in \r\n_write_generator_to_queue\r\n for i, result in enumerate(func(**kwargs)):\r\n File \"myenv\/lib\/python3.8\/site-packages\/datasets\/builder.py\", line 1646, in _prepare_split_single\r\n raise DatasetGenerationError(\"An error occurred while generating the dataset\") from e\r\ndatasets.builder.DatasetGenerationError: An error occurred while generating the dataset\r\n\"\"\"\r\n\r\nThe above exception was the direct cause of the following exception:\r\n\r\n\r\n\u2502 \u2502\r\n\u2502 myenv\/lib\/python3.8\/site-packages\/datasets\/utils\/py_utils. \u2502\r\n\u2502 py:1377 in \u2502\r\n\u2502 \u2502\r\n\u2502 1374 \u2502 \u2502 \u2502 \u2502 if all(async_result.ready() for async_result in async_results) and queue \u2502\r\n\u2502 1375 \u2502 \u2502 \u2502 \u2502 \u2502 break \u2502\r\n\u2502 1376 \u2502 \u2502 # we get the result in case there's an error to raise \u2502\r\n\u2502 \u2771 1377 \u2502 \u2502 [async_result.get() for async_result in async_results] \u2502\r\n\u2502 1378 \u2502\r\n\u2502 \u2502\r\n\u2502 \u256d\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 locals \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256e \u2502\r\n\u2502 \u2502 .0 = \u2502 \u2502\r\n\u2502 \u2502 async_result = \u2502 \u2502\r\n\u2502 \u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f \u2502\r\n\u2502 \u2502\r\n\u2502 myenv\/lib\/python3.8\/site-packages\/multiprocess\/pool.py:771 \u2502\r\n\u2502 in get \u2502\r\n\u2502 \u2502\r\n\u2502 768 \u2502 \u2502 if self._success: \u2502\r\n\u2502 769 \u2502 \u2502 \u2502 return self._value \u2502\r\n\u2502 770 \u2502 \u2502 else: \u2502\r\n\u2502 \u2771 771 \u2502 \u2502 \u2502 raise self._value \u2502\r\n\u2502 772 \u2502 \u2502\r\n\u2502 773 \u2502 def _set(self, i, obj): \u2502\r\n\u2502 774 \u2502 \u2502 self._success, self._value = obj \u2502\r\n\u2502 \u2502\r\n\u2502 \u256d\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 locals \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256e \u2502\r\n\u2502 \u2502 self = \u2502 \u2502\r\n\u2502 \u2502 timeout = None \u2502 \u2502\r\n\u2502 \u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f \u2502\r\n\r\nDatasetGenerationError: An error occurred while generating the dataset\r\n```\n\n### Steps to reproduce the bug\n\nsame as above\n\n### Expected behavior\n\nshould handle error and continue reading remaining files\n\n### Environment info\n\npython 3.9","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7061\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7061\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7060","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7060\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7060\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7060\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7060","id":2423188419,"node_id":"PR_kwDODunzps52G71g","number":7060,"title":"WebDataset BuilderConfig","user":{"login":"hlky","id":106811348,"node_id":"U_kgDOBl3P1A","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/106811348?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/hlky","html_url":"https:\/\/github.com\/hlky","followers_url":"https:\/\/api.github.com\/users\/hlky\/followers","following_url":"https:\/\/api.github.com\/users\/hlky\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/hlky\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/hlky\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/hlky\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/hlky\/orgs","repos_url":"https:\/\/api.github.com\/users\/hlky\/repos","events_url":"https:\/\/api.github.com\/users\/hlky\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/hlky\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-07-22T15:41:07Z","updated_at":"2024-07-23T13:28:44Z","closed_at":"2024-07-23T13:28:44Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7060","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7060","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7060.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7060.patch","merged_at":null},"body":"This PR adds `WebDatasetConfig`.\r\n\r\nCloses #7055 ","closed_by":{"login":"hlky","id":106811348,"node_id":"U_kgDOBl3P1A","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/106811348?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/hlky","html_url":"https:\/\/github.com\/hlky","followers_url":"https:\/\/api.github.com\/users\/hlky\/followers","following_url":"https:\/\/api.github.com\/users\/hlky\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/hlky\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/hlky\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/hlky\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/hlky\/orgs","repos_url":"https:\/\/api.github.com\/users\/hlky\/repos","events_url":"https:\/\/api.github.com\/users\/hlky\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/hlky\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7060\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7060\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7059","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7059\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7059\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7059\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7059","id":2422827892,"node_id":"I_kwDODunzps6QaWt0","number":7059,"title":"None values are skipped when reading jsonl in subobjects","user":{"login":"PonteIneptique","id":1929830,"node_id":"MDQ6VXNlcjE5Mjk4MzA=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/1929830?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/PonteIneptique","html_url":"https:\/\/github.com\/PonteIneptique","followers_url":"https:\/\/api.github.com\/users\/PonteIneptique\/followers","following_url":"https:\/\/api.github.com\/users\/PonteIneptique\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/PonteIneptique\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/PonteIneptique\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/PonteIneptique\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/PonteIneptique\/orgs","repos_url":"https:\/\/api.github.com\/users\/PonteIneptique\/repos","events_url":"https:\/\/api.github.com\/users\/PonteIneptique\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/PonteIneptique\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-07-22T13:02:42Z","updated_at":"2024-07-22T13:02:53Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI have been fighting against my machine since this morning only to find out this is some kind of a bug.\r\n\r\nWhen loading a dataset composed of `metadata.jsonl`, if you have nullable values (Optional[str]), they can be ignored by the parser, shifting things around.\r\n\r\nE.g., let's take this example\r\n\r\nHere are two version of a same dataset:\r\n\r\n[not-buggy.tar.gz](https:\/\/github.com\/user-attachments\/files\/16333532\/not-buggy.tar.gz)\r\n[buggy.tar.gz](https:\/\/github.com\/user-attachments\/files\/16333553\/buggy.tar.gz)\r\n\n\n### Steps to reproduce the bug\n\n1. Load the `buggy.tar.gz` dataset\r\n2. Print baseline of `dts = load_dataset(\".\/data\")[\"train\"][0][\"baselines]`\r\n3. Load the `not-buggy.tar.gz` dataset\r\n4. Print baseline of `dts = load_dataset(\".\/data\")[\"train\"][0][\"baselines]`\n\n### Expected behavior\n\nBoth should have 4 baseline entries:\r\n1. Buggy should have None followed by three lists\r\n2. Non-Buggy should have four lists, and the first one should be an empty list.\r\n\r\nOne does not work, 2 works. Despite accepting None in another position than the first one.\n\n### Environment info\n\n\r\n- `datasets` version: 2.19.1\r\n- Platform: Linux-6.5.0-44-generic-x86_64-with-glibc2.35\r\n- Python version: 3.10.12\r\n- `huggingface_hub` version: 0.23.0\r\n- PyArrow version: 16.1.0\r\n- Pandas version: 2.2.2\r\n- `fsspec` version: 2024.3.1\r\n","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7059\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7059\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7058","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7058\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7058\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7058\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7058","id":2422560355,"node_id":"I_kwDODunzps6QZVZj","number":7058,"title":"New feature type: Document","user":{"login":"severo","id":1676121,"node_id":"MDQ6VXNlcjE2NzYxMjE=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/1676121?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/severo","html_url":"https:\/\/github.com\/severo","followers_url":"https:\/\/api.github.com\/users\/severo\/followers","following_url":"https:\/\/api.github.com\/users\/severo\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/severo\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/severo\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/severo\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/severo\/orgs","repos_url":"https:\/\/api.github.com\/users\/severo\/repos","events_url":"https:\/\/api.github.com\/users\/severo\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/severo\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-07-22T10:49:20Z","updated_at":"2024-07-22T10:49:20Z","closed_at":null,"author_association":"COLLABORATOR","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"It would be useful for PDF.\r\n\r\nhttps:\/\/github.com\/huggingface\/dataset-viewer\/issues\/2991#issuecomment-2242656069","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7058\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7058\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7057","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7057\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7057\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7057\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7057","id":2422498520,"node_id":"PR_kwDODunzps52EjGC","number":7057,"title":"Update load_hub.mdx","user":{"login":"severo","id":1676121,"node_id":"MDQ6VXNlcjE2NzYxMjE=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/1676121?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/severo","html_url":"https:\/\/github.com\/severo","followers_url":"https:\/\/api.github.com\/users\/severo\/followers","following_url":"https:\/\/api.github.com\/users\/severo\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/severo\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/severo\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/severo\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/severo\/orgs","repos_url":"https:\/\/api.github.com\/users\/severo\/repos","events_url":"https:\/\/api.github.com\/users\/severo\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/severo\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-07-22T10:17:46Z","updated_at":"2024-07-22T10:34:14Z","closed_at":"2024-07-22T10:28:10Z","author_association":"COLLABORATOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7057","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7057","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7057.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7057.patch","merged_at":"2024-07-22T10:28:10Z"},"body":null,"closed_by":{"login":"severo","id":1676121,"node_id":"MDQ6VXNlcjE2NzYxMjE=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/1676121?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/severo","html_url":"https:\/\/github.com\/severo","followers_url":"https:\/\/api.github.com\/users\/severo\/followers","following_url":"https:\/\/api.github.com\/users\/severo\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/severo\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/severo\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/severo\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/severo\/orgs","repos_url":"https:\/\/api.github.com\/users\/severo\/repos","events_url":"https:\/\/api.github.com\/users\/severo\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/severo\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7057\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7057\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7056","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7056\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7056\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7056\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7056","id":2422192257,"node_id":"PR_kwDODunzps52DgOu","number":7056,"title":"Make `BufferShuffledExamplesIterable` resumable","user":{"login":"yzhangcs","id":18402347,"node_id":"MDQ6VXNlcjE4NDAyMzQ3","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/18402347?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/yzhangcs","html_url":"https:\/\/github.com\/yzhangcs","followers_url":"https:\/\/api.github.com\/users\/yzhangcs\/followers","following_url":"https:\/\/api.github.com\/users\/yzhangcs\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/yzhangcs\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/yzhangcs\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/yzhangcs\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/yzhangcs\/orgs","repos_url":"https:\/\/api.github.com\/users\/yzhangcs\/repos","events_url":"https:\/\/api.github.com\/users\/yzhangcs\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/yzhangcs\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2024-07-22T07:50:02Z","updated_at":"2025-01-31T05:34:20Z","closed_at":"2025-01-31T05:34:19Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7056","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7056","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7056.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7056.patch","merged_at":null},"body":"This PR aims to implement a resumable `BufferShuffledExamplesIterable`.\r\nInstead of saving the entire buffer content, which is very memory-intensive, the newly implemented `BufferShuffledExamplesIterable` saves only the minimal state necessary for recovery, e.g., the random generator states and the state of the first example in the buffer dict.\r\n\r\nThe idea is that since the buffer size is limited, even if the entire buffer is discarded, we can rebuild it as long as the state of the oldest example is recorded. For buffer size $B$, the expected distance between when an example is pushed and when it is yielded is \r\n$d = \\sum_{k=1}^{\\infty} k\\frac{1}{B} (1 - \\frac{1}{B} )^{k-1} =B$.\r\nSimulation experiments support these claims:\r\n```py\r\nfrom random import randint\r\n\r\nBUFFER_SIZE = 1024\r\n\r\ndists = []\r\nbuffer = []\r\nfor i in range(10000000):\r\n if i < BUFFER_SIZE:\r\n buffer.append(i)\r\n else:\r\n index = randint(0, BUFFER_SIZE - 1)\r\n dists.append(i - buffer[index])\r\n buffer[index] = i\r\n\r\nprint(f\"MIN DIST: {min(dists)}\\nMAX DIST: {max(dists)}\\nAVG DIST: {sum(dists) \/ len(dists):.2f}\\n\")\r\n```\r\nwhich produces the following output:\r\n```py\r\nMIN DIST: 1\r\nMAX DIST: 15136\r\nAVG DIST: 1023.95\r\n\r\n```\r\nThe overall time for reconstructing the buffer and recovery should not be too long.\r\nThe following code mimics the cases of resuming online tokenization by `datasets` and `StatefulDataLoader` under distributed scenarios, \r\n\r\n```py\r\nimport pickle\r\nimport time\r\nfrom itertools import chain\r\nfrom typing import Any, Dict, List\r\n\r\nimport torch\r\nfrom datasets import load_dataset\r\nfrom torchdata.stateful_dataloader import StatefulDataLoader\r\nfrom tqdm import tqdm\r\nfrom transformers import AutoTokenizer, DataCollatorForLanguageModeling\r\n\r\ntokenizer = AutoTokenizer.from_pretrained('fla-hub\/gla-1.3B-100B')\r\ntokenizer.pad_token = tokenizer.eos_token\r\ndata_collator = DataCollatorForLanguageModeling(tokenizer=tokenizer, mlm=False)\r\n\r\ntorch.manual_seed(42)\r\n\r\n\r\ndef tokenize(examples: Dict[str, List[Any]]) -> Dict[str, List[List[int]]]:\r\n input_ids = tokenizer(examples['text'])['input_ids']\r\n input_ids = list(chain(*input_ids))\r\n total_length = len(input_ids)\r\n chunk_size = 2048\r\n total_length = (total_length \/\/ chunk_size) * chunk_size\r\n # the last chunk smaller than chunk_size will be discarded\r\n return {'input_ids': [input_ids[i: i+chunk_size] for i in range(0, total_length, chunk_size)]}\r\n\r\n\r\nbatch_size = 16\r\nnum_workers = 5\r\ncontext_length = 2048\r\nrank = 1\r\nworld_size = 32\r\nprefetch_factor = 2\r\nsteps = 2048\r\npath = 'fla-hub\/slimpajama-test'\r\ndataset = load_dataset(\r\n path=path,\r\n split='train',\r\n streaming=True,\r\n trust_remote_code=True\r\n)\r\ndataset = dataset.map(tokenize, batched=True, remove_columns=next(iter(dataset)).keys())\r\ndataset = dataset.shuffle(seed=42)\r\nloader = StatefulDataLoader(dataset=dataset,\r\n batch_size=batch_size,\r\n collate_fn=data_collator,\r\n num_workers=num_workers,\r\n persistent_workers=False,\r\n prefetch_factor=prefetch_factor)\r\nstart = time.time()\r\nfor i, batch in tqdm(enumerate(loader)):\r\n if i == 0:\r\n print(f'{i}\\n{batch[\"input_ids\"]}')\r\n if i == steps - 1:\r\n print(f'{i}\\n{batch[\"input_ids\"]}')\r\n state_dict = loader.state_dict()\r\n if i == steps:\r\n print(f'{i}\\n{batch[\"input_ids\"]}')\r\n break\r\nprint(f\"{time.time() - start:.2f}s elapsed\")\r\nprint(f\"{len(pickle.dumps(state_dict)) \/ 1024**2:.2f}MB states in total\")\r\nfor worker in state_dict['_snapshot']['_worker_snapshots'].keys():\r\n print(f\"{worker} {len(pickle.dumps(state_dict['_snapshot']['_worker_snapshots'][worker])) \/ 1024**2:.2f}MB\")\r\nprint(state_dict['_snapshot']['_worker_snapshots']['worker_0']['dataset_state'])\r\n\r\nloader = StatefulDataLoader(dataset=dataset,\r\n batch_size=batch_size,\r\n collate_fn=data_collator,\r\n num_workers=num_workers,\r\n persistent_workers=False,\r\n prefetch_factor=prefetch_factor)\r\nprint(\"Loading state dict\")\r\nloader.load_state_dict(state_dict)\r\nstart = time.time()\r\nfor batch in loader:\r\n print(batch['input_ids'])\r\n break\r\n\r\nprint(f\"{time.time() - start:.2f}s elapsed\")\r\n\r\n```\r\nand the outputs are\r\n```py\r\n0\r\ntensor([[ 909, 395, 19082, ..., 13088, 16232, 395],\r\n [ 601, 28705, 28770, ..., 28733, 923, 288],\r\n [21753, 15071, 13977, ..., 9369, 28723, 415],\r\n ...,\r\n [21763, 28751, 20300, ..., 28781, 28734, 4775],\r\n [ 354, 396, 10214, ..., 298, 429, 28770],\r\n [ 333, 6149, 28768, ..., 2773, 340, 351]])\r\n2047\r\ntensor([[28723, 415, 3889, ..., 272, 3065, 2609],\r\n [ 403, 3214, 3629, ..., 403, 21163, 16434],\r\n [28723, 13, 28749, ..., 28705, 28750, 28734],\r\n ...,\r\n [ 2778, 2251, 28723, ..., 354, 684, 429],\r\n [ 5659, 298, 1038, ..., 5290, 297, 22153],\r\n [ 938, 28723, 1537, ..., 9123, 28733, 12154]])\r\n2048\r\ntensor([[ 769, 278, 12531, ..., 28721, 19309, 28739],\r\n [ 415, 23347, 622, ..., 3937, 2426, 28725],\r\n [28745, 4345, 28723, ..., 338, 28725, 583],\r\n ...,\r\n [ 1670, 28709, 5809, ..., 28734, 28760, 393],\r\n [ 340, 1277, 624, ..., 325, 28790, 1329],\r\n [ 523, 1144, 3409, ..., 359, 359, 17422]])\r\n65.97s elapsed\r\n0.00MB states in total\r\nworker_0 0.00MB\r\nworker_1 0.00MB\r\nworker_2 0.00MB\r\nworker_3 0.00MB\r\nworker_4 0.00MB\r\n{'ex_iterable': {'ex_iterable': {'shard_idx': 0, 'shard_example_idx': 14000}, 'num_examples_since_previous_state': 166, 'previous_state_example_idx': 7394, 'previous_state': {'shard_idx': 0, 'shard_example_idx': 13000}}, 'num_taken': 6560, 'global_example_idx': 7560, 'buffer_state_dict': {'num_taken': 6560, 'global_example_idx': 356, 'index_offset': 0, 'first_state': {'ex_iterable': {'shard_idx': 0, 'shard_example_idx': 1000}, 'num_examples_since_previous_state': 356, 'previous_state_example_idx': 0, 'previous_state': {'shard_idx': 0, 'shard_example_idx': 0}}, 'bit_generator_state': {'state': {'state': 274674114334540486603088602300644985544, 'inc': 332724090758049132448979897138935081983}, 'bit_generator': 'PCG64', 'has_uint32': 0, 'uinteger': 0}}}\r\nLoading state dict\r\ntensor([[ 769, 278, 12531, ..., 28721, 19309, 28739],\r\n [ 415, 23347, 622, ..., 3937, 2426, 28725],\r\n [28745, 4345, 28723, ..., 338, 28725, 583],\r\n ...,\r\n [ 1670, 28709, 5809, ..., 28734, 28760, 393],\r\n [ 340, 1277, 624, ..., 325, 28790, 1329],\r\n [ 523, 1144, 3409, ..., 359, 359, 17422]])\r\n24.60s elapsed\r\n```\r\n\r\nNot sure if this PR complies with the `datasets` code style. Looking for your help @lhoestq, also very willing to further improve the code if any suggestions are given.\r\n","closed_by":{"login":"yzhangcs","id":18402347,"node_id":"MDQ6VXNlcjE4NDAyMzQ3","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/18402347?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/yzhangcs","html_url":"https:\/\/github.com\/yzhangcs","followers_url":"https:\/\/api.github.com\/users\/yzhangcs\/followers","following_url":"https:\/\/api.github.com\/users\/yzhangcs\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/yzhangcs\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/yzhangcs\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/yzhangcs\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/yzhangcs\/orgs","repos_url":"https:\/\/api.github.com\/users\/yzhangcs\/repos","events_url":"https:\/\/api.github.com\/users\/yzhangcs\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/yzhangcs\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7056\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7056\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7055","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7055\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7055\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7055\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7055","id":2421708891,"node_id":"I_kwDODunzps6QWFhb","number":7055,"title":"WebDataset with different prefixes are unsupported","user":{"login":"hlky","id":106811348,"node_id":"U_kgDOBl3P1A","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/106811348?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/hlky","html_url":"https:\/\/github.com\/hlky","followers_url":"https:\/\/api.github.com\/users\/hlky\/followers","following_url":"https:\/\/api.github.com\/users\/hlky\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/hlky\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/hlky\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/hlky\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/hlky\/orgs","repos_url":"https:\/\/api.github.com\/users\/hlky\/repos","events_url":"https:\/\/api.github.com\/users\/hlky\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/hlky\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2024-07-22T01:14:19Z","updated_at":"2024-07-24T13:26:30Z","closed_at":"2024-07-23T13:28:46Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nConsider a WebDataset with multiple images for each item where the number of images may vary: [example](https:\/\/huggingface.co\/datasets\/bigdata-pw\/fashion-150k)\r\n\r\nDue to this [code](https:\/\/github.com\/huggingface\/datasets\/blob\/87f4c2088854ff33e817e724e75179e9975c1b02\/src\/datasets\/packaged_modules\/webdataset\/webdataset.py#L76-L80) an error is given.\r\n```\r\nThe TAR archives of the dataset should be in WebDataset format, but the files in the archive don't share the same prefix or the same types.\r\n```\r\n\r\nThe purpose of this check is unclear because PyArrow supports different keys.\r\n\r\nRemoving the check allows the dataset to be loaded and there's no issue when iterating through the dataset.\r\n\r\n```\r\n>>> from datasets import load_dataset\r\n>>> path = \"shards\/*.tar\"\r\n>>> dataset = load_dataset(\"webdataset\", data_files={\"train\": path}, split=\"train\", streaming=True)\r\nResolving data files: 100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 152\/152 [00:00<00:00, 56458.93it\/s]\r\n>>> dataset\r\nIterableDataset({\r\n features: ['__key__', '__url__', '1.jpg', '2.jpg', '3.jpg', '4.jpg', 'json'],\r\n n_shards: 152\r\n})\r\n```\n\n### Steps to reproduce the bug\n\n```python\r\nfrom datasets import load_dataset\r\nload_dataset(\"bigdata-pw\/fashion-150k\")\r\n```\n\n### Expected behavior\n\nDataset loads without error\n\n### Environment info\n\n- `datasets` version: 2.20.0\r\n- Platform: Linux-5.14.0-467.el9.x86_64-x86_64-with-glibc2.34\r\n- Python version: 3.9.19\r\n- `huggingface_hub` version: 0.23.4\r\n- PyArrow version: 17.0.0\r\n- Pandas version: 2.2.2\r\n- `fsspec` version: 2024.5.0","closed_by":{"login":"hlky","id":106811348,"node_id":"U_kgDOBl3P1A","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/106811348?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/hlky","html_url":"https:\/\/github.com\/hlky","followers_url":"https:\/\/api.github.com\/users\/hlky\/followers","following_url":"https:\/\/api.github.com\/users\/hlky\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/hlky\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/hlky\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/hlky\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/hlky\/orgs","repos_url":"https:\/\/api.github.com\/users\/hlky\/repos","events_url":"https:\/\/api.github.com\/users\/hlky\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/hlky\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7055\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7055\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7054","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7054\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7054\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7054\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7054","id":2418548995,"node_id":"PR_kwDODunzps514T1f","number":7054,"title":"Add batching to `IterableDataset`","user":{"login":"lappemic","id":61876623,"node_id":"MDQ6VXNlcjYxODc2NjIz","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/61876623?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lappemic","html_url":"https:\/\/github.com\/lappemic","followers_url":"https:\/\/api.github.com\/users\/lappemic\/followers","following_url":"https:\/\/api.github.com\/users\/lappemic\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lappemic\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lappemic\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lappemic\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lappemic\/orgs","repos_url":"https:\/\/api.github.com\/users\/lappemic\/repos","events_url":"https:\/\/api.github.com\/users\/lappemic\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lappemic\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2024-07-19T10:11:47Z","updated_at":"2024-07-23T13:25:13Z","closed_at":"2024-07-23T10:34:28Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7054","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7054","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7054.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7054.patch","merged_at":"2024-07-23T10:34:28Z"},"body":"I've taken a try at implementing a batched `IterableDataset` as requested in issue #6279. This PR adds a new `BatchedExamplesIterable` class and a `.batch()` method to the `IterableDataset` class.\r\n\r\nThe main changes are:\r\n1. A new `BatchedExamplesIterable` that groups examples into batches.\r\n2. A `.batch()` method for `IterableDataset` to easily create batched versions.\r\n3. Support for shuffling and sharding to work with PyTorch DataLoader and multiple workers.\r\n\r\nI'm not sure if this is exactly what you had in mind and also have not fully tested it atm, so I'd really appreciate your feedback. Does this seem like it's heading in the right direction? I'm happy to make any changes or explore different approaches if needed.\r\n\r\nPinging @lhoestq ","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7054\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7054\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7053","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7053\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7053\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7053\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7053","id":2416423791,"node_id":"I_kwDODunzps6QB7Nv","number":7053,"title":"Datasets.datafiles resolve_pattern `TypeError: can only concatenate tuple (not \"str\") to tuple`","user":{"login":"MatthewYZhang","id":48289218,"node_id":"MDQ6VXNlcjQ4Mjg5MjE4","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/48289218?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/MatthewYZhang","html_url":"https:\/\/github.com\/MatthewYZhang","followers_url":"https:\/\/api.github.com\/users\/MatthewYZhang\/followers","following_url":"https:\/\/api.github.com\/users\/MatthewYZhang\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/MatthewYZhang\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/MatthewYZhang\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/MatthewYZhang\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/MatthewYZhang\/orgs","repos_url":"https:\/\/api.github.com\/users\/MatthewYZhang\/repos","events_url":"https:\/\/api.github.com\/users\/MatthewYZhang\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/MatthewYZhang\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":2,"created_at":"2024-07-18T13:42:35Z","updated_at":"2024-07-18T15:17:42Z","closed_at":"2024-07-18T15:16:18Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nin data_files.py, line 332, \r\n`fs, _, _ = get_fs_token_paths(pattern, storage_options=storage_options)`\r\nIf we run the code on AWS, as fs.protocol will be a tuple like: `('file', 'local')`\r\nSo, `isinstance(fs.protocol, str) == False` and\r\n`protocol_prefix = fs.protocol + \":\/\/\" if fs.protocol != \"file\" else \"\"` will raise \r\n`TypeError: can only concatenate tuple (not \"str\") to tuple`.\n\n### Steps to reproduce the bug\n\nSteps to reproduce:\r\n1. Run on a cloud server like AWS,\r\n2. `import datasets.data_files as datafile`\r\n3. datafile.resolve_pattern('path\/to\/dataset', '.')\r\n4. `TypeError: can only concatenate tuple (not \"str\") to tuple`\n\n### Expected behavior\n\nShould return path of the dataset, with fs.protocol at the beginning\n\n### Environment info\n\n- `datasets` version: 2.14.0\r\n- Platform: Linux-3.10.0-1160.119.1.el7.x86_64-x86_64-with-glibc2.17\r\n- Python version: 3.8.19\r\n- Huggingface_hub version: 0.23.5\r\n- PyArrow version: 16.1.0\r\n- Pandas version: 1.1.5","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7053\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7053\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7052","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7052\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7052\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7052\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7052","id":2411682730,"node_id":"PR_kwDODunzps51iuop","number":7052,"title":"Adding `Music` feature for symbolic music modality (MIDI, abc)","user":{"login":"Natooz","id":56734983,"node_id":"MDQ6VXNlcjU2NzM0OTgz","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/56734983?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Natooz","html_url":"https:\/\/github.com\/Natooz","followers_url":"https:\/\/api.github.com\/users\/Natooz\/followers","following_url":"https:\/\/api.github.com\/users\/Natooz\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Natooz\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Natooz\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Natooz\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Natooz\/orgs","repos_url":"https:\/\/api.github.com\/users\/Natooz\/repos","events_url":"https:\/\/api.github.com\/users\/Natooz\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Natooz\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-07-16T17:26:04Z","updated_at":"2024-07-29T06:47:55Z","closed_at":"2024-07-29T06:47:55Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":true,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7052","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7052","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7052.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7052.patch","merged_at":null},"body":"\u26a0\ufe0f (WIP) \u26a0\ufe0f\r\n\r\n### What this PR does\r\n\r\nThis PR adds a `Music` feature for the symbolic music modality, in particular [MIDI](https:\/\/en.wikipedia.org\/wiki\/Musical_Instrument_Digital_Interface) and [abc](https:\/\/en.wikipedia.org\/wiki\/ABC_notation) files.\r\n\r\n###\u00a0Motivations\r\n\r\nThese two file formats are widely used in the [Music Information Retrieval (MIR)](https:\/\/en.wikipedia.org\/wiki\/Music_information_retrieval) for tasks such as music generation, music transcription, music synthesis or music transcription. Having a dedicated feature in the datasets library would allow to both encourage researchers to share datasets of this modality as well as making them more easily usable for end users, benefitting from the perks of the library.\r\n\r\nThese file formats are supported by [symusic](https:\/\/github.com\/Yikai-Liao\/symusic), a lightweight Python library with C bindings (using nanobind) allowing to efficiently read, write and manipulate them. The library is actively developed, and can in the future also implement other file formats such as [musicXML](https:\/\/en.wikipedia.org\/wiki\/MusicXML). As such, this PR relies on it.\r\n\r\nThe music data can then easily be tokenized with appropriate tokenizers such as [MidiTok](https:\/\/github.com\/Natooz\/MidiTok) or converted to pianorolls matrices by symusic.\r\n\r\n**Jul 16th 2024:**\r\n\r\n* the tests for the `Music` feature are currently failing due to non-supported access to the LazyBatch in `test_dataset_with_music_feature_map` and `test_dataset_with_music_feature_map_resample_music` (see TODOs). I am a beginner with pyArrow, I'll take any advice to make this work;\r\n* additional tests including the `Music` feature with parquet and WebDataset should be implemented. As of right now, I am waiting for your feedback before taking further steps;\r\n* a `MusicFolder` should also be implemented to comply with the usages of the `Image` and `Audio` features, waiting for your feedback too.\r\n\r\nCCing @lhoestq and @albertvillanova ","closed_by":{"login":"Natooz","id":56734983,"node_id":"MDQ6VXNlcjU2NzM0OTgz","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/56734983?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Natooz","html_url":"https:\/\/github.com\/Natooz","followers_url":"https:\/\/api.github.com\/users\/Natooz\/followers","following_url":"https:\/\/api.github.com\/users\/Natooz\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Natooz\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Natooz\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Natooz\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Natooz\/orgs","repos_url":"https:\/\/api.github.com\/users\/Natooz\/repos","events_url":"https:\/\/api.github.com\/users\/Natooz\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Natooz\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7052\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7052\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7051","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7051\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7051\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7051\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7051","id":2409353929,"node_id":"I_kwDODunzps6Pm9LJ","number":7051,"title":"How to set_epoch with interleave_datasets?","user":{"login":"jonathanasdf","id":511073,"node_id":"MDQ6VXNlcjUxMTA3Mw==","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/511073?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/jonathanasdf","html_url":"https:\/\/github.com\/jonathanasdf","followers_url":"https:\/\/api.github.com\/users\/jonathanasdf\/followers","following_url":"https:\/\/api.github.com\/users\/jonathanasdf\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/jonathanasdf\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/jonathanasdf\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/jonathanasdf\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/jonathanasdf\/orgs","repos_url":"https:\/\/api.github.com\/users\/jonathanasdf\/repos","events_url":"https:\/\/api.github.com\/users\/jonathanasdf\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/jonathanasdf\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2024-07-15T18:24:52Z","updated_at":"2024-08-05T20:58:04Z","closed_at":"2024-08-05T20:58:04Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"Let's say I have dataset A which has 100k examples, and dataset B which has 100m examples.\r\n\r\nI want to train on an interleaved dataset of A+B, with stopping_strategy='all_exhausted' so dataset B doesn't repeat any examples. But every time A is exhausted I want it to be reshuffled (eg. calling set_epoch)\r\n\r\nOf course I want to interleave as IterableDatasets \/ streaming mode so B doesn't have to get tokenized completely at the start.\r\n\r\nHow could I achieve this? I was thinking something like, if I wrap dataset A in some new IterableDataset with from_generator() and manually call set_epoch before interleaving it? But I'm not sure how to keep the number of shards in that dataset...\r\n\r\nSomething like\r\n\r\n```\r\ndataset_a = load_dataset(...)\r\ndataset_b = load_dataset(...)\r\n\r\ndef epoch_shuffled_dataset(ds):\r\n # How to make this maintain the number of shards in ds??\r\n for epoch in itertools.count():\r\n ds.set_epoch(epoch)\r\n yield from iter(ds)\r\n\r\nshuffled_dataset_a = IterableDataset.from_generator(epoch_shuffled_dataset, gen_kwargs={'ds': dataset_a})\r\ninterleaved = interleave_datasets([shuffled_dataset_a, dataset_b], probs, stopping_strategy='all_exhausted')\r\n```","closed_by":{"login":"jonathanasdf","id":511073,"node_id":"MDQ6VXNlcjUxMTA3Mw==","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/511073?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/jonathanasdf","html_url":"https:\/\/github.com\/jonathanasdf","followers_url":"https:\/\/api.github.com\/users\/jonathanasdf\/followers","following_url":"https:\/\/api.github.com\/users\/jonathanasdf\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/jonathanasdf\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/jonathanasdf\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/jonathanasdf\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/jonathanasdf\/orgs","repos_url":"https:\/\/api.github.com\/users\/jonathanasdf\/repos","events_url":"https:\/\/api.github.com\/users\/jonathanasdf\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/jonathanasdf\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7051\/reactions","total_count":2,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":2},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7051\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7050","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7050\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7050\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7050\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7050","id":2409048733,"node_id":"PR_kwDODunzps51Z1Yp","number":7050,"title":"add checkpoint and resume title in docs","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-07-15T15:38:04Z","updated_at":"2024-07-15T16:06:15Z","closed_at":"2024-07-15T15:59:56Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7050","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7050","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7050.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7050.patch","merged_at":"2024-07-15T15:59:56Z"},"body":"(minor) just to make it more prominent in the docs page for the soon-to-be-released new torchdata","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7050\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7050\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7049","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7049\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7049\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7049\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7049","id":2408514366,"node_id":"I_kwDODunzps6PjwM-","number":7049,"title":"Save nparray as list","user":{"login":"Sakurakdx","id":48399040,"node_id":"MDQ6VXNlcjQ4Mzk5MDQw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/48399040?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Sakurakdx","html_url":"https:\/\/github.com\/Sakurakdx","followers_url":"https:\/\/api.github.com\/users\/Sakurakdx\/followers","following_url":"https:\/\/api.github.com\/users\/Sakurakdx\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Sakurakdx\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Sakurakdx\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Sakurakdx\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Sakurakdx\/orgs","repos_url":"https:\/\/api.github.com\/users\/Sakurakdx\/repos","events_url":"https:\/\/api.github.com\/users\/Sakurakdx\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Sakurakdx\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2024-07-15T11:36:11Z","updated_at":"2024-07-18T11:33:34Z","closed_at":"2024-07-18T11:33:34Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nWhen I use the `map` function to convert images into features, datasets saves nparray as a list. Some people use the `set_format` function to convert the column back, but doesn't this lose precision?\n\n### Steps to reproduce the bug\n\nthe map function\r\n```python\r\ndef convert_image_to_features(inst, processor, image_dir):\r\n image_file = inst[\"image_url\"]\r\n file = image_file.split(\"\/\")[-1]\r\n image_path = os.path.join(image_dir, file)\r\n image = Image.open(image_path)\r\n image = image.convert(\"RGBA\")\r\n\r\n inst[\"pixel_values\"] = processor(images=image, return_tensors=\"np\")[\"pixel_values\"]\r\n return inst\r\n```\r\n\r\nmain function\r\n```python\r\nmap_fun = partial(\r\n convert_image_to_features, processor=processor, image_dir=image_dir\r\n )\r\nds = ds.map(map_fun, batched=False, num_proc=20)\r\nprint(type(ds[0][\"pixel_values\"])\r\n```\n\n### Expected behavior\n\n(type < list>) \n\n### Environment info\n\n- `datasets` version: 2.16.1\r\n- Platform: Linux-4.19.91-009.ali4000.alios7.x86_64-x86_64-with-glibc2.35\r\n- Python version: 3.11.5\r\n- `huggingface_hub` version: 0.23.4\r\n- PyArrow version: 14.0.2\r\n- Pandas version: 2.1.4\r\n- `fsspec` version: 2023.10.0","closed_by":{"login":"Sakurakdx","id":48399040,"node_id":"MDQ6VXNlcjQ4Mzk5MDQw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/48399040?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Sakurakdx","html_url":"https:\/\/github.com\/Sakurakdx","followers_url":"https:\/\/api.github.com\/users\/Sakurakdx\/followers","following_url":"https:\/\/api.github.com\/users\/Sakurakdx\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Sakurakdx\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Sakurakdx\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Sakurakdx\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Sakurakdx\/orgs","repos_url":"https:\/\/api.github.com\/users\/Sakurakdx\/repos","events_url":"https:\/\/api.github.com\/users\/Sakurakdx\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Sakurakdx\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7049\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7049\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7048","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7048\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7048\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7048\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7048","id":2408487547,"node_id":"I_kwDODunzps6Pjpp7","number":7048,"title":"ImportError: numpy.core.multiarray when using `filter`","user":{"login":"kamilakesbi","id":45195979,"node_id":"MDQ6VXNlcjQ1MTk1OTc5","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/45195979?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/kamilakesbi","html_url":"https:\/\/github.com\/kamilakesbi","followers_url":"https:\/\/api.github.com\/users\/kamilakesbi\/followers","following_url":"https:\/\/api.github.com\/users\/kamilakesbi\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/kamilakesbi\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/kamilakesbi\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/kamilakesbi\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/kamilakesbi\/orgs","repos_url":"https:\/\/api.github.com\/users\/kamilakesbi\/repos","events_url":"https:\/\/api.github.com\/users\/kamilakesbi\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/kamilakesbi\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2024-07-15T11:21:04Z","updated_at":"2024-07-16T10:11:25Z","closed_at":"2024-07-16T10:11:25Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI can't apply the filter method on my dataset. \n\n### Steps to reproduce the bug\n\nThe following snippet generates a bug: \r\n\r\n```python\r\nfrom datasets import load_dataset \r\n\r\nami = load_dataset('kamilakesbi\/ami', 'ihm')\r\n\r\nami['train'].filter(\r\n lambda example: example[\"file_name\"] == 'EN2001a'\r\n)\r\n```\r\n\r\nI get the following error: \r\n\r\n`ImportError: numpy.core.multiarray failed to import (auto-generated because you didn't call 'numpy.import_array()' after cimporting numpy; use 'numpy._import_array' to disable if you are certain you don't need it).`\n\n### Expected behavior\n\nIt should work properly! \n\n### Environment info\n\n- `datasets` version: 2.20.0\r\n- Platform: Linux-5.15.0-67-generic-x86_64-with-glibc2.35\r\n- Python version: 3.10.6\r\n- `huggingface_hub` version: 0.23.4\r\n- PyArrow version: 16.1.0\r\n- Pandas version: 2.2.2\r\n- `fsspec` version: 2024.5.0","closed_by":{"login":"kamilakesbi","id":45195979,"node_id":"MDQ6VXNlcjQ1MTk1OTc5","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/45195979?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/kamilakesbi","html_url":"https:\/\/github.com\/kamilakesbi","followers_url":"https:\/\/api.github.com\/users\/kamilakesbi\/followers","following_url":"https:\/\/api.github.com\/users\/kamilakesbi\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/kamilakesbi\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/kamilakesbi\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/kamilakesbi\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/kamilakesbi\/orgs","repos_url":"https:\/\/api.github.com\/users\/kamilakesbi\/repos","events_url":"https:\/\/api.github.com\/users\/kamilakesbi\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/kamilakesbi\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7048\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7048\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7047","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7047\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7047\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7047\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7047","id":2406495084,"node_id":"I_kwDODunzps6PcDNs","number":7047,"title":"Save Dataset as Sharded Parquet ","user":{"login":"tom-p-reichel","id":43631024,"node_id":"MDQ6VXNlcjQzNjMxMDI0","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/43631024?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/tom-p-reichel","html_url":"https:\/\/github.com\/tom-p-reichel","followers_url":"https:\/\/api.github.com\/users\/tom-p-reichel\/followers","following_url":"https:\/\/api.github.com\/users\/tom-p-reichel\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/tom-p-reichel\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/tom-p-reichel\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/tom-p-reichel\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/tom-p-reichel\/orgs","repos_url":"https:\/\/api.github.com\/users\/tom-p-reichel\/repos","events_url":"https:\/\/api.github.com\/users\/tom-p-reichel\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/tom-p-reichel\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-07-12T23:47:51Z","updated_at":"2024-07-17T12:07:08Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\r\n\r\n`to_parquet` currently saves the dataset as one massive, monolithic parquet file, rather than as several small parquet files. It should shard large datasets automatically.\r\n\r\n### Motivation\r\n\r\nThis default behavior makes me very sad because a program I ran for 6 hours saved its results using `to_parquet`, putting the entire billion+ row dataset into a 171 GB *single shard parquet file* which pyarrow, apache spark, etc. all cannot work with without completely exhausting the memory of my system. I was previously able to work with larger-than-memory parquet files, but not this one. I *assume* the reason why this is happening is because it is a single shard. Making sharding the default behavior puts datasets in parity with other frameworks, such as spark, which automatically shard when a large dataset is saved as parquet. \r\n\r\n### Your contribution\r\n\r\nI could change the logic here https:\/\/github.com\/huggingface\/datasets\/blob\/bf6f41e94d9b2f1c620cf937a2e85e5754a8b960\/src\/datasets\/io\/parquet.py#L109-L158\r\nto use `pyarrow.dataset.write_dataset`, which seems to support sharding, or periodically open new files. We would only shard if the user passed in a path rather than file handle. ","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7047\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7047\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7046","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7046\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7046\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7046\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7046","id":2405485582,"node_id":"PR_kwDODunzps51N05n","number":7046,"title":"Support librosa and numpy 2.0 for Python 3.10","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-07-12T12:42:47Z","updated_at":"2024-07-12T13:04:40Z","closed_at":"2024-07-12T12:58:17Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7046","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7046","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7046.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7046.patch","merged_at":"2024-07-12T12:58:17Z"},"body":"Support librosa and numpy 2.0 for Python 3.10 by installing soxr 0.4.0b1 pre-release:\r\n- https:\/\/github.com\/dofuuz\/python-soxr\/releases\/tag\/v0.4.0b1\r\n- https:\/\/github.com\/dofuuz\/python-soxr\/issues\/28","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7046\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7046\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7045","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7045\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7045\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7045\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7045","id":2405447858,"node_id":"PR_kwDODunzps51Nsie","number":7045,"title":"Fix tensorflow min version depending on Python version","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-07-12T12:20:23Z","updated_at":"2024-07-12T12:38:53Z","closed_at":"2024-07-12T12:33:00Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7045","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7045","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7045.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7045.patch","merged_at":"2024-07-12T12:33:00Z"},"body":"Fix tensorflow min version depending on Python version.\r\n\r\nRelated to:\r\n- #6991","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7045\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7045\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7044","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7044\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7044\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7044\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7044","id":2405002987,"node_id":"PR_kwDODunzps51MLbh","number":7044,"title":"Mark tests that require librosa","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-07-12T08:06:59Z","updated_at":"2024-07-12T09:06:32Z","closed_at":"2024-07-12T09:00:09Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7044","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7044","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7044.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7044.patch","merged_at":"2024-07-12T09:00:09Z"},"body":"Mark tests that require `librosa`.\r\n\r\nNote that `librosa` is an optional dependency (installed with `audio` option) and we should be able to test environments without that library installed. This is the case if we want to test Numpy 2.0, which is currently incompatible with `librosa` due to its dependency on `soxr`:\r\n- https:\/\/github.com\/dofuuz\/python-soxr\/issues\/28","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7044\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7044\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7043","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7043\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7043\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7043\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7043","id":2404951714,"node_id":"PR_kwDODunzps51MAN0","number":7043,"title":"Add decorator as explicit test dependency","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-07-12T07:35:23Z","updated_at":"2024-07-12T08:12:55Z","closed_at":"2024-07-12T08:07:10Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7043","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7043","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7043.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7043.patch","merged_at":"2024-07-12T08:07:10Z"},"body":"Add decorator as explicit test dependency.\r\n\r\nWe use `decorator` library in our CI test since PR:\r\n- #4845\r\n\r\nHowever we did not add it as an explicit test requirement, and we depended on it indirectly through other libraries' dependencies.\r\n\r\nI discovered this while testing Numpy 2.0 and removing incompatible libraries.","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7043\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7043\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7042","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7042\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7042\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7042\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7042","id":2404605836,"node_id":"PR_kwDODunzps51K8CM","number":7042,"title":"Improved the tutorial by adding a link for loading datasets","user":{"login":"AmboThom","id":41874659,"node_id":"MDQ6VXNlcjQxODc0NjU5","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/41874659?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/AmboThom","html_url":"https:\/\/github.com\/AmboThom","followers_url":"https:\/\/api.github.com\/users\/AmboThom\/followers","following_url":"https:\/\/api.github.com\/users\/AmboThom\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/AmboThom\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/AmboThom\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/AmboThom\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/AmboThom\/orgs","repos_url":"https:\/\/api.github.com\/users\/AmboThom\/repos","events_url":"https:\/\/api.github.com\/users\/AmboThom\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/AmboThom\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-07-12T03:49:54Z","updated_at":"2024-08-15T10:07:44Z","closed_at":"2024-08-15T10:01:59Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7042","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7042","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7042.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7042.patch","merged_at":"2024-08-15T10:01:59Z"},"body":"Improved the tutorial by letting readers know about loading datasets with common files and including a link. I left the local files section alone because the methods were already listed with code snippets.","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7042\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7042\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7041","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7041\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7041\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7041\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7041","id":2404576038,"node_id":"I_kwDODunzps6PUusm","number":7041,"title":"`sort` after `filter` unreasonably slow","user":{"login":"Tobin-rgb","id":56711045,"node_id":"MDQ6VXNlcjU2NzExMDQ1","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/56711045?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Tobin-rgb","html_url":"https:\/\/github.com\/Tobin-rgb","followers_url":"https:\/\/api.github.com\/users\/Tobin-rgb\/followers","following_url":"https:\/\/api.github.com\/users\/Tobin-rgb\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Tobin-rgb\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Tobin-rgb\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Tobin-rgb\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Tobin-rgb\/orgs","repos_url":"https:\/\/api.github.com\/users\/Tobin-rgb\/repos","events_url":"https:\/\/api.github.com\/users\/Tobin-rgb\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Tobin-rgb\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-07-12T03:29:27Z","updated_at":"2025-04-29T09:49:25Z","closed_at":"2025-04-29T09:49:25Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nas the tittle says ...\n\n### Steps to reproduce the bug\n\n`sort` seems to be normal.\r\n\r\n```python\r\nfrom datasets import Dataset\r\nimport random\r\n\r\nnums = [{\"k\":random.choice(range(0,1000))} for _ in range(100000)]\r\n\r\nds = Dataset.from_list(nums)\r\n\r\nprint(\"start sort\")\r\n\r\nds = ds.sort(\"k\")\r\n\r\nprint(\"finish sort\")\r\n```\r\n\r\nbut `sort` after `filter` is extremely slow.\r\n\r\n```python\r\nfrom datasets import Dataset\r\nimport random\r\n\r\nnums = [{\"k\":random.choice(range(0,1000))} for _ in range(100000)]\r\n\r\nds = Dataset.from_list(nums)\r\n\r\nds = ds.filter(lambda x:x > 100, input_columns=\"k\")\r\n\r\nprint(\"start sort\")\r\n\r\nds = ds.sort(\"k\")\r\n\r\nprint(\"finish sort\")\r\n```\r\n\n\n### Expected behavior\n\nIs this a bug, or is it a misuse of the `sort` function?\n\n### Environment info\n\n- `datasets` version: 2.20.0\r\n- Platform: Linux-3.10.0-1127.19.1.el7.x86_64-x86_64-with-glibc2.17\r\n- Python version: 3.10.13\r\n- `huggingface_hub` version: 0.23.4\r\n- PyArrow version: 16.1.0\r\n- Pandas version: 2.2.2\r\n- `fsspec` version: 2023.10.0","closed_by":{"login":"Tobin-rgb","id":56711045,"node_id":"MDQ6VXNlcjU2NzExMDQ1","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/56711045?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Tobin-rgb","html_url":"https:\/\/github.com\/Tobin-rgb","followers_url":"https:\/\/api.github.com\/users\/Tobin-rgb\/followers","following_url":"https:\/\/api.github.com\/users\/Tobin-rgb\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Tobin-rgb\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Tobin-rgb\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Tobin-rgb\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Tobin-rgb\/orgs","repos_url":"https:\/\/api.github.com\/users\/Tobin-rgb\/repos","events_url":"https:\/\/api.github.com\/users\/Tobin-rgb\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Tobin-rgb\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7041\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7041\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7040","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7040\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7040\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7040\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7040","id":2402918335,"node_id":"I_kwDODunzps6POZ-_","number":7040,"title":"load `streaming=True` dataset with downloaded cache","user":{"login":"wanghaoyucn","id":39429965,"node_id":"MDQ6VXNlcjM5NDI5OTY1","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/39429965?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/wanghaoyucn","html_url":"https:\/\/github.com\/wanghaoyucn","followers_url":"https:\/\/api.github.com\/users\/wanghaoyucn\/followers","following_url":"https:\/\/api.github.com\/users\/wanghaoyucn\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/wanghaoyucn\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/wanghaoyucn\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/wanghaoyucn\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/wanghaoyucn\/orgs","repos_url":"https:\/\/api.github.com\/users\/wanghaoyucn\/repos","events_url":"https:\/\/api.github.com\/users\/wanghaoyucn\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/wanghaoyucn\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-07-11T11:14:13Z","updated_at":"2024-07-11T14:11:56Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nWe build a dataset which contains several hdf5 files and write a script using `h5py` to generate the dataset. The hdf5 files are large and the processed dataset cache takes more disk space. So we hope to try streaming iterable dataset. Unfortunately, `h5py` can't convert a remote URL into a hdf5 file descriptor. So we use `fsspec` as an interface like below:\r\n\r\n```python\r\ndef _generate_examples(self, filepath, split):\r\n for file in filepath:\r\n with fsspec.open(file, \"rb\") as fs:\r\n with h5py.File(fs, \"r\") as fp:\r\n # for event_id in sorted(list(fp.keys())):\r\n event_ids = list(fp.keys())\r\n ......\r\n```\n\n### Steps to reproduce the bug\n\nThe `fsspec` works, but it takes 10+ min to print the first 10 examples, which is even longer than the downloading time. I'm not sure if it just caches the whole hdf5 file and generates the examples.\n\n### Expected behavior\n\nSo does the following make sense so far?\r\n\r\n1. download the files\r\n```python\r\ndataset = datasets.load('path\/to\/myscripts', split=\"train\", name=\"event\", trust_remote_code=True)\r\n```\r\n\r\n2. load the iterable dataset faster (using the raw file cache at path `.cache\/huggingface\/datasets\/downloads`)\r\n```python\r\ndataset = datasets.load('path\/to\/myscripts', split=\"train\", name=\"event\", trust_remote_code=True, streaming=true)\r\n```\r\n\r\nI made some tests, but the code above can't get the expected result. I'm not sure if this is supported. I also find the issue #6327 . It seemed similar to mine, but I couldn't find a solution.\n\n### Environment info\n\n- `datasets` = 2.18.0\r\n- `h5py` = 3.10.0\r\n- `fsspec` = 2023.10.0","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7040\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7040\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7039","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7039\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7039\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7039\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7039","id":2402403390,"node_id":"PR_kwDODunzps51DgCY","number":7039,"title":"Fix export to JSON when dataset larger than batch size","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2024-07-11T06:52:22Z","updated_at":"2024-09-28T06:10:00Z","closed_at":null,"author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":true,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7039","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7039","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7039.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7039.patch","merged_at":null},"body":"Fix export to JSON (`lines=False`) when dataset larger than batch size.\r\n\r\nFix #7037.","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7039\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7039\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7037","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7037\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7037\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7037\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7037","id":2400192419,"node_id":"I_kwDODunzps6PEAej","number":7037,"title":"A bug of Dataset.to_json() function","user":{"login":"LinglingGreat","id":26499566,"node_id":"MDQ6VXNlcjI2NDk5NTY2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/26499566?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/LinglingGreat","html_url":"https:\/\/github.com\/LinglingGreat","followers_url":"https:\/\/api.github.com\/users\/LinglingGreat\/followers","following_url":"https:\/\/api.github.com\/users\/LinglingGreat\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/LinglingGreat\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/LinglingGreat\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/LinglingGreat\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/LinglingGreat\/orgs","repos_url":"https:\/\/api.github.com\/users\/LinglingGreat\/repos","events_url":"https:\/\/api.github.com\/users\/LinglingGreat\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/LinglingGreat\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892857,"node_id":"MDU6TGFiZWwxOTM1ODkyODU3","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/bug","name":"bug","color":"d73a4a","default":true,"description":"Something isn't working"}],"state":"open","locked":false,"assignee":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":2,"created_at":"2024-07-10T09:11:22Z","updated_at":"2024-09-22T13:16:07Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nWhen using the Dataset.to_json() function, an unexpected error occurs if the parameter is set to lines=False. The stored data should be in the form of a list, but it actually turns into multiple lists, which causes an error when reading the data again.\r\nThe reason is that to_json() writes to the file in several segments based on the batch size. This is not a problem when lines=True, but it is incorrect when lines=False, because writing in several times will produce multiple lists(when len(dataset) > batch_size).\n\n### Steps to reproduce the bug\n\ntry this code:\r\n```python\r\nfrom datasets import load_dataset\r\nimport json\r\n\r\ntrain_dataset = load_dataset(\"Anthropic\/hh-rlhf\", data_dir=\"harmless-base\")[\"train\"]\r\noutput_path = \".\/harmless-base_hftojs.json\"\r\nprint(len(train_dataset))\r\ntrain_dataset.to_json(output_path, lines=False, force_ascii=False, indent=2)\r\n\r\nwith open(output_path, encoding=\"utf-8\") as f:\r\n data = json.loads(f.read())\r\n\r\n```\r\nit raise error: json.decoder.JSONDecodeError: Extra data: line 4003 column 1 (char 1373709)\r\n\r\nExtra square brackets have appeared here:\r\n\"image\"\r\n\n\n### Expected behavior\n\nThe code runs normally.\n\n### Environment info\n\ndatasets=2.20.0","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7037\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7037\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7036","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7036\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7036\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7036\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7036","id":2400035672,"node_id":"PR_kwDODunzps507bZk","number":7036,"title":"Fix doc generation when NamedSplit is used as parameter default value","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-07-10T07:58:46Z","updated_at":"2024-07-26T07:58:00Z","closed_at":"2024-07-26T07:51:52Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7036","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7036","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7036.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7036.patch","merged_at":"2024-07-26T07:51:52Z"},"body":"Fix doc generation when `NamedSplit` is used as parameter default value.\r\n\r\nFix #7035.","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7036\/reactions","total_count":1,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7036\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7035","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7035\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7035\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7035\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7035","id":2400021225,"node_id":"I_kwDODunzps6PDWrp","number":7035,"title":"Docs are not generated when a parameter defaults to a NamedSplit value","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":4296013012,"node_id":"LA_kwDODunzps8AAAABAA_01A","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/maintenance","name":"maintenance","color":"d4c5f9","default":false,"description":"Maintenance tasks"}],"state":"closed","locked":false,"assignee":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":0,"created_at":"2024-07-10T07:51:24Z","updated_at":"2024-07-26T07:51:53Z","closed_at":"2024-07-26T07:51:53Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"While generating the docs, we get an error when some parameter defaults to a `NamedSplit` value, like:\r\n```python\r\ndef call_function(split=Split.TRAIN):\r\n ...\r\n```\r\nThe error is: ValueError: Equality not supported between split train and \r\n\r\nSee: https:\/\/github.com\/huggingface\/datasets\/actions\/runs\/9869660902\/job\/27254359863?pr=7015\r\n```\r\nBuilding the MDX files: 97%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258b| 58\/60 [00:00<00:00, 91.94it\/s] \r\nTraceback (most recent call last):\r\n File \"\/home\/runner\/work\/datasets\/datasets\/.venv\/lib\/python3.10\/site-packages\/doc_builder\/build_doc.py\", line 197, in build_mdx_files\r\n content, new_anchors, source_files, errors = resolve_autodoc(\r\n File \"\/home\/runner\/work\/datasets\/datasets\/.venv\/lib\/python3.10\/site-packages\/doc_builder\/build_doc.py\", line 123, in resolve_autodoc\r\n doc = autodoc(\r\n File \"\/home\/runner\/work\/datasets\/datasets\/.venv\/lib\/python3.10\/site-packages\/doc_builder\/autodoc.py\", line 499, in autodoc\r\n method_doc, check = document_object(\r\n File \"\/home\/runner\/work\/datasets\/datasets\/.venv\/lib\/python3.10\/site-packages\/doc_builder\/autodoc.py\", line 395, in document_object\r\n signature = format_signature(obj)\r\n File \"\/home\/runner\/work\/datasets\/datasets\/.venv\/lib\/python3.10\/site-packages\/doc_builder\/autodoc.py\", line 126, in format_signature\r\n if param.default != inspect._empty:\r\n File \"\/home\/runner\/work\/datasets\/datasets\/.venv\/lib\/python3.10\/site-packages\/datasets\/splits.py\", line 136, in __ne__\r\n return not self.__eq__(other)\r\n File \"\/home\/runner\/work\/datasets\/datasets\/.venv\/lib\/python3.10\/site-packages\/datasets\/splits.py\", line 379, in __eq__\r\n raise ValueError(f\"Equality not supported between split {self} and {other}\")\r\nValueError: Equality not supported between split train and \r\n\r\nThe above exception was the direct cause of the following exception:\r\n\r\nTraceback (most recent call last):\r\n File \"\/home\/runner\/work\/datasets\/datasets\/.venv\/bin\/doc-builder\", line 8, in \r\n sys.exit(main())\r\n File \"\/home\/runner\/work\/datasets\/datasets\/.venv\/lib\/python3.10\/site-packages\/doc_builder\/commands\/doc_builder_cli.py\", line 47, in main\r\n args.func(args)\r\n File \"\/home\/runner\/work\/datasets\/datasets\/.venv\/lib\/python3.10\/site-packages\/doc_builder\/commands\/build.py\", line 102, in build_command\r\n build_doc(\r\n File \"\/home\/runner\/work\/datasets\/datasets\/.venv\/lib\/python3.10\/site-packages\/doc_builder\/build_doc.py\", line 367, in build_doc\r\n anchors_mapping, source_files_mapping = build_mdx_files(\r\n File \"\/home\/runner\/work\/datasets\/datasets\/.venv\/lib\/python3.10\/site-packages\/doc_builder\/build_doc.py\", line 230, in build_mdx_files\r\n raise type(e)(f\"There was an error when converting {file} to the MDX format.\\n\" + e.args[0]) from e\r\nValueError: There was an error when converting ..\/datasets\/docs\/source\/package_reference\/main_classes.mdx to the MDX format.\r\nEquality not supported between split train and \r\n```","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7035\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7035\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7034","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7034\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7034\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7034\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7034","id":2397525974,"node_id":"PR_kwDODunzps50y-ya","number":7034,"title":"chore: fix typos in docs","user":{"login":"hattizai","id":150505746,"node_id":"U_kgDOCPiJEg","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/150505746?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/hattizai","html_url":"https:\/\/github.com\/hattizai","followers_url":"https:\/\/api.github.com\/users\/hattizai\/followers","following_url":"https:\/\/api.github.com\/users\/hattizai\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/hattizai\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/hattizai\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/hattizai\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/hattizai\/orgs","repos_url":"https:\/\/api.github.com\/users\/hattizai\/repos","events_url":"https:\/\/api.github.com\/users\/hattizai\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/hattizai\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-07-09T08:35:05Z","updated_at":"2024-08-13T08:22:25Z","closed_at":"2024-08-13T08:16:22Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7034","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7034","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7034.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7034.patch","merged_at":"2024-08-13T08:16:22Z"},"body":null,"closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7034\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7034\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7033","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7033\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7033\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7033\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7033","id":2397419768,"node_id":"I_kwDODunzps6O5bj4","number":7033,"title":"`from_generator` does not allow to specify the split name","user":{"login":"pminervini","id":227357,"node_id":"MDQ6VXNlcjIyNzM1Nw==","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/227357?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/pminervini","html_url":"https:\/\/github.com\/pminervini","followers_url":"https:\/\/api.github.com\/users\/pminervini\/followers","following_url":"https:\/\/api.github.com\/users\/pminervini\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/pminervini\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/pminervini\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/pminervini\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/pminervini\/orgs","repos_url":"https:\/\/api.github.com\/users\/pminervini\/repos","events_url":"https:\/\/api.github.com\/users\/pminervini\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/pminervini\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-07-09T07:47:58Z","updated_at":"2024-07-26T12:56:16Z","closed_at":"2024-07-26T09:31:56Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI'm building train, dev, and test using `from_generator`; however, in all three cases, the logger prints `Generating train split:`\r\nIt's not possible to change the split name since it seems to be hardcoded: https:\/\/github.com\/huggingface\/datasets\/blob\/main\/src\/datasets\/packaged_modules\/generator\/generator.py\n\n### Steps to reproduce the bug\n\n```\r\nIn [1]: from datasets import Dataset\r\n\r\nIn [2]: def gen():\r\n ...: yield {\"pokemon\": \"bulbasaur\", \"type\": \"grass\"}\r\n ...: \r\n\r\nIn [3]: ds = Dataset.from_generator(gen)\r\nGenerating train split: 1 examples [00:00, 133.89 examples\/s]\r\n```\n\n### Expected behavior\n\nIt should be possible to specify any split name\n\n### Environment info\n\n- `datasets` version: 2.19.2\r\n- Platform: macOS-10.16-x86_64-i386-64bit\r\n- Python version: 3.8.5\r\n- `huggingface_hub` version: 0.23.3\r\n- PyArrow version: 15.0.0\r\n- Pandas version: 2.0.3\r\n- `fsspec` version: 2023.10.0","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7033\/reactions","total_count":1,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7033\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7032","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7032\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7032\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7032\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7032","id":2395531699,"node_id":"PR_kwDODunzps50sJTq","number":7032,"title":"Register `.zstd` extension for zstd-compressed files","user":{"login":"polinaeterna","id":16348744,"node_id":"MDQ6VXNlcjE2MzQ4NzQ0","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/16348744?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/polinaeterna","html_url":"https:\/\/github.com\/polinaeterna","followers_url":"https:\/\/api.github.com\/users\/polinaeterna\/followers","following_url":"https:\/\/api.github.com\/users\/polinaeterna\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/polinaeterna\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/polinaeterna\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/polinaeterna\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/polinaeterna\/orgs","repos_url":"https:\/\/api.github.com\/users\/polinaeterna\/repos","events_url":"https:\/\/api.github.com\/users\/polinaeterna\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/polinaeterna\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2024-07-08T12:39:50Z","updated_at":"2024-07-12T15:07:03Z","closed_at":"2024-07-12T15:07:03Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7032","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7032","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7032.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7032.patch","merged_at":null},"body":"For example, https:\/\/huggingface.co\/datasets\/mlfoundations\/dclm-baseline-1.0 dataset files have `.zstd` extension which is currently ignored (only `.zst` is registered).","closed_by":{"login":"polinaeterna","id":16348744,"node_id":"MDQ6VXNlcjE2MzQ4NzQ0","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/16348744?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/polinaeterna","html_url":"https:\/\/github.com\/polinaeterna","followers_url":"https:\/\/api.github.com\/users\/polinaeterna\/followers","following_url":"https:\/\/api.github.com\/users\/polinaeterna\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/polinaeterna\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/polinaeterna\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/polinaeterna\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/polinaeterna\/orgs","repos_url":"https:\/\/api.github.com\/users\/polinaeterna\/repos","events_url":"https:\/\/api.github.com\/users\/polinaeterna\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/polinaeterna\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7032\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7032\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7031","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7031\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7031\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7031\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7031","id":2395401692,"node_id":"I_kwDODunzps6Oxu3c","number":7031,"title":"CI quality is broken: use ruff check instead","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":0,"created_at":"2024-07-08T11:42:24Z","updated_at":"2024-07-08T11:47:29Z","closed_at":"2024-07-08T11:47:29Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"CI quality is broken: https:\/\/github.com\/huggingface\/datasets\/actions\/runs\/9838873879\/job\/27159697027\r\n```\r\nerror: `ruff ` has been removed. Use `ruff check ` instead.\r\n```","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7031\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7031\/timeline","performed_via_github_app":null,"state_reason":"not_planned","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7030","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7030\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7030\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7030\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7030","id":2393411631,"node_id":"I_kwDODunzps6OqJAv","number":7030,"title":"Add option to disable progress bar when reading a dataset (\"Loading dataset from disk\")","user":{"login":"yuvalkirstain","id":57996478,"node_id":"MDQ6VXNlcjU3OTk2NDc4","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/57996478?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/yuvalkirstain","html_url":"https:\/\/github.com\/yuvalkirstain","followers_url":"https:\/\/api.github.com\/users\/yuvalkirstain\/followers","following_url":"https:\/\/api.github.com\/users\/yuvalkirstain\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/yuvalkirstain\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/yuvalkirstain\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/yuvalkirstain\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/yuvalkirstain\/orgs","repos_url":"https:\/\/api.github.com\/users\/yuvalkirstain\/repos","events_url":"https:\/\/api.github.com\/users\/yuvalkirstain\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/yuvalkirstain\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-07-06T05:43:37Z","updated_at":"2024-07-13T14:35:59Z","closed_at":"2024-07-13T14:35:59Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\r\n\r\nAdd an option in load_from_disk to disable the progress bar even if the number of files is larger than 16.\r\n\r\n### Motivation\r\n\r\nI am reading a lot of datasets that it creates lots of logs.\r\n\r\n\"image\"\r\n\r\n\r\n### Your contribution\r\n\r\nSeems like an easy fix to make. I can create a PR if necessary.","closed_by":{"login":"yuvalkirstain","id":57996478,"node_id":"MDQ6VXNlcjU3OTk2NDc4","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/57996478?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/yuvalkirstain","html_url":"https:\/\/github.com\/yuvalkirstain","followers_url":"https:\/\/api.github.com\/users\/yuvalkirstain\/followers","following_url":"https:\/\/api.github.com\/users\/yuvalkirstain\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/yuvalkirstain\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/yuvalkirstain\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/yuvalkirstain\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/yuvalkirstain\/orgs","repos_url":"https:\/\/api.github.com\/users\/yuvalkirstain\/repos","events_url":"https:\/\/api.github.com\/users\/yuvalkirstain\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/yuvalkirstain\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7030\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7030\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7029","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7029\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7029\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7029\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7029","id":2391366696,"node_id":"I_kwDODunzps6OiVwo","number":7029,"title":"load_dataset on AWS lambda throws OSError(30, 'Read-only file system') error","user":{"login":"sugam-nexusflow","id":171606538,"node_id":"U_kgDOCjqCCg","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/171606538?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/sugam-nexusflow","html_url":"https:\/\/github.com\/sugam-nexusflow","followers_url":"https:\/\/api.github.com\/users\/sugam-nexusflow\/followers","following_url":"https:\/\/api.github.com\/users\/sugam-nexusflow\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/sugam-nexusflow\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/sugam-nexusflow\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/sugam-nexusflow\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/sugam-nexusflow\/orgs","repos_url":"https:\/\/api.github.com\/users\/sugam-nexusflow\/repos","events_url":"https:\/\/api.github.com\/users\/sugam-nexusflow\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/sugam-nexusflow\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-07-04T19:15:16Z","updated_at":"2024-07-17T12:44:03Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\r\n\r\nI'm using AWS lambda to run a python application. I run the `load_dataset` function with cache_dir=\"\/tmp\" and is still throws the OSError(30, 'Read-only file system') error. Is even updated all the HF envs to point to \/tmp dir but the issue still persists. I can confirm that the I can write to \/tmp directory. \r\n\r\n### Steps to reproduce the bug\r\n\r\n```python\r\nd = load_dataset(\r\n path=hugging_face_link,\r\n split=split,\r\n token=token,\r\n cache_dir=\"\/tmp\/hugging_face_cache\",\r\n )\r\n```\r\n\r\n### Expected behavior\r\n\r\nEverything written to the file system as part of the load_datasets function should be in the \/tmp directory. \r\n\r\n### Environment info\r\n\r\ndatasets version: 2.16.1\r\nPlatform: Linux-5.10.216-225.855.amzn2.x86_64-x86_64-with-glibc2.26\r\nPython version: 3.11.9\r\nhuggingface_hub version: 0.19.4\r\nPyArrow version: 16.1.0\r\nPandas version: 2.2.2\r\nfsspec version: 2023.10.0","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7029\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7029\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7028","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7028\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7028\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7028\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7028","id":2391077531,"node_id":"PR_kwDODunzps50dQ1w","number":7028,"title":"Fix ci","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-07-04T15:11:08Z","updated_at":"2024-07-04T15:26:35Z","closed_at":"2024-07-04T15:19:16Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7028","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7028","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7028.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7028.patch","merged_at":"2024-07-04T15:19:16Z"},"body":"...after last pr errors","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7028\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7028\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7027","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7027\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7027\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7027\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7027","id":2391013330,"node_id":"PR_kwDODunzps50dCsE","number":7027,"title":"Missing line from previous pr","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-07-04T14:34:29Z","updated_at":"2024-07-04T14:40:46Z","closed_at":"2024-07-04T14:34:36Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7027","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7027","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7027.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7027.patch","merged_at":"2024-07-04T14:34:36Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7027\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7027\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7026","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7026\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7026\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7026\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7026","id":2390983889,"node_id":"PR_kwDODunzps50c8Mf","number":7026,"title":"Fix check_library_imports","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-07-04T14:18:38Z","updated_at":"2024-07-04T14:28:36Z","closed_at":"2024-07-04T14:20:02Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7026","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7026","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7026.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7026.patch","merged_at":"2024-07-04T14:20:02Z"},"body":"move it to after the `trust_remote_code` check\r\n\r\nNote that it only affects local datasets that already exist on disk, not datasets loaded from HF directly","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7026\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7026\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7025","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7025\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7025\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7025\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7025","id":2390488546,"node_id":"PR_kwDODunzps50bSyD","number":7025,"title":"feat: support non streamable arrow file binary format","user":{"login":"kmehant","id":15800200,"node_id":"MDQ6VXNlcjE1ODAwMjAw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/15800200?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/kmehant","html_url":"https:\/\/github.com\/kmehant","followers_url":"https:\/\/api.github.com\/users\/kmehant\/followers","following_url":"https:\/\/api.github.com\/users\/kmehant\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/kmehant\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/kmehant\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/kmehant\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/kmehant\/orgs","repos_url":"https:\/\/api.github.com\/users\/kmehant\/repos","events_url":"https:\/\/api.github.com\/users\/kmehant\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/kmehant\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2024-07-04T10:11:12Z","updated_at":"2024-07-31T06:15:50Z","closed_at":"2024-07-31T06:09:31Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7025","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7025","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7025.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7025.patch","merged_at":"2024-07-31T06:09:31Z"},"body":"Support Arrow files (`.arrow`) that are in non streamable binary file formats.","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7025\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7025\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7024","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7024\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7024\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7024\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7024","id":2390141626,"node_id":"I_kwDODunzps6Odqq6","number":7024,"title":"Streaming dataset not returning data","user":{"login":"johnwee1","id":91670254,"node_id":"U_kgDOBXbG7g","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/91670254?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/johnwee1","html_url":"https:\/\/github.com\/johnwee1","followers_url":"https:\/\/api.github.com\/users\/johnwee1\/followers","following_url":"https:\/\/api.github.com\/users\/johnwee1\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/johnwee1\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/johnwee1\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/johnwee1\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/johnwee1\/orgs","repos_url":"https:\/\/api.github.com\/users\/johnwee1\/repos","events_url":"https:\/\/api.github.com\/users\/johnwee1\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/johnwee1\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-07-04T07:21:47Z","updated_at":"2024-07-04T07:21:47Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI'm deciding to post here because I'm still not sure what the issue is, or if I am using IterableDatasets wrongly.\r\nI'm following the guide on here https:\/\/huggingface.co\/learn\/cookbook\/en\/fine_tuning_code_llm_on_single_gpu pretty much to a tee and have verified that it works when I'm fine-tuning on the provided dataset.\r\n\r\nHowever, I'm doing some data preprocessing steps (filtering out entries), when I try to swap out the dataset for mine, it fails to train. However, I eventually fixed this by simply setting `stream=False` in `load_dataset`.\r\n\r\nCoud this be some sort of network \/ firewall issue I'm facing?\n\n### Steps to reproduce the bug\n\nI made a post with greater description about how I reproduced this problem before I found my workaround: https:\/\/discuss.huggingface.co\/t\/problem-with-custom-iterator-of-streaming-dataset-not-returning-anything\/94551\r\n\r\nHere is the problematic dataset snippet, which works when streaming=False (and with buffer keyword removed from shuffle)\r\n\r\n```\r\ncommitpackft = load_dataset(\r\n \"chargoddard\/commitpack-ft-instruct\", split=\"train\", streaming=True\r\n).filter(lambda example: example[\"language\"] == \"Python\")\r\n \r\n \r\ndef form_template(example):\r\n \"\"\"Forms a template for each example following the alpaca format for CommitPack\"\"\"\r\n example[\"content\"] = (\r\n \"### Human: \" + example[\"instruction\"] + \" \" + example[\"input\"] + \" ### Assistant: \" + example[\"output\"]\r\n )\r\n return example\r\n \r\n \r\ndataset = commitpackft.map(\r\n form_template,\r\n remove_columns=[\"id\", \"language\", \"license\", \"instruction\", \"input\", \"output\"],\r\n).shuffle(\r\n seed=42, buffer_size=10000\r\n) # remove everything since its all inside \"content\" now\r\nvalidation_data = dataset.take(4000)\r\ntrain_data = dataset.skip(4000)\r\n```\r\n\r\nThe annoying part about this is that it only fails during training and I don't know when it will fail, except that it always fails during evaluation.\n\n### Expected behavior\n\nThe expected behavior is that I should be able to get something from the iterator when called instead of getting nothing \/ stuck in a loop somewhere.\n\n### Environment info\n\n- `datasets` version: 2.20.0\r\n- Platform: Linux-5.4.0-121-generic-x86_64-with-glibc2.31\r\n- Python version: 3.11.7\r\n- `huggingface_hub` version: 0.23.4\r\n- PyArrow version: 16.1.0\r\n- Pandas version: 2.2.2\r\n- `fsspec` version: 2024.5.0\r\n\r\n","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7024\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7024\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7023","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7023\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7023\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7023\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7023","id":2388090424,"node_id":"PR_kwDODunzps50TDot","number":7023,"title":"Remove dead code for pyarrow < 15.0.0","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-07-03T09:05:03Z","updated_at":"2024-07-03T09:24:46Z","closed_at":"2024-07-03T09:17:35Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7023","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7023","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7023.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7023.patch","merged_at":"2024-07-03T09:17:35Z"},"body":"Remove dead code for pyarrow < 15.0.0.\r\n\r\nCode is dead since the merge of:\r\n- #6892\r\n\r\nFix #7022.","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7023\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7023\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7022","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7022\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7022\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7022\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7022","id":2388064650,"node_id":"I_kwDODunzps6OVvmK","number":7022,"title":"There is dead code after we require pyarrow >= 15.0.0","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":4296013012,"node_id":"LA_kwDODunzps8AAAABAA_01A","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/maintenance","name":"maintenance","color":"d4c5f9","default":false,"description":"Maintenance tasks"}],"state":"closed","locked":false,"assignee":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":0,"created_at":"2024-07-03T08:52:57Z","updated_at":"2024-07-03T09:17:36Z","closed_at":"2024-07-03T09:17:36Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"There are code lines specific for pyarrow versions < 15.0.0.\r\n\r\nHowever, we require pyarrow >= 15.0.0 since the merge of PR:\r\n- #6892\r\n\r\nThose code lines are now dead code and should be removed.","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7022\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7022\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7021","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7021\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7021\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7021\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7021","id":2387948935,"node_id":"PR_kwDODunzps50SlKR","number":7021,"title":"Fix casting list array to fixed size list","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-07-03T07:58:57Z","updated_at":"2024-07-03T08:47:49Z","closed_at":"2024-07-03T08:41:55Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7021","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7021","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7021.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7021.patch","merged_at":"2024-07-03T08:41:55Z"},"body":"Fix casting list array to fixed size list.\r\n\r\nThis bug was introduced in [datasets-2.17.0](https:\/\/github.com\/huggingface\/datasets\/releases\/tag\/2.17.0) by PR: https:\/\/github.com\/huggingface\/datasets\/pull\/6283\/files#diff-1cb2b66aa9311d729cfd83013dad56cf5afcda35b39dfd0bfe9c3813a049eab0R1899\r\n- #6283\r\n\r\nFix #7020.","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7021\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7021\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7020","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7020\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7020\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7020\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7020","id":2387940990,"node_id":"I_kwDODunzps6OVRZ-","number":7020,"title":"Casting list array to fixed size list raises error","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892857,"node_id":"MDU6TGFiZWwxOTM1ODkyODU3","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/bug","name":"bug","color":"d73a4a","default":true,"description":"Something isn't working"}],"state":"closed","locked":false,"assignee":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":0,"created_at":"2024-07-03T07:54:49Z","updated_at":"2024-07-03T08:41:56Z","closed_at":"2024-07-03T08:41:56Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"When trying to cast a list array to fixed size list, an AttributeError is raised:\r\n> AttributeError: 'pyarrow.lib.FixedSizeListType' object has no attribute 'length'\r\n\r\nSteps to reproduce the bug:\r\n```python\r\nimport pyarrow as pa\r\nfrom datasets.table import array_cast\r\n\r\narr = pa.array([[0, 1]])\r\narray_cast(arr, pa.list_(pa.int64(), 2))\r\n```\r\n\r\nStack trace:\r\n```\r\n---------------------------------------------------------------------------\r\nAttributeError Traceback (most recent call last)\r\n in \r\n 3 \r\n 4 arr = pa.array([[0, 1]])\r\n----> 5 array_cast(arr, pa.list_(pa.int64(), 2))\r\n\r\n~\/huggingface\/datasets\/src\/datasets\/table.py in wrapper(array, *args, **kwargs)\r\n 1802 return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])\r\n 1803 else:\r\n-> 1804 return func(array, *args, **kwargs)\r\n 1805 \r\n 1806 return wrapper\r\n\r\n~\/huggingface\/datasets\/src\/datasets\/table.py in array_cast(array, pa_type, allow_primitive_to_str, allow_decimal_to_str)\r\n 1920 else:\r\n 1921 array_values = array.values[\r\n-> 1922 array.offset * pa_type.length : (array.offset + len(array)) * pa_type.length\r\n 1923 ]\r\n 1924 return pa.FixedSizeListArray.from_arrays(_c(array_values, pa_type.value_type), pa_type.list_size)\r\n\r\nAttributeError: 'pyarrow.lib.FixedSizeListType' object has no attribute 'length'\r\n```","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7020\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7020\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7019","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7019\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7019\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7019\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7019","id":2385793897,"node_id":"PR_kwDODunzps50LMjW","number":7019,"title":"Support pyarrow large_list","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2024-07-02T09:52:52Z","updated_at":"2024-08-12T14:49:45Z","closed_at":"2024-08-12T14:43:45Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7019","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7019","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7019.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7019.patch","merged_at":"2024-08-12T14:43:45Z"},"body":"Allow Polars round trip by supporting pyarrow large list.\r\n\r\nFix #6834, fix #6984.\r\n\r\nSupersede and close #4800, close #6835, close #6986.","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7019\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7019\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7018","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7018\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7018\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7018\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7018","id":2383700286,"node_id":"I_kwDODunzps6OFGE-","number":7018,"title":"`load_dataset` fails to load dataset saved by `save_to_disk`","user":{"login":"sliedes","id":2307997,"node_id":"MDQ6VXNlcjIzMDc5OTc=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/2307997?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/sliedes","html_url":"https:\/\/github.com\/sliedes","followers_url":"https:\/\/api.github.com\/users\/sliedes\/followers","following_url":"https:\/\/api.github.com\/users\/sliedes\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/sliedes\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/sliedes\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/sliedes\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/sliedes\/orgs","repos_url":"https:\/\/api.github.com\/users\/sliedes\/repos","events_url":"https:\/\/api.github.com\/users\/sliedes\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/sliedes\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2024-07-01T12:19:19Z","updated_at":"2025-05-24T05:21:12Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nThis code fails to load the dataset it just saved:\r\n\r\n```python\r\nfrom datasets import load_dataset\r\nfrom transformers import AutoTokenizer\r\n\r\nMODEL = \"google-bert\/bert-base-cased\"\r\ntokenizer = AutoTokenizer.from_pretrained(MODEL)\r\n\r\ndataset = load_dataset(\"yelp_review_full\")\r\n\r\ndef tokenize_function(examples):\r\n return tokenizer(examples[\"text\"], padding=\"max_length\", truncation=True)\r\n\r\ntokenized_datasets = dataset.map(tokenize_function, batched=True)\r\ntokenized_datasets.save_to_disk(\"dataset\")\r\n\r\ntokenized_datasets = load_dataset(\"dataset\/\") # raises\r\n```\r\n\r\nIt raises `ValueError: Couldn't infer the same data file format for all splits. Got {NamedSplit('train'): ('arrow', {}), NamedSplit('test'): ('json', {})}`.\r\n\r\nI believe this bug is caused by the [logic that tries to infer dataset format](https:\/\/github.com\/huggingface\/datasets\/blob\/9af8dd3de7626183a9a9ec8973cebc672d690400\/src\/datasets\/load.py#L556). It counts the most common file extension. However, a small dataset can fit in a single `.arrow` file and have two JSON metadata files, causing the format to be inferred as JSON:\r\n\r\n```shell\r\n$ ls -l dataset\/test\r\n-rw-r--r-- 1 sliedes sliedes 191498784 Jul 1 13:55 data-00000-of-00001.arrow\r\n-rw-r--r-- 1 sliedes sliedes 1730 Jul 1 13:55 dataset_info.json\r\n-rw-r--r-- 1 sliedes sliedes 249 Jul 1 13:55 state.json\r\n```\n\n### Steps to reproduce the bug\n\nExecute the code above.\n\n### Expected behavior\n\nThe dataset is loaded successfully.\n\n### Environment info\n\n- `datasets` version: 2.20.0\r\n- Platform: Linux-6.9.3-arch1-1-x86_64-with-glibc2.39\r\n- Python version: 3.12.4\r\n- `huggingface_hub` version: 0.23.4\r\n- PyArrow version: 16.1.0\r\n- Pandas version: 2.2.2\r\n- `fsspec` version: 2024.5.0\r\n","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7018\/reactions","total_count":3,"+1":3,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7018\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7017","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7017\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7017\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7017\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7017","id":2383647419,"node_id":"PR_kwDODunzps50D3gi","number":7017,"title":"Support fsspec 2024.6.1","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-07-01T11:57:15Z","updated_at":"2024-07-01T12:12:32Z","closed_at":"2024-07-01T12:06:24Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7017","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7017","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7017.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7017.patch","merged_at":"2024-07-01T12:06:24Z"},"body":"Support fsspec 2024.6.1.","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7017\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7017\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7016","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7016\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7016\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7016\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7016","id":2383262608,"node_id":"I_kwDODunzps6ODbOQ","number":7016,"title":"`drop_duplicates` method","user":{"login":"MohamedAliRashad","id":26205298,"node_id":"MDQ6VXNlcjI2MjA1Mjk4","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/26205298?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/MohamedAliRashad","html_url":"https:\/\/github.com\/MohamedAliRashad","followers_url":"https:\/\/api.github.com\/users\/MohamedAliRashad\/followers","following_url":"https:\/\/api.github.com\/users\/MohamedAliRashad\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/MohamedAliRashad\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/MohamedAliRashad\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/MohamedAliRashad\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/MohamedAliRashad\/orgs","repos_url":"https:\/\/api.github.com\/users\/MohamedAliRashad\/repos","events_url":"https:\/\/api.github.com\/users\/MohamedAliRashad\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/MohamedAliRashad\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892865,"node_id":"MDU6TGFiZWwxOTM1ODkyODY1","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/duplicate","name":"duplicate","color":"cfd3d7","default":true,"description":"This issue or pull request already exists"},{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-07-01T09:01:06Z","updated_at":"2024-07-20T06:51:58Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\n`drop_duplicates` method for huggingface datasets (similiar in simplicity to the `pandas` one)\n\n### Motivation\n\nEase of use\n\n### Your contribution\n\nI don't think i am good enough to help","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7016\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7016\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7015","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7015\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7015\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7015\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7015","id":2383151220,"node_id":"PR_kwDODunzps50CJuE","number":7015,"title":"add split argument to Generator","user":{"login":"piercus","id":156736,"node_id":"MDQ6VXNlcjE1NjczNg==","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/156736?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/piercus","html_url":"https:\/\/github.com\/piercus","followers_url":"https:\/\/api.github.com\/users\/piercus\/followers","following_url":"https:\/\/api.github.com\/users\/piercus\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/piercus\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/piercus\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/piercus\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/piercus\/orgs","repos_url":"https:\/\/api.github.com\/users\/piercus\/repos","events_url":"https:\/\/api.github.com\/users\/piercus\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/piercus\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2024-07-01T08:09:25Z","updated_at":"2024-07-26T09:37:51Z","closed_at":"2024-07-26T09:31:56Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7015","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7015","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7015.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7015.patch","merged_at":"2024-07-26T09:31:55Z"},"body":"## Actual\r\n\r\nWhen creating a multi-split dataset using generators like \r\n\r\n```python\r\ndatasets.DatasetDict({\r\n \"val\": datasets.Dataset.from_generator(\r\n generator=generator_val,\r\n features=features\r\n ),\r\n \"test\": datasets.Dataset.from_generator(\r\n generator=generator_test,\r\n features=features,\r\n )\r\n})\r\n```\r\n\r\nIt displays (for both test and val)\r\n\r\n```\r\nGenerating train split\r\n```\r\n\r\n\r\n## Expected\r\n\r\nI would like to be able to improve this behavior by doing\r\n\r\n```python\r\ndatasets.DatasetDict({\r\n \"val\": datasets.Dataset.from_generator(\r\n generator=generator_val,\r\n features=features,\r\n split=\"val\"\r\n ),\r\n \"test\": datasets.Dataset.from_generator(\r\n generator=generator_test,\r\n features=features,\r\n split=\"test\"\r\n )\r\n})\r\n```\r\n\r\n\r\nIt would display\r\n\r\n```\r\nGenerating val split\r\n```\r\n\r\nand \r\n\r\n```\r\nGenerating test split\r\n```\r\n\r\n## Proposal\r\n\r\nCurrent PR is adding an explicit `split` argument and replace the implicit \"train\" split in the following classes\/function : \r\n* Generator\r\n* from_generator\r\n* AbstractDatasetInputStream\r\n* GeneratorDatasetInputStream\r\n\r\nPlease share your feedbacks","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7015\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7015\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7014","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7014\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7014\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7014\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7014","id":2382985847,"node_id":"PR_kwDODunzps50BlwV","number":7014,"title":"Skip faiss tests on Windows to avoid running CI for 360 minutes","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2024-07-01T06:45:35Z","updated_at":"2024-07-01T07:16:36Z","closed_at":"2024-07-01T07:10:27Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7014","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7014","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7014.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7014.patch","merged_at":"2024-07-01T07:10:27Z"},"body":"Skip faiss tests on Windows to avoid running CI for 360 minutes.\r\n\r\nFix #7013.\r\n\r\nRevert once the underlying issue is fixed.","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7014\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7014\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7013","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7013\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7013\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7013\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7013","id":2382976738,"node_id":"I_kwDODunzps6OCVbi","number":7013,"title":"CI is broken for faiss tests on Windows: node down: Not properly terminated","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":4296013012,"node_id":"LA_kwDODunzps8AAAABAA_01A","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/maintenance","name":"maintenance","color":"d4c5f9","default":false,"description":"Maintenance tasks"}],"state":"closed","locked":false,"assignee":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":0,"created_at":"2024-07-01T06:40:03Z","updated_at":"2024-07-01T07:10:28Z","closed_at":"2024-07-01T07:10:28Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"Faiss tests on Windows make the CI run indefinitely until maximum execution time (360 minutes) is reached.\r\n\r\nSee: https:\/\/github.com\/huggingface\/datasets\/actions\/runs\/9712659783\r\n```\r\ntest (integration, windows-latest, deps-minimum)\r\nThe job running on runner GitHub Actions 60 has exceeded the maximum execution time of 360 minutes.\r\ntest (integration, windows-latest, deps-latest)\r\nThe job running on runner GitHub Actions 238 has exceeded the maximum execution time of 360 minutes.\r\n```\r\n```\r\n____________________________ tests\/test_search.py _____________________________\r\n[gw1] win32 -- Python 3.8.10 C:\\hostedtoolcache\\windows\\Python\\3.8.10\\x64\\python.exe\r\nworker 'gw1' crashed while running 'tests\/test_search.py::IndexableDatasetTest::test_add_faiss_index'\r\n____________________________ tests\/test_search.py _____________________________\r\n[gw2] win32 -- Python 3.8.10 C:\\hostedtoolcache\\windows\\Python\\3.8.10\\x64\\python.exe\r\nworker 'gw2' crashed while running 'tests\/test_search.py::IndexableDatasetTest::test_add_faiss_index'\r\n```\r\n```\r\ntests\/test_search.py::IndexableDatasetTest::test_add_faiss_index \r\n[gw0] node down: Not properly terminated\r\n[gw0] FAILED tests\/test_search.py::IndexableDatasetTest::test_add_faiss_index \r\n\r\nreplacing crashed worker gw0\r\n\r\ntests\/test_search.py::IndexableDatasetTest::test_add_faiss_index \r\n[gw1] node down: Not properly terminated\r\n[gw1] FAILED tests\/test_search.py::IndexableDatasetTest::test_add_faiss_index \r\n\r\nreplacing crashed worker gw1\r\n\r\ntests\/test_search.py::IndexableDatasetTest::test_add_faiss_index \r\n[gw2] node down: Not properly terminated\r\n[gw2] FAILED tests\/test_search.py::IndexableDatasetTest::test_add_faiss_index \r\n\r\nreplacing crashed worker gw2\r\n```","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7013\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7013\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7012","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7012\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7012\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7012\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7012","id":2380934047,"node_id":"PR_kwDODunzps5z61A3","number":7012,"title":"Raise an error when a nested object is expected to be a mapping that displays the object","user":{"login":"sebbyjp","id":22511797,"node_id":"MDQ6VXNlcjIyNTExNzk3","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/22511797?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/sebbyjp","html_url":"https:\/\/github.com\/sebbyjp","followers_url":"https:\/\/api.github.com\/users\/sebbyjp\/followers","following_url":"https:\/\/api.github.com\/users\/sebbyjp\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/sebbyjp\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/sebbyjp\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/sebbyjp\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/sebbyjp\/orgs","repos_url":"https:\/\/api.github.com\/users\/sebbyjp\/repos","events_url":"https:\/\/api.github.com\/users\/sebbyjp\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/sebbyjp\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-06-28T18:10:59Z","updated_at":"2024-07-11T02:06:16Z","closed_at":"2024-07-11T02:06:16Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7012","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7012","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7012.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7012.patch","merged_at":null},"body":null,"closed_by":{"login":"mbodiai","id":159743133,"node_id":"O_kgDOCYV8nQ","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/159743133?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/mbodiai","html_url":"https:\/\/github.com\/mbodiai","followers_url":"https:\/\/api.github.com\/users\/mbodiai\/followers","following_url":"https:\/\/api.github.com\/users\/mbodiai\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/mbodiai\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/mbodiai\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/mbodiai\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/mbodiai\/orgs","repos_url":"https:\/\/api.github.com\/users\/mbodiai\/repos","events_url":"https:\/\/api.github.com\/users\/mbodiai\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/mbodiai\/received_events","type":"Organization","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7012\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7012\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7011","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7011\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7011\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7011\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7011","id":2379785262,"node_id":"PR_kwDODunzps5z27Fs","number":7011,"title":"Re-enable raising error from huggingface-hub FutureWarning in CI","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-06-28T07:28:32Z","updated_at":"2024-06-28T12:25:25Z","closed_at":"2024-06-28T12:19:28Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7011","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7011","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7011.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7011.patch","merged_at":"2024-06-28T12:19:28Z"},"body":"Re-enable raising error from huggingface-hub FutureWarning in tests, once that the fix in transformers\r\n- https:\/\/github.com\/huggingface\/transformers\/pull\/31007\r\n\r\nwas just released yesterday in transformers-4.42.0: https:\/\/github.com\/huggingface\/transformers\/releases\/tag\/v4.42.0\r\n\r\n\r\nFix #7010.","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7011\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7011\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7010","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7010\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7010\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7010\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7010","id":2379777480,"node_id":"I_kwDODunzps6N2IXI","number":7010,"title":"Re-enable raising error from huggingface-hub FutureWarning in CI","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":4296013012,"node_id":"LA_kwDODunzps8AAAABAA_01A","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/maintenance","name":"maintenance","color":"d4c5f9","default":false,"description":"Maintenance tasks"}],"state":"closed","locked":false,"assignee":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":0,"created_at":"2024-06-28T07:23:40Z","updated_at":"2024-06-28T12:19:30Z","closed_at":"2024-06-28T12:19:29Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"Re-enable raising error from huggingface-hub FutureWarning in CI, which was disabled by PR:\r\n- #6876\r\n\r\nNote that this can only be done once transformers releases the fix:\r\n- https:\/\/github.com\/huggingface\/transformers\/pull\/31007","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7010\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7010\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7009","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7009\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7009\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7009\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7009","id":2379619132,"node_id":"PR_kwDODunzps5z2Xe6","number":7009,"title":"Support ruff 0.5.0 in CI","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-06-28T05:37:36Z","updated_at":"2024-06-28T07:17:26Z","closed_at":"2024-06-28T07:11:17Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7009","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7009","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7009.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7009.patch","merged_at":"2024-06-28T07:11:17Z"},"body":"Support ruff 0.5.0 in CI and revert:\r\n- #7007\r\n\r\nFix #7008.","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7009\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7009\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7008","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7008\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7008\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7008\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7008","id":2379591141,"node_id":"I_kwDODunzps6N1a3l","number":7008,"title":"Support ruff 0.5.0 in CI","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":4296013012,"node_id":"LA_kwDODunzps8AAAABAA_01A","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/maintenance","name":"maintenance","color":"d4c5f9","default":false,"description":"Maintenance tasks"}],"state":"closed","locked":false,"assignee":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":0,"created_at":"2024-06-28T05:11:26Z","updated_at":"2024-06-28T07:11:18Z","closed_at":"2024-06-28T07:11:18Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"Support ruff 0.5.0 in CI.\r\n\r\nAlso revert:\r\n- #7007","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7008\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7008\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7007","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7007\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7007\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7007\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7007","id":2379588676,"node_id":"PR_kwDODunzps5z2Q68","number":7007,"title":"Fix CI by temporarily pinning ruff < 0.5.0","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-06-28T05:09:17Z","updated_at":"2024-06-28T05:31:21Z","closed_at":"2024-06-28T05:25:17Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7007","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7007","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7007.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7007.patch","merged_at":"2024-06-28T05:25:17Z"},"body":"As a hotfix for CI, temporarily pin ruff upper version < 0.5.0.\r\n\r\nFix #7006.\r\n\r\nRevert once root cause is fixed.","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7007\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7007\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7006","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7006\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7006\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7006\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7006","id":2379581543,"node_id":"I_kwDODunzps6N1Yhn","number":7006,"title":"CI is broken after ruff-0.5.0: E721","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":4296013012,"node_id":"LA_kwDODunzps8AAAABAA_01A","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/maintenance","name":"maintenance","color":"d4c5f9","default":false,"description":"Maintenance tasks"}],"state":"closed","locked":false,"assignee":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":0,"created_at":"2024-06-28T05:03:28Z","updated_at":"2024-06-28T05:25:18Z","closed_at":"2024-06-28T05:25:18Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"After ruff-0.5.0 release (https:\/\/github.com\/astral-sh\/ruff\/releases\/tag\/0.5.0), our CI is broken due to E721 rule. \r\n\r\nSee: https:\/\/github.com\/huggingface\/datasets\/actions\/runs\/9707641618\/job\/26793170961?pr=6983\r\n> src\/datasets\/features\/features.py:844:12: E721 Use `is` and `is not` for type comparisons, or `isinstance()` for isinstance checks","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7006\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7006\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7005","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7005\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7005\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7005\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7005","id":2378424349,"node_id":"I_kwDODunzps6Nw-Ad","number":7005,"title":"EmptyDatasetError: The directory at \/metadata.jsonl doesn't contain any data files","user":{"login":"Aki1991","id":117731544,"node_id":"U_kgDOBwRw2A","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/117731544?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Aki1991","html_url":"https:\/\/github.com\/Aki1991","followers_url":"https:\/\/api.github.com\/users\/Aki1991\/followers","following_url":"https:\/\/api.github.com\/users\/Aki1991\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Aki1991\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Aki1991\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Aki1991\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Aki1991\/orgs","repos_url":"https:\/\/api.github.com\/users\/Aki1991\/repos","events_url":"https:\/\/api.github.com\/users\/Aki1991\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Aki1991\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2024-06-27T15:08:26Z","updated_at":"2024-06-28T09:56:19Z","closed_at":"2024-06-28T09:56:19Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nwhile trying to load custom dataset from jsonl file, I get the error: \"metadata.jsonl doesn't contain any data files\"\n\n### Steps to reproduce the bug\n\nThis is my [metadata_v2.jsonl](https:\/\/github.com\/user-attachments\/files\/16016011\/metadata_v2.json) file. I have this file in the folder with all images mentioned in that json(l) file.\r\n\r\nThrough below mentioned command I am trying to load_dataset so that I can upload it as mentioned here on the [official website](https:\/\/huggingface.co\/docs\/datasets\/en\/image_dataset#upload-dataset-to-the-hub).\r\n\r\n````\r\nfrom datasets import load_dataset\r\n\r\ndataset = load_dataset(\"imagefolder\", data_dir=\"path\/to\/jsonl\/metadata.jsonl\")\r\n````\r\n\r\nerror:\r\n\r\n````\r\nEmptyDatasetError Traceback (most recent call last)\r\nCell In[18], line 3\r\n 1 from datasets import load_dataset\r\n----> 3 dataset = load_dataset(\"imagefolder\", \r\n 4 data_dir=\"path\/to\/jsonl\/file\/metadata.jsonl\")\r\n 5 dataset[0][\"objects\"]\r\n\r\nFile ~\/anaconda3\/envs\/lvis\/lib\/python3.11\/site-packages\/datasets\/load.py:2594, in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, verification_mode, ignore_verifications, keep_in_memory, save_infos, revision, token, use_auth_token, task, streaming, num_proc, storage_options, trust_remote_code, **config_kwargs)\r\n 2589 verification_mode = VerificationMode(\r\n 2590 (verification_mode or VerificationMode.BASIC_CHECKS) if not save_infos else VerificationMode.ALL_CHECKS\r\n 2591 )\r\n 2593 # Create a dataset builder\r\n-> 2594 builder_instance = load_dataset_builder(\r\n 2595 path=path,\r\n 2596 name=name,\r\n 2597 data_dir=data_dir,\r\n 2598 data_files=data_files,\r\n 2599 cache_dir=cache_dir,\r\n 2600 features=features,\r\n 2601 download_config=download_config,\r\n 2602 download_mode=download_mode,\r\n 2603 revision=revision,\r\n 2604 token=token,\r\n 2605 storage_options=storage_options,\r\n 2606 trust_remote_code=trust_remote_code,\r\n 2607 _require_default_config_name=name is None,\r\n 2608 **config_kwargs,\r\n 2609 )\r\n 2611 # Return iterable dataset in case of streaming\r\n 2612 if streaming:\r\n\r\nFile ~\/anaconda3\/envs\/lvis\/lib\/python3.11\/site-packages\/datasets\/load.py:2266, in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, token, use_auth_token, storage_options, trust_remote_code, _require_default_config_name, **config_kwargs)\r\n 2264 download_config = download_config.copy() if download_config else DownloadConfig()\r\n 2265 download_config.storage_options.update(storage_options)\r\n-> 2266 dataset_module = dataset_module_factory(\r\n 2267 path,\r\n 2268 revision=revision,\r\n 2269 download_config=download_config,\r\n 2270 download_mode=download_mode,\r\n 2271 data_dir=data_dir,\r\n 2272 data_files=data_files,\r\n 2273 cache_dir=cache_dir,\r\n 2274 trust_remote_code=trust_remote_code,\r\n 2275 _require_default_config_name=_require_default_config_name,\r\n 2276 _require_custom_configs=bool(config_kwargs),\r\n 2277 )\r\n 2278 # Get dataset builder class from the processing script\r\n 2279 builder_kwargs = dataset_module.builder_kwargs\r\n\r\nFile ~\/anaconda3\/envs\/lvis\/lib\/python3.11\/site-packages\/datasets\/load.py:1805, in dataset_module_factory(path, revision, download_config, download_mode, dynamic_modules_path, data_dir, data_files, cache_dir, trust_remote_code, _require_default_config_name, _require_custom_configs, **download_kwargs)\r\n 1782 # We have several ways to get a dataset builder:\r\n 1783 #\r\n 1784 # - if path is the name of a packaged dataset module\r\n (...)\r\n 1796 \r\n 1797 # Try packaged\r\n 1798 if path in _PACKAGED_DATASETS_MODULES:\r\n 1799 return PackagedDatasetModuleFactory(\r\n 1800 path,\r\n 1801 data_dir=data_dir,\r\n 1802 data_files=data_files,\r\n 1803 download_config=download_config,\r\n 1804 download_mode=download_mode,\r\n-> 1805 ).get_module()\r\n 1806 # Try locally\r\n 1807 elif path.endswith(filename):\r\n\r\nFile ~\/anaconda3\/envs\/lvis\/lib\/python3.11\/site-packages\/datasets\/load.py:1140, in PackagedDatasetModuleFactory.get_module(self)\r\n 1135 def get_module(self) -> DatasetModule:\r\n 1136 base_path = Path(self.data_dir or \"\").expanduser().resolve().as_posix()\r\n 1137 patterns = (\r\n 1138 sanitize_patterns(self.data_files)\r\n 1139 if self.data_files is not None\r\n-> 1140 else get_data_patterns(base_path, download_config=self.download_config)\r\n 1141 )\r\n 1142 data_files = DataFilesDict.from_patterns(\r\n 1143 patterns,\r\n 1144 download_config=self.download_config,\r\n 1145 base_path=base_path,\r\n 1146 )\r\n 1147 supports_metadata = self.name in _MODULE_SUPPORTS_METADATA\r\n\r\nFile ~\/anaconda3\/envs\/lvis\/lib\/python3.11\/site-packages\/datasets\/data_files.py:503, in get_data_patterns(base_path, download_config)\r\n 501 return _get_data_files_patterns(resolver)\r\n 502 except FileNotFoundError:\r\n--> 503 raise EmptyDatasetError(f\"The directory at {base_path} doesn't contain any data files\") from None\r\n\r\nEmptyDatasetError: The directory at path\/to\/jsonl\/file\/metadata.jsonl doesn't contain any data files`\r\n```\n\n### Expected behavior\n\nIt should be able load the whole file in a format of \"dataset\" inside the dataset variable. But it gives error \"The directory at \"path\/to\/jsonl\/metadata.jsonl\" doesn't contain any data files.\"\n\n### Environment info\n\nI am using conda environment.","closed_by":{"login":"Aki1991","id":117731544,"node_id":"U_kgDOBwRw2A","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/117731544?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Aki1991","html_url":"https:\/\/github.com\/Aki1991","followers_url":"https:\/\/api.github.com\/users\/Aki1991\/followers","following_url":"https:\/\/api.github.com\/users\/Aki1991\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Aki1991\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Aki1991\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Aki1991\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Aki1991\/orgs","repos_url":"https:\/\/api.github.com\/users\/Aki1991\/repos","events_url":"https:\/\/api.github.com\/users\/Aki1991\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Aki1991\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7005\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7005\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7004","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7004\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7004\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7004\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7004","id":2376064264,"node_id":"PR_kwDODunzps5zrIYR","number":7004,"title":"Fix WebDatasets KeyError for user-defined Features when a field is missing in an example","user":{"login":"ProGamerGov","id":10626398,"node_id":"MDQ6VXNlcjEwNjI2Mzk4","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/10626398?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ProGamerGov","html_url":"https:\/\/github.com\/ProGamerGov","followers_url":"https:\/\/api.github.com\/users\/ProGamerGov\/followers","following_url":"https:\/\/api.github.com\/users\/ProGamerGov\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ProGamerGov\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ProGamerGov\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ProGamerGov\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ProGamerGov\/orgs","repos_url":"https:\/\/api.github.com\/users\/ProGamerGov\/repos","events_url":"https:\/\/api.github.com\/users\/ProGamerGov\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ProGamerGov\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2024-06-26T18:58:05Z","updated_at":"2024-06-29T00:15:49Z","closed_at":"2024-06-28T09:30:12Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7004","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7004","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7004.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7004.patch","merged_at":"2024-06-28T09:30:12Z"},"body":"Fixes: https:\/\/github.com\/huggingface\/datasets\/issues\/6900\r\n\r\nNot sure if this needs any addition stuff before merging","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7004\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7004\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7003","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7003\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7003\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7003\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7003","id":2373084132,"node_id":"PR_kwDODunzps5zhRAK","number":7003,"title":"minor fix for bfloat16","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-06-25T16:10:04Z","updated_at":"2024-06-25T16:16:11Z","closed_at":"2024-06-25T16:10:10Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7003","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7003","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7003.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7003.patch","merged_at":"2024-06-25T16:10:10Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7003\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7003\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7002","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7002\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7002\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7002\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7002","id":2373010351,"node_id":"PR_kwDODunzps5zhBld","number":7002,"title":"Fix dump of bfloat16 torch tensor","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-06-25T15:38:09Z","updated_at":"2024-06-25T16:10:16Z","closed_at":"2024-06-25T15:51:52Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/7002","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7002","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7002.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/7002.patch","merged_at":"2024-06-25T15:51:52Z"},"body":"close https:\/\/github.com\/huggingface\/datasets\/issues\/7000","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7002\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7002\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7001","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7001\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7001\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7001\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7001","id":2372930879,"node_id":"I_kwDODunzps6NcA0_","number":7001,"title":"Datasetbuilder Local Download FileNotFoundError","user":{"login":"purefall","id":12601271,"node_id":"MDQ6VXNlcjEyNjAxMjcx","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/12601271?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/purefall","html_url":"https:\/\/github.com\/purefall","followers_url":"https:\/\/api.github.com\/users\/purefall\/followers","following_url":"https:\/\/api.github.com\/users\/purefall\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/purefall\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/purefall\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/purefall\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/purefall\/orgs","repos_url":"https:\/\/api.github.com\/users\/purefall\/repos","events_url":"https:\/\/api.github.com\/users\/purefall\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/purefall\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-06-25T15:02:34Z","updated_at":"2024-06-25T15:21:19Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\r\n\r\nSo I was trying to download a dataset and save it as parquet and I follow the [tutorial](https:\/\/huggingface.co\/docs\/datasets\/filesystems#download-and-prepare-a-dataset-into-a-cloud-storage) of Huggingface. However, during the excution I face a FileNotFoundError.\r\n\r\nI debug the code and it seems there is a bug there:\r\nSo first it creates a .incomplete folder and before moving its contents the following code deletes the directory\r\n[Code](https:\/\/github.com\/huggingface\/datasets\/blob\/98fdc9e78e6d057ca66e58a37f49d6618aab8130\/src\/datasets\/builder.py#L984)\r\nhence as a result I face with: \r\n\r\n``` FileNotFoundError: [Errno 2] No such file or directory: '~\/data\/Parquet\/.incomplete '```\r\n\r\n### Steps to reproduce the bug\r\n\r\n```\r\nfrom datasets import load_dataset_builder\r\nfrom pathlib import Path\r\n\r\nparquet_dir = \"~\/data\/Parquet\/\" \r\nPath(parquet_dir).mkdir(parents=True, exist_ok=True)\r\nbuilder = load_dataset_builder(\r\n \"rotten_tomatoes\",\r\n)\r\nbuilder.download_and_prepare(parquet_dir, file_format=\"parquet\")\r\n```\r\n\r\n### Expected behavior\r\n\r\nDownloads the files and saves as parquet\r\n\r\n### Environment info\r\n\r\nUbuntu,\r\nPython 3.10\r\n```\r\ndatasets 2.19.1\r\n```","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7001\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7001\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7000","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7000\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7000\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7000\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/7000","id":2372887585,"node_id":"I_kwDODunzps6Nb2Qh","number":7000,"title":"IterableDataset: Unsupported ScalarType BFloat16","user":{"login":"stoical07","id":170015089,"node_id":"U_kgDOCiI5cQ","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/170015089?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/stoical07","html_url":"https:\/\/github.com\/stoical07","followers_url":"https:\/\/api.github.com\/users\/stoical07\/followers","following_url":"https:\/\/api.github.com\/users\/stoical07\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/stoical07\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/stoical07\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/stoical07\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/stoical07\/orgs","repos_url":"https:\/\/api.github.com\/users\/stoical07\/repos","events_url":"https:\/\/api.github.com\/users\/stoical07\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/stoical07\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2024-06-25T14:43:26Z","updated_at":"2024-06-25T16:04:00Z","closed_at":"2024-06-25T15:51:53Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\n`IterableDataset.from_generator` crashes when using BFloat16:\r\n\r\n```\r\n File \"\/usr\/local\/lib\/python3.11\/site-packages\/datasets\/utils\/_dill.py\", line 169, in _save_torchTensor\r\n args = (obj.detach().cpu().numpy(),)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n\r\nTypeError: Got unsupported ScalarType BFloat16\r\n```\n\n### Steps to reproduce the bug\n\n```python\r\nimport torch\r\nfrom datasets import IterableDataset\r\n\r\n\r\ndef demo(x):\r\n yield {\"x\": x}\r\n\r\n\r\nx = torch.tensor([1.], dtype=torch.bfloat16)\r\n\r\ndataset = IterableDataset.from_generator(\r\n demo,\r\n gen_kwargs=dict(x=x),\r\n)\r\n\r\nexample = next(iter(dataset))\r\nprint(example)\r\n```\n\n### Expected behavior\n\nCode sample should print:\r\n```python\r\n{'x': tensor([1.], dtype=torch.bfloat16)}\r\n```\n\n### Environment info\n\n```\r\ndatasets==2.20.0\r\ntorch==2.2.2\r\n```","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7000\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/7000\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6999","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6999\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6999\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6999\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6999","id":2372124589,"node_id":"PR_kwDODunzps5zd-ak","number":6999,"title":"Remove tasks","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/milestones\/10","html_url":"https:\/\/github.com\/huggingface\/datasets\/milestone\/10","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/milestones\/10\/labels","id":9038583,"node_id":"MI_kwDODunzps4Aier3","number":10,"title":"3.0","description":"Next major release","creator":{"login":"mariosasko","id":47462742,"node_id":"MDQ6VXNlcjQ3NDYyNzQy","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/47462742?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/mariosasko","html_url":"https:\/\/github.com\/mariosasko","followers_url":"https:\/\/api.github.com\/users\/mariosasko\/followers","following_url":"https:\/\/api.github.com\/users\/mariosasko\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/mariosasko\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/mariosasko\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/mariosasko\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/mariosasko\/orgs","repos_url":"https:\/\/api.github.com\/users\/mariosasko\/repos","events_url":"https:\/\/api.github.com\/users\/mariosasko\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/mariosasko\/received_events","type":"User","user_view_type":"public","site_admin":false},"open_issues":3,"closed_issues":5,"state":"open","created_at":"2023-02-13T16:22:42Z","updated_at":"2024-08-21T09:35:06Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2024-06-25T09:06:16Z","updated_at":"2024-08-21T09:07:07Z","closed_at":"2024-08-21T09:01:18Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6999","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6999","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6999.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6999.patch","merged_at":"2024-08-21T09:01:18Z"},"body":"Remove tasks, as part of the 3.0 release.","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6999\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6999\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6998","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6998\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6998\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6998\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6998","id":2371973926,"node_id":"PR_kwDODunzps5zddYG","number":6998,"title":"Fix tests using hf-internal-testing\/librispeech_asr_dummy","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-06-25T07:59:44Z","updated_at":"2024-06-25T08:22:38Z","closed_at":"2024-06-25T08:13:42Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6998","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6998","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6998.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6998.patch","merged_at":"2024-06-25T08:13:42Z"},"body":"Fix tests using hf-internal-testing\/librispeech_asr_dummy once that dataset has been converted to Parquet.\r\n\r\nFix #6997.","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6998\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6998\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6997","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6997\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6997\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6997\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6997","id":2371966127,"node_id":"I_kwDODunzps6NYVSv","number":6997,"title":"CI is broken for tests using hf-internal-testing\/librispeech_asr_dummy","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":4296013012,"node_id":"LA_kwDODunzps8AAAABAA_01A","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/maintenance","name":"maintenance","color":"d4c5f9","default":false,"description":"Maintenance tasks"}],"state":"closed","locked":false,"assignee":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":0,"created_at":"2024-06-25T07:55:44Z","updated_at":"2024-06-25T08:13:43Z","closed_at":"2024-06-25T08:13:43Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"CI is broken: https:\/\/github.com\/huggingface\/datasets\/actions\/runs\/9657882317\/job\/26637998686?pr=6996\r\n```\r\nFAILED tests\/test_inspect.py::test_get_dataset_config_names[hf-internal-testing\/librispeech_asr_dummy-expected4] - AssertionError: assert ['clean'] == ['clean', 'other']\r\n \r\n Right contains one more item: 'other'\r\n \r\n Full diff:\r\n [\r\n 'clean',\r\n - 'other',\r\n ]\r\nFAILED tests\/test_inspect.py::test_get_dataset_default_config_name[hf-internal-testing\/librispeech_asr_dummy-None] - AssertionError: assert 'clean' is None\r\n```\r\n\r\nNote that repository was recently converted to Parquet: https:\/\/huggingface.co\/datasets\/hf-internal-testing\/librispeech_asr_dummy\/commit\/5be91486e11a2d616f4ec5db8d3fd248585ac07a","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6997\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6997\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6996","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6996\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6996\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6996\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6996","id":2371841671,"node_id":"PR_kwDODunzps5zdAg0","number":6996,"title":"Remove deprecated code","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/milestones\/10","html_url":"https:\/\/github.com\/huggingface\/datasets\/milestone\/10","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/milestones\/10\/labels","id":9038583,"node_id":"MI_kwDODunzps4Aier3","number":10,"title":"3.0","description":"Next major release","creator":{"login":"mariosasko","id":47462742,"node_id":"MDQ6VXNlcjQ3NDYyNzQy","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/47462742?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/mariosasko","html_url":"https:\/\/github.com\/mariosasko","followers_url":"https:\/\/api.github.com\/users\/mariosasko\/followers","following_url":"https:\/\/api.github.com\/users\/mariosasko\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/mariosasko\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/mariosasko\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/mariosasko\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/mariosasko\/orgs","repos_url":"https:\/\/api.github.com\/users\/mariosasko\/repos","events_url":"https:\/\/api.github.com\/users\/mariosasko\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/mariosasko\/received_events","type":"User","user_view_type":"public","site_admin":false},"open_issues":3,"closed_issues":5,"state":"open","created_at":"2023-02-13T16:22:42Z","updated_at":"2024-08-21T09:35:06Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2024-06-25T06:54:40Z","updated_at":"2024-08-21T09:42:52Z","closed_at":"2024-08-21T09:35:06Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6996","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6996","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6996.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6996.patch","merged_at":"2024-08-21T09:35:06Z"},"body":"Remove deprecated code, as part of the 3.0 release.\r\n\r\nFirst merge:\r\n- [x] #6983\r\n- [x] #6987\r\n- [x] #6999","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6996\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6996\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6995","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6995\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6995\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6995\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6995","id":2370713475,"node_id":"I_kwDODunzps6NTjeD","number":6995,"title":"ImportError when importing datasets.load_dataset","user":{"login":"Leo-Lsc","id":124846947,"node_id":"U_kgDOB3EDYw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/124846947?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Leo-Lsc","html_url":"https:\/\/github.com\/Leo-Lsc","followers_url":"https:\/\/api.github.com\/users\/Leo-Lsc\/followers","following_url":"https:\/\/api.github.com\/users\/Leo-Lsc\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Leo-Lsc\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Leo-Lsc\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Leo-Lsc\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Leo-Lsc\/orgs","repos_url":"https:\/\/api.github.com\/users\/Leo-Lsc\/repos","events_url":"https:\/\/api.github.com\/users\/Leo-Lsc\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Leo-Lsc\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":9,"created_at":"2024-06-24T17:07:22Z","updated_at":"2024-11-14T01:42:09Z","closed_at":"2024-06-25T06:11:37Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI encountered an ImportError while trying to import `load_dataset` from the `datasets` module in Hugging Face. The error message indicates a problem with importing 'CommitInfo' from 'huggingface_hub'.\n\n### Steps to reproduce the bug\n\n1. pip install git+https:\/\/github.com\/huggingface\/datasets\r\n2. from datasets import load_dataset\n\n### Expected behavior\n\nImportError Traceback (most recent call last)\r\nCell In[7], [line 1](vscode-notebook-cell:?execution_count=7&line=1)\r\n----> [1](vscode-notebook-cell:?execution_count=7&line=1) from datasets import load_dataset\r\n [3](vscode-notebook-cell:?execution_count=7&line=3) train_set = load_dataset(\"mispeech\/speechocean762\", split=\"train\")\r\n [4](vscode-notebook-cell:?execution_count=7&line=4) test_set = load_dataset(\"mispeech\/speechocean762\", split=\"test\")\r\n\r\nFile d:\\Anaconda3\\envs\\CS224S\\Lib\\site-packages\\datasets\\__init__.py:[1](file:\/\/\/D:\/Anaconda3\/envs\/CS224S\/Lib\/site-packages\/datasets\/__init__.py:1)7\r\n 1 # Copyright 2020 The HuggingFace Datasets Authors and the TensorFlow Datasets Authors.\r\n [2](file:\/\/\/D:\/Anaconda3\/envs\/CS224S\/Lib\/site-packages\/datasets\/__init__.py:2) #\r\n [3](file:\/\/\/D:\/Anaconda3\/envs\/CS224S\/Lib\/site-packages\/datasets\/__init__.py:3) # Licensed under the Apache License, Version 2.0 (the \"License\");\r\n (...)\r\n [12](file:\/\/\/D:\/Anaconda3\/envs\/CS224S\/Lib\/site-packages\/datasets\/__init__.py:12) # See the License for the specific language governing permissions and\r\n [13](file:\/\/\/D:\/Anaconda3\/envs\/CS224S\/Lib\/site-packages\/datasets\/__init__.py:13) # limitations under the License.\r\n [15](file:\/\/\/D:\/Anaconda3\/envs\/CS224S\/Lib\/site-packages\/datasets\/__init__.py:15) __version__ = \"2.20.1.dev0\"\r\n---> [17](file:\/\/\/D:\/Anaconda3\/envs\/CS224S\/Lib\/site-packages\/datasets\/__init__.py:17) from .arrow_dataset import Dataset\r\n [18](file:\/\/\/D:\/Anaconda3\/envs\/CS224S\/Lib\/site-packages\/datasets\/__init__.py:18) from .arrow_reader import ReadInstruction\r\n [19](file:\/\/\/D:\/Anaconda3\/envs\/CS224S\/Lib\/site-packages\/datasets\/__init__.py:19) from .builder import ArrowBasedBuilder, BeamBasedBuilder, BuilderConfig, DatasetBuilder, GeneratorBasedBuilder\r\n\r\nFile d:\\Anaconda3\\envs\\CS224S\\Lib\\site-packages\\datasets\\arrow_dataset.py:63\r\n [61](file:\/\/\/D:\/Anaconda3\/envs\/CS224S\/Lib\/site-packages\/datasets\/arrow_dataset.py:61) import pyarrow.compute as pc\r\n [62](file:\/\/\/D:\/Anaconda3\/envs\/CS224S\/Lib\/site-packages\/datasets\/arrow_dataset.py:62) from fsspec.core import url_to_fs\r\n---> [63](file:\/\/\/D:\/Anaconda3\/envs\/CS224S\/Lib\/site-packages\/datasets\/arrow_dataset.py:63) from huggingface_hub import (\r\n [64](file:\/\/\/D:\/Anaconda3\/envs\/CS224S\/Lib\/site-packages\/datasets\/arrow_dataset.py:64) CommitInfo,\r\n [65](file:\/\/\/D:\/Anaconda3\/envs\/CS224S\/Lib\/site-packages\/datasets\/arrow_dataset.py:65) CommitOperationAdd,\r\n...\r\n [70](file:\/\/\/D:\/Anaconda3\/envs\/CS224S\/Lib\/site-packages\/datasets\/arrow_dataset.py:70) )\r\n [71](file:\/\/\/D:\/Anaconda3\/envs\/CS224S\/Lib\/site-packages\/datasets\/arrow_dataset.py:71) from huggingface_hub.hf_api import RepoFile\r\n [72](file:\/\/\/D:\/Anaconda3\/envs\/CS224S\/Lib\/site-packages\/datasets\/arrow_dataset.py:72) from multiprocess import Pool\r\n\r\nImportError: cannot import name 'CommitInfo' from 'huggingface_hub' (d:\\Anaconda3\\envs\\CS224S\\Lib\\site-packages\\huggingface_hub\\__init__.py)\r\nOutput is truncated. View as a [scrollable element](command:cellOutput.enableScrolling?580889ab-0f61-4f37-9214-eaa2b3807f85) or open in a [text editor](command:workbench.action.openLargeOutput?580889ab-0f61-4f37-9214-eaa2b3807f85). Adjust cell output [settings](command:workbench.action.openSettings?%5B%22%40tag%3AnotebookOutputLayout%22%5D)...\n\n### Environment info\n\nLeo@DESKTOP-9NHUAMI MSYS \/d\/Anaconda3\/envs\/CS224S\/Lib\/site-packages\/huggingface_hub\r\n$ datasets-cli env\r\nTraceback (most recent call last):\r\n File \"\", line 198, in _run_module_as_main\r\n File \"\", line 88, in _run_code\r\n File \"D:\\Anaconda3\\envs\\CS224S\\Scripts\\datasets-cli.exe\\__main__.py\", line 4, in \r\n File \"D:\\Anaconda3\\envs\\CS224S\\Lib\\site-packages\\datasets\\__init__.py\", line 17, in \r\n from .arrow_dataset import Dataset\r\n File \"D:\\Anaconda3\\envs\\CS224S\\Lib\\site-packages\\datasets\\arrow_dataset.py\", line 63, in \r\n from huggingface_hub import (\r\nImportError: cannot import name 'CommitInfo' from 'huggingface_hub' (D:\\Anaconda3\\envs\\CS224S\\Lib\\site-packages\\huggingface_hub\\__init__.py)\r\n(CS224S)","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6995\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6995\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6994","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6994\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6994\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6994\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6994","id":2370491689,"node_id":"PR_kwDODunzps5zYYXr","number":6994,"title":"Fix incorrect rank value in data splitting","user":{"login":"yzhangcs","id":18402347,"node_id":"MDQ6VXNlcjE4NDAyMzQ3","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/18402347?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/yzhangcs","html_url":"https:\/\/github.com\/yzhangcs","followers_url":"https:\/\/api.github.com\/users\/yzhangcs\/followers","following_url":"https:\/\/api.github.com\/users\/yzhangcs\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/yzhangcs\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/yzhangcs\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/yzhangcs\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/yzhangcs\/orgs","repos_url":"https:\/\/api.github.com\/users\/yzhangcs\/repos","events_url":"https:\/\/api.github.com\/users\/yzhangcs\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/yzhangcs\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2024-06-24T15:07:47Z","updated_at":"2024-06-26T04:37:35Z","closed_at":"2024-06-25T16:19:17Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6994","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6994","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6994.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6994.patch","merged_at":"2024-06-25T16:19:17Z"},"body":"Fix #6990.","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6994\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6994\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6993","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6993\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6993\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6993\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6993","id":2370444104,"node_id":"PR_kwDODunzps5zYN7P","number":6993,"title":"less script docs","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2024-06-24T14:45:28Z","updated_at":"2024-07-08T13:10:53Z","closed_at":"2024-06-27T09:31:21Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6993","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6993","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6993.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6993.patch","merged_at":"2024-06-27T09:31:21Z"},"body":"+ mark as legacy in some parts of the docs since we'll not build new features for script datasets","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6993\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6993\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6992","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6992\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6992\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6992\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6992","id":2367890622,"node_id":"I_kwDODunzps6NIyS-","number":6992,"title":"Dataset with streaming doesn't work with proxy","user":{"login":"YHL04","id":57779173,"node_id":"MDQ6VXNlcjU3Nzc5MTcz","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/57779173?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/YHL04","html_url":"https:\/\/github.com\/YHL04","followers_url":"https:\/\/api.github.com\/users\/YHL04\/followers","following_url":"https:\/\/api.github.com\/users\/YHL04\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/YHL04\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/YHL04\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/YHL04\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/YHL04\/orgs","repos_url":"https:\/\/api.github.com\/users\/YHL04\/repos","events_url":"https:\/\/api.github.com\/users\/YHL04\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/YHL04\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-06-22T16:12:08Z","updated_at":"2024-06-25T15:43:05Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI'm currently trying to stream data using dataset since the dataset is too big but it hangs indefinitely without loading the first batch. I use AIMOS which is a supercomputer that uses proxy to connect to the internet. I assume it has to do with the network configurations. I've already set up both HTTP_PROXY and HTTPS_PROXY. streaming = False works fine.\n\n### Steps to reproduce the bug\n\nuse load_dataset with streaming = True in AIMOS\n\n### Expected behavior\n\ndoes not hang indefinitely and loads batches to start training run\n\n### Environment info\n\n_libgcc_mutex 0.1 conda_forge conda-forge\r\n_openmp_mutex 4.5 2_gnu conda-forge\r\n_pytorch_select 2.0 cuda_2 https:\/\/ftp.osuosl.org\/pub\/open-ce\/1.10.0\r\nabseil-cpp 20220623.0 h9888cd1_6 conda-forge\r\nabsl-py 1.0.0 py311h399429b_0 https:\/\/ftp.osuosl.org\/pub\/open-ce\/1.10.0\r\naiofiles 23.2.1 pyhd8ed1ab_0 conda-forge\r\naiohttp 3.8.6 py311hf118e41_0\r\naiosignal 1.2.0 pyhd3eb1b0_0\r\narchspec 0.2.3 pyhd8ed1ab_0 conda-forge\r\narrow-cpp 11.0.0 ha3edaa6_5_cpu conda-forge\r\nasync-timeout 4.0.2 py311h6ffa863_0\r\nattrs 23.1.0 py311h6ffa863_0\r\nav 10.0.0 py311he6153ed_2 https:\/\/ftp.osuosl.org\/pub\/open-ce\/1.10.0\r\naws-c-auth 0.6.24 hb81f6d7_5 conda-forge\r\naws-c-cal 0.5.20 h3c2b4d9_6 conda-forge\r\naws-c-common 0.8.11 h4194056_0 conda-forge\r\naws-c-compression 0.2.16 ha19333d_3 conda-forge\r\naws-c-event-stream 0.2.18 h12a9399_6 conda-forge\r\naws-c-http 0.7.4 ha2cde00_2 conda-forge\r\naws-c-io 0.13.17 h9189062_2 conda-forge\r\naws-c-mqtt 0.8.6 h40d1a04_6 conda-forge\r\naws-c-s3 0.2.4 hbdbe4f0_3 conda-forge\r\naws-c-sdkutils 0.1.7 ha19333d_3 conda-forge\r\naws-checksums 0.1.14 ha19333d_3 conda-forge\r\naws-crt-cpp 0.19.7 hd018011_7 conda-forge\r\naws-sdk-cpp 1.10.57 hb9575ba_4 conda-forge\r\nblas 1.0 openblas\r\nblinker 1.8.2 pyhd8ed1ab_0 conda-forge\r\nboltons 23.0.0 py311h6ffa863_0\r\nboost-cpp 1.82.0 h25e6d66_2\r\nbottleneck 1.3.5 py311h34f6284_0\r\nbrotli 1.0.9 hf118e41_7\r\nbrotli-bin 1.0.9 hf118e41_7\r\nbrotli-python 1.0.9 py311h4a02239_7\r\nbzip2 1.0.8 h7b6447c_0\r\nc-ares 1.19.1 hf118e41_0\r\nca-certificates 2024.6.2 h0f6029e_0 conda-forge\r\ncachetools 5.3.3 pyhd8ed1ab_0 conda-forge\r\ncertifi 2024.6.2 pyhd8ed1ab_0 conda-forge\r\ncffi 1.15.1 py311hf118e41_3\r\ncharset-normalizer 2.0.4 pyhd3eb1b0_0\r\nclick 8.1.7 unix_pyh707e725_0 conda-forge\r\nconda 24.5.0 py311h1af927a_0 conda-forge\r\nconda-content-trust 0.2.0 py311h6ffa863_0\r\nconda-libmamba-solver 23.11.1 py311h6ffa863_0\r\nconda-package-handling 2.2.0 py311h6ffa863_0\r\nconda-package-streaming 0.9.0 py311h6ffa863_0\r\ncontourpy 1.0.5 py311h25e6d66_0\r\ncryptography 41.0.3 py311hb0e80e7_0\r\ncudatoolkit 11.8.0 hedcfb66_13 conda-forge\r\ncudnn 8.9.2_11.8 h9ceb136_1 https:\/\/ftp.osuosl.org\/pub\/open-ce\/1.10.0\r\ncycler 0.11.0 pyhd3eb1b0_0\r\ndatasets 2.12.0 py311h6ffa863_0\r\ndill 0.3.6 py311h6ffa863_0\r\ndistro 1.9.0 pyhd8ed1ab_0 conda-forge\r\nffmpeg 4.2.2 opence_0 https:\/\/ftp.osuosl.org\/pub\/open-ce\/1.10.0\r\nfilelock 3.9.0 py311h6ffa863_0\r\nfmt 9.1.0 h25e6d66_0\r\nfonttools 4.25.0 pyhd3eb1b0_0\r\nfreetype 2.12.1 hd23a775_0\r\nfrozendict 2.4.4 py311hb02d432_0 conda-forge\r\nfrozenlist 1.4.0 py311hf118e41_0\r\nfsspec 2023.9.2 py311h6ffa863_0\r\ngflags 2.2.2 he6710b0_0\r\ngiflib 5.2.1 hf118e41_3\r\nglog 0.6.0 hbe088e0_0 conda-forge\r\ngmp 6.3.0 h46f38da_0 conda-forge\r\ngmpy2 2.1.5 py311h2758da7_1 conda-forge\r\ngoogle-auth 2.30.0 pyhff2d567_0 conda-forge\r\ngoogle-auth-oauthlib 0.5.3 pyhd8ed1ab_0 conda-forge\r\ngrpc-cpp 1.51.1 h8ba971d_1 conda-forge\r\ngrpcio 1.54.3 py311h414e0d3_0 https:\/\/ftp.osuosl.org\/pub\/open-ce\/1.10.0\r\nhuggingface_hub 0.17.3 py311h6ffa863_0\r\nicu 73.1 h4a02239_0\r\nidna 3.4 py311h6ffa863_0\r\nimportlib-metadata 6.0.0 py311h6ffa863_0\r\njinja2 3.1.4 pyhd8ed1ab_0 conda-forge\r\njpeg 9e hf118e41_1\r\njsonpatch 1.32 pyhd3eb1b0_0\r\njsonpointer 2.1 pyhd3eb1b0_0\r\nkiwisolver 1.4.4 py311h4a02239_0\r\nkrb5 1.20.1 hc019ccd_1\r\nlame 3.100 hb283c62_1003 conda-forge\r\nlcms2 2.12 h2045e0b_0\r\nld_impl_linux-ppc64le 2.38 hec883e6_1\r\nlerc 3.0 h29c3540_0\r\nleveldb 1.23 h24532b4_1 conda-forge\r\nlibabseil 20220623.0 cxx17_h9235812_6 conda-forge\r\nlibarchive 3.6.2 hd8ab008_2\r\nlibarrow 11.0.0 h837770b_5_cpu conda-forge\r\nlibboost 1.82.0 haf51a6a_2\r\nlibbrotlicommon 1.0.9 hf118e41_7\r\nlibbrotlidec 1.0.9 hf118e41_7\r\nlibbrotlienc 1.0.9 hf118e41_7\r\nlibcrc32c 1.1.2 h3b9df90_0 conda-forge\r\nlibcurl 8.4.0 h4d62439_0\r\nlibdeflate 1.17 hf118e41_1\r\nlibedit 3.1.20221030 hf118e41_0\r\nlibev 4.33 h140841e_1\r\nlibevent 2.1.10 h19c23f1_4 conda-forge\r\nlibexpat 2.6.2 h46f38da_0 conda-forge\r\nlibffi 3.4.4 h4a02239_0\r\nlibgcc-ng 13.2.0 h31e42bb_10 conda-forge\r\nlibgfortran-ng 11.2.0 hb3889a9_1\r\nlibgfortran5 11.2.0 h1234567_1\r\nlibgomp 13.2.0 h31e42bb_10 conda-forge\r\nlibgoogle-cloud 2.7.0 h11140b6_1 conda-forge\r\nlibgrpc 1.51.1 h4d29a31_1 conda-forge\r\nlibmamba 1.5.3 h7c6fafd_0\r\nlibmambapy 1.5.3 py311h828bf7b_0\r\nlibnghttp2 1.57.0 h44e5816_0\r\nlibnsl 2.0.1 ha17a0cc_0 conda-forge\r\nlibopenblas 0.3.23 hc5a31fb_2 https:\/\/ftp.osuosl.org\/pub\/open-ce\/1.10.0\r\nlibopus 1.3.1 h4e0d66e_1 conda-forge\r\nlibpng 1.6.39 hf118e41_0\r\nlibprotobuf 3.21.12 h1776448_0 https:\/\/ftp.osuosl.org\/pub\/open-ce\/1.10.0\r\nlibsolv 0.7.24 h0f529ac_0\r\nlibsqlite 3.45.3 hd4bbf49_0 conda-forge\r\nlibssh2 1.10.0 h50fa78f_2\r\nlibstdcxx-ng 13.2.0 h262982c_10 conda-forge\r\nlibthrift 0.18.0 h82f1162_0 conda-forge\r\nlibtiff 4.5.1 h4a02239_0\r\nlibutf8proc 2.8.0 hb283c62_0 conda-forge\r\nlibuuid 2.38.1 h4194056_0 conda-forge\r\nlibvpx 1.13.1 h46f38da_0 conda-forge\r\nlibwebp 1.3.2 h0f96ee2_0\r\nlibwebp-base 1.3.2 hf118e41_0\r\nlibxcrypt 4.4.36 ha17a0cc_1 conda-forge\r\nlibxml2 2.10.4 h18e3229_1\r\nlibzlib 1.2.13 h1f2b957_6 conda-forge\r\nllvm-openmp 14.0.6 hc028133_0 https:\/\/ftp.osuosl.org\/pub\/open-ce\/1.10.0\r\nlmdb 0.9.31 ha17a0cc_1 conda-forge\r\nlz4-c 1.9.4 h4a02239_0\r\nmarkdown 3.4.4 pyhd8ed1ab_0 conda-forge\r\nmarkupsafe 2.1.5 py311h32d8acf_0 conda-forge\r\nmatplotlib 3.8.0 py311h6ffa863_0\r\nmatplotlib-base 3.8.0 py311h52e1fcc_0\r\nmenuinst 2.1.1 py311h1af927a_0 conda-forge\r\nmpc 1.3.1 heaf1863_0 conda-forge\r\nmpfr 4.2.1 haad2271_1 conda-forge\r\nmpmath 1.3.0 pyhd8ed1ab_0 conda-forge\r\nmultidict 6.0.2 py311hf118e41_0\r\nmultiprocess 0.70.14 py311h6ffa863_0\r\nmunkres 1.1.4 py_0\r\nmypy_extensions 1.0.0 pyha770c72_0 conda-forge\r\nnccl 2.18.3 cuda11.8_1 https:\/\/ftp.osuosl.org\/pub\/open-ce\/1.10.0\r\nncurses 6.4 h4a02239_0\r\nnest-asyncio 1.6.0 pyhd8ed1ab_0 conda-forge\r\nnetworkx 2.8.8 pyhd8ed1ab_0 conda-forge\r\nnomkl 3.0 0 https:\/\/ftp.osuosl.org\/pub\/open-ce\/1.10.0\r\nnumactl 2.0.16 hba61f60_1 https:\/\/ftp.osuosl.org\/pub\/open-ce\/1.10.0\r\nnumexpr 2.8.7 py311hc46fc55_0\r\nnumpy 1.24.3 py311h148a09e_0\r\nnumpy-base 1.24.3 py311h06b82f6_0\r\noauthlib 3.2.2 pyhd8ed1ab_0 conda-forge\r\nopenjpeg 2.4.0 hfe35807_0\r\nopenssl 3.3.1 h1f2b957_0 conda-forge\r\norc 1.8.2 h341c9a4_2 conda-forge\r\npackaging 23.1 py311h6ffa863_0\r\npandas 2.1.1 py311h52e1fcc_0\r\npcre2 10.42 h280155c_0\r\npillow 10.0.1 py311he33076b_0\r\npip 23.3 py311h6ffa863_0\r\nplatformdirs 4.2.2 pyhd8ed1ab_0 conda-forge\r\npluggy 1.0.0 py311h6ffa863_1\r\npooch 1.8.2 pyhd8ed1ab_0 conda-forge\r\nprotobuf 4.21.12 py311ha7baec7_1 https:\/\/ftp.osuosl.org\/pub\/open-ce\/1.10.0\r\npsutil 5.9.8 py311hd26027c_0 conda-forge\r\npyarrow 11.0.0 py311h04a18d5_1\r\npyasn1 0.6.0 pyhd8ed1ab_0 conda-forge\r\npyasn1-modules 0.4.0 pyhd8ed1ab_0 conda-forge\r\npybind11-abi 4 hd3eb1b0_1\r\npycosat 0.6.6 py311hf118e41_0\r\npycparser 2.21 pyhd3eb1b0_0\r\npyjwt 2.8.0 pyhd8ed1ab_1 conda-forge\r\npyopenssl 23.2.0 py311h6ffa863_0\r\npyparsing 3.0.9 py311h6ffa863_0\r\npyre-extensions 0.0.30 pyhd8ed1ab_0 conda-forge\r\npysocks 1.7.1 py311h6ffa863_0\r\npython 3.11.8 h3332dee_0_cpython conda-forge\r\npython-dateutil 2.8.2 pyhd3eb1b0_0\r\npython-tzdata 2023.3 pyhd3eb1b0_0\r\npython-xxhash 2.0.2 py311hf118e41_1\r\npython_abi 3.11 4_cp311 conda-forge\r\npytorch 2.0.1 cuda11.8_py311_1 https:\/\/ftp.osuosl.org\/pub\/open-ce\/1.10.0\r\npytorch-base 2.0.1 cuda11.8_py311_pb4.21.12_4 https:\/\/ftp.osuosl.org\/pub\/open-ce\/1.10.0\r\npytz 2023.3.post1 py311h6ffa863_0\r\npyu2f 0.1.5 pyhd8ed1ab_0 conda-forge\r\npyyaml 6.0.1 py311hf118e41_0\r\nre2 2023.02.01 h883269e_0 conda-forge\r\nreadline 8.2 hf118e41_0\r\nregex 2023.10.3 py311hf118e41_0\r\nreproc 14.2.4 h29c3540_1\r\nreproc-cpp 14.2.4 h29c3540_1\r\nrequests 2.31.0 py311h6ffa863_0\r\nrequests-oauthlib 2.0.0 pyhd8ed1ab_0 conda-forge\r\nresponses 0.13.3 pyhd3eb1b0_0\r\nrsa 4.9 pyhd8ed1ab_0 conda-forge\r\nruamel.yaml 0.17.21 py311hf118e41_0\r\ns2n 1.3.37 h5e47323_0 conda-forge\r\nsafetensors 0.4.0 py311hda16d9e_0\r\nscipy 1.11.1 py311hd69e9bb_0 https:\/\/ftp.osuosl.org\/pub\/open-ce\/1.10.0\r\nsentencepiece 0.1.97 h1e74c73_py311_pb4.21.12_2 https:\/\/ftp.osuosl.org\/pub\/open-ce\/1.10.0\r\nsetuptools 68.0.0 py311h6ffa863_0\r\nsix 1.16.0 pyhd3eb1b0_1\r\nsnappy 1.1.9 h29c3540_0\r\nsqlite 3.41.2 hf118e41_0\r\nsympy 1.12.1 pypyh2585a3b_103 conda-forge\r\ntabulate 0.8.10 pyhd8ed1ab_0 conda-forge\r\ntensorboard 2.13.0 pyhab0730d_pb4.21.12_1 https:\/\/ftp.osuosl.org\/pub\/open-ce\/1.10.0\r\ntensorboard-data-server 0.7.0 pyh6f84499_1 https:\/\/ftp.osuosl.org\/pub\/open-ce\/1.10.0\r\ntensorboard-plugin-wit 1.6.0 pyh9f0ad1d_0 conda-forge\r\ntk 8.6.13 hd4bbf49_0 conda-forge\r\ntokenizers 0.13.3 py311h3d4f45a_0\r\ntorchdata 0.6.0 py311_2 https:\/\/ftp.osuosl.org\/pub\/open-ce\/1.10.0\r\ntorchsnapshot 0.1.0 pyhd8ed1ab_0 conda-forge\r\ntorchtext-base 0.15.2 cuda11.8_py311_1 https:\/\/ftp.osuosl.org\/pub\/open-ce\/1.10.0\r\ntorchtnt 0.2.4 pyhd8ed1ab_0 conda-forge\r\ntorchvision-base 0.15.2 cuda11.8_py311_1 https:\/\/ftp.osuosl.org\/pub\/open-ce\/1.10.0\r\ntornado 6.3.3 py311hf118e41_0\r\ntqdm 4.65.0 py311h7837921_0\r\ntransformers 4.32.1 py311h6ffa863_0\r\ntruststore 0.8.0 py311h6ffa863_0\r\ntyping-extensions 4.7.1 py311h6ffa863_0\r\ntyping_extensions 4.7.1 py311h6ffa863_0\r\ntyping_inspect 0.9.0 pyhd8ed1ab_0 conda-forge\r\ntzdata 2023c h04d1e81_0\r\nurllib3 1.26.18 py311h6ffa863_0\r\nutf8proc 2.6.1 h140841e_0\r\nwerkzeug 2.3.8 pyhd8ed1ab_0 conda-forge\r\nwheel 0.41.2 py311h6ffa863_0\r\nxxhash 0.8.0 h140841e_3\r\nxz 5.4.2 hf118e41_0\r\nyaml 0.2.5 h7b6447c_0\r\nyaml-cpp 0.8.0 h4a02239_0\r\nyarl 1.8.1 py311hf118e41_0\r\nzipp 3.11.0 py311h6ffa863_0\r\nzlib 1.2.13 h1f2b957_6 conda-forge\r\nzstandard 0.19.0 py311hf118e41_0\r\nzstd 1.5.5 h57e4825_0","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6992\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6992\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6991","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6991\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6991\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6991\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6991","id":2367711094,"node_id":"PR_kwDODunzps5zPoQs","number":6991,"title":"Unblock NumPy 2.0","user":{"login":"NeilGirdhar","id":730137,"node_id":"MDQ6VXNlcjczMDEzNw==","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/730137?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/NeilGirdhar","html_url":"https:\/\/github.com\/NeilGirdhar","followers_url":"https:\/\/api.github.com\/users\/NeilGirdhar\/followers","following_url":"https:\/\/api.github.com\/users\/NeilGirdhar\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/NeilGirdhar\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/NeilGirdhar\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/NeilGirdhar\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/NeilGirdhar\/orgs","repos_url":"https:\/\/api.github.com\/users\/NeilGirdhar\/repos","events_url":"https:\/\/api.github.com\/users\/NeilGirdhar\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/NeilGirdhar\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":21,"created_at":"2024-06-22T09:19:53Z","updated_at":"2024-12-25T17:57:34Z","closed_at":"2024-07-12T12:04:53Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6991","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6991","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6991.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6991.patch","merged_at":"2024-07-12T12:04:53Z"},"body":"Fixes https:\/\/github.com\/huggingface\/datasets\/issues\/6980","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6991\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6991\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6990","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6990\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6990\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6990\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6990","id":2366660785,"node_id":"I_kwDODunzps6NEGCx","number":6990,"title":"Problematic rank after calling `split_dataset_by_node` twice","user":{"login":"yzhangcs","id":18402347,"node_id":"MDQ6VXNlcjE4NDAyMzQ3","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/18402347?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/yzhangcs","html_url":"https:\/\/github.com\/yzhangcs","followers_url":"https:\/\/api.github.com\/users\/yzhangcs\/followers","following_url":"https:\/\/api.github.com\/users\/yzhangcs\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/yzhangcs\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/yzhangcs\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/yzhangcs\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/yzhangcs\/orgs","repos_url":"https:\/\/api.github.com\/users\/yzhangcs\/repos","events_url":"https:\/\/api.github.com\/users\/yzhangcs\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/yzhangcs\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-06-21T14:25:26Z","updated_at":"2024-06-25T16:19:19Z","closed_at":"2024-06-25T16:19:19Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\r\n\r\nI'm trying to split `IterableDataset` by `split_dataset_by_node`.\r\nBut when doing split on a already split dataset, the resulting `rank` is greater than `world_size`.\r\n\r\n### Steps to reproduce the bug\r\n\r\nHere is the minimal code for reproduction:\r\n```py\r\n>>> from datasets import load_dataset\r\n>>> from datasets.distributed import split_dataset_by_node\r\n>>> dataset = load_dataset('fla-hub\/slimpajama-test', split='train', streaming=True) \r\n>>> dataset = split_dataset_by_node(dataset, 1, 32)\r\n>>> dataset._distributed\r\nDistributedConfig(rank=1, world_size=32)\r\n>>> dataset = split_dataset_by_node(dataset, 1, 15)\r\n>>> dataset._distributed \r\nDistributedConfig(rank=481, world_size=480)\r\n```\r\nAs you can see, the second rank 481 > 480, which is problematic.\r\n\r\n### Expected behavior\r\n\r\nI think this error comes from this line @lhoestq\r\nhttps:\/\/github.com\/huggingface\/datasets\/blob\/a6ccf944e42c1a84de81bf326accab9999b86c90\/src\/datasets\/iterable_dataset.py#L2943-L2944\r\nWe may need to obtain the rank first. Then the above code gives\r\n```py\r\n>>> dataset._distributed \r\nDistributedConfig(rank=16, world_size=480)\r\n```\r\n\r\n### Environment info\r\n\r\ndatasets==2.20.0","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6990\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6990\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6989","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6989\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6989\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6989\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6989","id":2365556449,"node_id":"I_kwDODunzps6M_4bh","number":6989,"title":"cache in nfs error","user":{"login":"simplew2011","id":66729924,"node_id":"MDQ6VXNlcjY2NzI5OTI0","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/66729924?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/simplew2011","html_url":"https:\/\/github.com\/simplew2011","followers_url":"https:\/\/api.github.com\/users\/simplew2011\/followers","following_url":"https:\/\/api.github.com\/users\/simplew2011\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/simplew2011\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/simplew2011\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/simplew2011\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/simplew2011\/orgs","repos_url":"https:\/\/api.github.com\/users\/simplew2011\/repos","events_url":"https:\/\/api.github.com\/users\/simplew2011\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/simplew2011\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-06-21T02:09:22Z","updated_at":"2025-01-29T11:44:04Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\r\n\r\n- When reading dataset, a cache will be generated to the ~\/. cache\/huggingface\/datasets directory\r\n- When using .map and .filter operations, runtime cache will be generated to the \/tmp\/hf_datasets-* directory\r\n- The default is to use the path of tempfile.tempdir\r\n- If I modify this path to the NFS disk, an error will be reported, but the program will continue to run\r\n- https:\/\/github.com\/huggingface\/datasets\/blob\/main\/src\/datasets\/config.py#L257\r\n\r\n\r\n\r\n```\r\nTraceback (most recent call last):\r\n File \"\/home\/wzp\/miniconda3\/envs\/dask\/lib\/python3.8\/site-packages\/multiprocess\/process.py\", line 315, in _bootstrap\r\n self.run()\r\n File \"\/home\/wzp\/miniconda3\/envs\/dask\/lib\/python3.8\/site-packages\/multiprocess\/process.py\", line 108, in run\r\n self._target(*self._args, **self._kwargs)\r\n File \"\/home\/wzp\/miniconda3\/envs\/dask\/lib\/python3.8\/site-packages\/multiprocess\/managers.py\", line 616, in _run_server\r\n server.serve_forever()\r\n File \"\/home\/wzp\/miniconda3\/envs\/dask\/lib\/python3.8\/site-packages\/multiprocess\/managers.py\", line 182, in serve_forever\r\n sys.exit(0)\r\nSystemExit: 0\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n File \"\/home\/wzp\/miniconda3\/envs\/dask\/lib\/python3.8\/site-packages\/multiprocess\/util.py\", line 300, in _run_finalizers\r\n finalizer()\r\n File \"\/home\/wzp\/miniconda3\/envs\/dask\/lib\/python3.8\/site-packages\/multiprocess\/util.py\", line 224, in __call__\r\n res = self._callback(*self._args, **self._kwargs)\r\n File \"\/home\/wzp\/miniconda3\/envs\/dask\/lib\/python3.8\/site-packages\/multiprocess\/util.py\", line 133, in _remove_temp_dir\r\n rmtree(tempdir)\r\n File \"\/home\/wzp\/miniconda3\/envs\/dask\/lib\/python3.8\/shutil.py\", line 718, in rmtree\r\n _rmtree_safe_fd(fd, path, onerror)\r\n File \"\/home\/wzp\/miniconda3\/envs\/dask\/lib\/python3.8\/shutil.py\", line 675, in _rmtree_safe_fd\r\n onerror(os.unlink, fullname, sys.exc_info())\r\n File \"\/home\/wzp\/miniconda3\/envs\/dask\/lib\/python3.8\/shutil.py\", line 673, in _rmtree_safe_fd\r\n os.unlink(entry.name, dir_fd=topfd)\r\nOSError: [Errno 16] Device or resource busy: '.nfs000000038330a012000030b4'\r\nTraceback (most recent call last):\r\n File \"\/home\/wzp\/miniconda3\/envs\/dask\/lib\/python3.8\/site-packages\/multiprocess\/process.py\", line 315, in _bootstrap\r\n self.run()\r\n File \"\/home\/wzp\/miniconda3\/envs\/dask\/lib\/python3.8\/site-packages\/multiprocess\/process.py\", line 108, in run\r\n self._target(*self._args, **self._kwargs)\r\n File \"\/home\/wzp\/miniconda3\/envs\/dask\/lib\/python3.8\/site-packages\/multiprocess\/managers.py\", line 616, in _run_server\r\n server.serve_forever()\r\n File \"\/home\/wzp\/miniconda3\/envs\/dask\/lib\/python3.8\/site-packages\/multiprocess\/managers.py\", line 182, in serve_forever\r\n sys.exit(0)\r\nSystemExit: 0\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n File \"\/home\/wzp\/miniconda3\/envs\/dask\/lib\/python3.8\/site-packages\/multiprocess\/util.py\", line 300, in _run_finalizers\r\n finalizer()\r\n File \"\/home\/wzp\/miniconda3\/envs\/dask\/lib\/python3.8\/site-packages\/multiprocess\/util.py\", line 224, in __call__\r\n res = self._callback(*self._args, **self._kwargs)\r\n File \"\/home\/wzp\/miniconda3\/envs\/dask\/lib\/python3.8\/site-packages\/multiprocess\/util.py\", line 133, in _remove_temp_dir\r\n rmtree(tempdir)\r\n File \"\/home\/wzp\/miniconda3\/envs\/dask\/lib\/python3.8\/shutil.py\", line 718, in rmtree\r\n _rmtree_safe_fd(fd, path, onerror)\r\n File \"\/home\/wzp\/miniconda3\/envs\/dask\/lib\/python3.8\/shutil.py\", line 675, in _rmtree_safe_fd\r\n onerror(os.unlink, fullname, sys.exc_info())\r\n File \"\/home\/wzp\/miniconda3\/envs\/dask\/lib\/python3.8\/shutil.py\", line 673, in _rmtree_safe_fd\r\n os.unlink(entry.name, dir_fd=topfd)\r\nOSError: [Errno 16] Device or resource busy: '.nfs0000000400064d4a000030e5'\r\n\r\n```\r\n\r\n### Steps to reproduce the bug\r\n\r\n```\r\nimport os\r\nimport time\r\nimport tempfile\r\n\r\nfrom datasets import load_dataset\r\n\r\ndef add_column(sample):\r\n # print(type(sample))\r\n # time.sleep(0.1)\r\n sample['__ds__stats__'] = {'data': 123}\r\n return sample\r\n\r\ndef filt_column(sample):\r\n # print(type(sample))\r\n if len(sample['content']) > 10:\r\n return True\r\n else:\r\n return False\r\n\r\nif __name__ == '__main__':\r\n\r\n input_dir = '\/mnt\/temp\/CN\/small' # some json dataset\r\n dataset = load_dataset('json', data_dir=input_dir)\r\n\r\n \r\n temp_dir = '\/media\/release\/release\/temp\/temp' # a nfs folder\r\n os.makedirs(temp_dir, exist_ok=True)\r\n \r\n # change huggingface-datasets runtime cache in nfs\uff08default in \/tmp\uff09\r\n tempfile.tempdir = temp_dir\r\n\r\n aa = dataset.map(add_column, num_proc=64)\r\n\r\n aa = aa.filter(filt_column, num_proc=64)\r\n print(aa)\r\n```\r\n\r\n### Expected behavior\r\n\r\nno error occur\r\n\r\n### Environment info\r\n\r\ndatasets==2.18.0\r\nubuntu 20.04","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6989\/reactions","total_count":1,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6989\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6988","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6988\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6988\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6988\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6988","id":2364129918,"node_id":"PR_kwDODunzps5zDpXX","number":6988,"title":"[`feat`] Move dataset card creation to method for easier overriding","user":{"login":"tomaarsen","id":37621491,"node_id":"MDQ6VXNlcjM3NjIxNDkx","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/37621491?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/tomaarsen","html_url":"https:\/\/github.com\/tomaarsen","followers_url":"https:\/\/api.github.com\/users\/tomaarsen\/followers","following_url":"https:\/\/api.github.com\/users\/tomaarsen\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/tomaarsen\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/tomaarsen\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/tomaarsen\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/tomaarsen\/orgs","repos_url":"https:\/\/api.github.com\/users\/tomaarsen\/repos","events_url":"https:\/\/api.github.com\/users\/tomaarsen\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/tomaarsen\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2024-06-20T10:47:57Z","updated_at":"2024-06-21T16:04:58Z","closed_at":null,"author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6988","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6988","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6988.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6988.patch","merged_at":null},"body":"Hello!\r\n\r\n## Pull Request overview\r\n* Move dataset card creation to method for easier overriding\r\n\r\n## Details\r\nIt's common for me to fully automatically download, reformat, and upload a dataset (e.g. see https:\/\/huggingface.co\/datasets?other=sentence-transformers), but one aspect that I cannot easily automate is the dataset card generation. This is because during `push_to_hub`, the dataset card is created in 3 lines of code in a much larger method. To automatically generate a dataset card, I need to either:\r\n1. Subclass `Dataset`\/`DatasetDict`, copy the entire `push_to_hub` method to override the ~3 lines used to generate the dataset card. This is not viable as the method is likely to change over time.\r\n2. Use `push_to_hub` normally, then separately download the pushed (but empty) dataset card, update it, and reupload the modified dataset. This works fine, but prevents me from being able to return a `Dataset` to my users which will automatically use a nice dataset card.\r\n\r\nSo, in this PR I'm proposing to move the dataset generation into another method so that it can be overridden more easily. For example, imagine the following use case:\r\n````python\r\n\r\nimport json\r\nfrom typing import Any, Dict, Optional\r\nfrom datasets import Dataset, load_dataset\r\nfrom datasets.info import DatasetInfosDict, DatasetInfo\r\nfrom datasets.utils.metadata import MetadataConfigs\r\nfrom huggingface_hub import DatasetCardData, DatasetCard\r\n\r\nTEMPLATE = r\"\"\"---\r\n{dataset_card_data}\r\n---\r\n\r\n# Dataset Card for {source_dataset_name} with mined hard negatives\r\n\r\nThis dataset is a collection of {column_one}-{column_two}-negative triplets from the {source_dataset_name} dataset. See [{source_dataset_name}](https:\/\/huggingface.co\/datasets\/{source_dataset_id}) for additional information. This dataset can be used directly with Sentence Transformers to train embedding models.\r\n\r\n## Mining Parameters\r\nThe negative samples have been mined using the following parameters:\r\n- `range_min`: {range_min}, i.e. we skip the {range_min} most similar samples\r\n- `range_max`: {range_max}, i.e. we only look at the top {range_max} most similar samples\r\n- `margin`: {margin}, i.e. we require negative similarity + margin < positive similarity, so negative samples can't be more similar than the known true answer\r\n- `sampling_strategy`: {sampling_strategy}, i.e. whether to randomly sample from the candidate negatives or take the \"top\" negatives\r\n- `num_negatives`: {num_negatives}, i.e. we mine {num_negatives} negatives per question-answer pair\r\n\r\n## Dataset Format\r\n- Columns: {column_one}, {column_two}, negative\r\n- Column types: str, str, str\r\n- Example:\r\n```python\r\n{example}\r\n```\r\n\"\"\"\r\n\r\nclass HNMDataset(Dataset):\r\n @classmethod\r\n def from_dict(cls, *args, mining_kwargs: Dict[str, Any], **kwargs) -> \"HNMDataset\":\r\n dataset = super().from_dict(*args, **kwargs)\r\n dataset.mining_kwargs = mining_kwargs\r\n return dataset\r\n \r\n def _create_dataset_card(\r\n self,\r\n dataset_card_data: DatasetCardData,\r\n dataset_card: Optional[DatasetCard],\r\n config_name: str,\r\n info_to_dump: DatasetInfo,\r\n metadata_config_to_dump: MetadataConfigs,\r\n ) -> DatasetCard:\r\n if dataset_card:\r\n return dataset_card\r\n\r\n DatasetInfosDict({config_name: info_to_dump}).to_dataset_card_data(dataset_card_data)\r\n MetadataConfigs({config_name: metadata_config_to_dump}).to_dataset_card_data(dataset_card_data)\r\n dataset_card_data.tags = [\"sentence-transformers\"]\r\n dataset_name = self.mining_kwargs[\"source_dataset\"].info.dataset_name\r\n # Very messy, just as an example:\r\n dataset_id = list(self.mining_kwargs[\"source_dataset\"].info.download_checksums.keys())[0].removeprefix(\"hf:\/\/datasets\/\").split(\"@\")[0]\r\n content = TEMPLATE.format(**{\r\n \"dataset_card_data\": str(dataset_card_data),\r\n \"source_dataset_name\": dataset_name,\r\n \"source_dataset_id\": dataset_id,\r\n \"range_min\": self.mining_kwargs[\"range_min\"],\r\n \"range_max\": self.mining_kwargs[\"range_max\"],\r\n \"margin\": self.mining_kwargs[\"margin\"],\r\n \"sampling_strategy\": self.mining_kwargs[\"sampling_strategy\"],\r\n \"num_negatives\": self.mining_kwargs[\"num_negatives\"],\r\n \"column_one\": self.column_names[0],\r\n \"column_two\": self.column_names[1],\r\n \"example\": json.dumps(self[0], indent=4),\r\n })\r\n return DatasetCard(content)\r\n\r\nsource_dataset = load_dataset(\"sentence-transformers\/gooaq\", split=\"train[:100]\")\r\ndataset = HNMDataset.from_dict({\r\n \"query\": source_dataset[\"question\"],\r\n \"answer\": source_dataset[\"answer\"],\r\n # \"negative\": ... <- In my case, this column would be 'mined' automatically with these parameters\r\n}, mining_kwargs={\r\n \"range_min\": 10,\r\n \"range_max\": 20,\r\n \"max_score\": 0.9,\r\n \"margin\": 0.1,\r\n \"sampling_strategy\": \"random\",\r\n \"num_negatives\": 3,\r\n \"source_dataset\": source_dataset,\r\n})\r\ndataset.push_to_hub(\"tomaarsen\/mining_demo\", private=True)\r\n````\r\n\r\nIn this script, I've created a subclass which stores some additional information about how the dataset was generated. It's a bit hacky (e.g. setting a `mining_kwargs` parameter in `from_dict` that wasn't created in `__init__`, but that's just a consequence of how the `from_...` methods don't accept kwargs), but it allows me to create a \"hard negatives mining\" function that returns a dataset which people can use locally like normal, but if they choose to upload it, then it'll automatically include some information, e.g.: https:\/\/huggingface.co\/datasets\/tomaarsen\/mining_demo\r\n\r\nThis allows others to actually find this dataset (e.g. via the `sentence-transformers` tag) and get an idea of the quality, source, etc. by looking at the model card.\r\n\r\n## Note\r\nI'm not fixed on this solution whatsoever: I am also completely fine with other solutions, e.g. a `dataset.set_dataset_card_creator` method that allows me to provide a function without even having to subclass anything. I'm open to all ideas :)\r\n\r\ncc @albertvillanova @lhoestq \r\ncc @LysandreJik \r\n\r\n- Tom Aarsen","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6988\/reactions","total_count":1,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":1},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6988\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6987","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6987\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6987\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6987\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6987","id":2363728190,"node_id":"PR_kwDODunzps5zCRH6","number":6987,"title":"Remove beam","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/milestones\/10","html_url":"https:\/\/github.com\/huggingface\/datasets\/milestone\/10","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/milestones\/10\/labels","id":9038583,"node_id":"MI_kwDODunzps4Aier3","number":10,"title":"3.0","description":"Next major release","creator":{"login":"mariosasko","id":47462742,"node_id":"MDQ6VXNlcjQ3NDYyNzQy","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/47462742?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/mariosasko","html_url":"https:\/\/github.com\/mariosasko","followers_url":"https:\/\/api.github.com\/users\/mariosasko\/followers","following_url":"https:\/\/api.github.com\/users\/mariosasko\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/mariosasko\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/mariosasko\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/mariosasko\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/mariosasko\/orgs","repos_url":"https:\/\/api.github.com\/users\/mariosasko\/repos","events_url":"https:\/\/api.github.com\/users\/mariosasko\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/mariosasko\/received_events","type":"User","user_view_type":"public","site_admin":false},"open_issues":3,"closed_issues":5,"state":"open","created_at":"2023-02-13T16:22:42Z","updated_at":"2024-08-21T09:35:06Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2024-06-20T07:27:14Z","updated_at":"2024-06-26T19:41:55Z","closed_at":"2024-06-26T19:35:42Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6987","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6987","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6987.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6987.patch","merged_at":"2024-06-26T19:35:42Z"},"body":"Remove beam, as part of the 3.0 release.","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6987\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6987\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6986","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6986\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6986\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6986\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6986","id":2362584179,"node_id":"PR_kwDODunzps5y-Zi0","number":6986,"title":"Add large_list type support in string_to_arrow","user":{"login":"arthasking123","id":16257131,"node_id":"MDQ6VXNlcjE2MjU3MTMx","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/16257131?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/arthasking123","html_url":"https:\/\/github.com\/arthasking123","followers_url":"https:\/\/api.github.com\/users\/arthasking123\/followers","following_url":"https:\/\/api.github.com\/users\/arthasking123\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/arthasking123\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/arthasking123\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/arthasking123\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/arthasking123\/orgs","repos_url":"https:\/\/api.github.com\/users\/arthasking123\/repos","events_url":"https:\/\/api.github.com\/users\/arthasking123\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/arthasking123\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-06-19T14:54:25Z","updated_at":"2024-08-12T14:43:48Z","closed_at":"2024-08-12T14:43:47Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6986","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6986","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6986.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6986.patch","merged_at":null},"body":"add large_list type support in string_to_arrow() and _arrow_to_datasets_dtype() in features.py\r\n\r\nFix #6984\r\n","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6986\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6986\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6985","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6985\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6985\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6985\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6985","id":2362378276,"node_id":"I_kwDODunzps6Mzwgk","number":6985,"title":"AttributeError: module 'pyarrow.lib' has no attribute 'ListViewType'","user":{"login":"firmai","id":26666267,"node_id":"MDQ6VXNlcjI2NjY2MjY3","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/26666267?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/firmai","html_url":"https:\/\/github.com\/firmai","followers_url":"https:\/\/api.github.com\/users\/firmai\/followers","following_url":"https:\/\/api.github.com\/users\/firmai\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/firmai\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/firmai\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/firmai\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/firmai\/orgs","repos_url":"https:\/\/api.github.com\/users\/firmai\/repos","events_url":"https:\/\/api.github.com\/users\/firmai\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/firmai\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2024-06-19T13:22:28Z","updated_at":"2025-03-14T18:47:53Z","closed_at":"2024-06-25T05:40:51Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI have been struggling with this for two days, any help would be appreciated. Python 3.10\r\n\r\n```\r\nfrom setfit import SetFitModel\r\nfrom huggingface_hub import login\r\n\r\naccess_token_read = \"cccxxxccc\"\r\n\r\n# Authenticate with the Hugging Face Hub\r\nlogin(token=access_token_read)\r\n\r\n# Load the models from the Hugging Face Hub\r\ntrainer_relv = SetFitModel.from_pretrained(\"snowdere\/trainer_relevance\")\r\ntrainer_trust = SetFitModel.from_pretrained(\"snowdere\/trainer_trust\")\r\ntrainer_sent = SetFitModel.from_pretrained(\"snowdere\/trainer_sent\")\r\ntrainer_topic = SetFitModel.from_pretrained(\"snowdere\/trainer_topic\")\r\n\r\n```\r\n```\r\n\r\n---------------------------------------------------------------------------\r\nAttributeError Traceback (most recent call last)\r\nCell In[6], line 1\r\n----> 1 from setfit import SetFitModel\r\n 2 from huggingface_hub import login\r\n 4 access_token_read = \"ccsddsds\"\r\n\r\nFile \/opt\/conda\/lib\/python3.10\/site-packages\/setfit\/__init__.py:7\r\n 4 import os\r\n 5 import warnings\r\n----> 7 from .data import get_templated_dataset, sample_dataset\r\n 8 from .model_card import SetFitModelCardData\r\n 9 from .modeling import SetFitHead, SetFitModel\r\n\r\nFile \/opt\/conda\/lib\/python3.10\/site-packages\/setfit\/data.py:5\r\n 3 import pandas as pd\r\n 4 import torch\r\n----> 5 from datasets import Dataset, DatasetDict, load_dataset\r\n 6 from torch.utils.data import Dataset as TorchDataset\r\n 8 from . import logging\r\n\r\nFile \/opt\/conda\/lib\/python3.10\/site-packages\/datasets\/__init__.py:18\r\n 1 # ruff: noqa\r\n 2 # Copyright 2020 The HuggingFace Datasets Authors and the TensorFlow Datasets Authors.\r\n 3 #\r\n (...)\r\n 13 # See the License for the specific language governing permissions and\r\n 14 # limitations under the License.\r\n 16 __version__ = \"2.19.0\"\r\n---> 18 from .arrow_dataset import Dataset\r\n 19 from .arrow_reader import ReadInstruction\r\n 20 from .builder import ArrowBasedBuilder, BeamBasedBuilder, BuilderConfig, DatasetBuilder, GeneratorBasedBuilder\r\n\r\nFile \/opt\/conda\/lib\/python3.10\/site-packages\/datasets\/arrow_dataset.py:76\r\n 73 from tqdm.contrib.concurrent import thread_map\r\n 75 from . import config\r\n---> 76 from .arrow_reader import ArrowReader\r\n 77 from .arrow_writer import ArrowWriter, OptimizedTypedSequence\r\n 78 from .data_files import sanitize_patterns\r\n\r\nFile \/opt\/conda\/lib\/python3.10\/site-packages\/datasets\/arrow_reader.py:29\r\n 26 from typing import TYPE_CHECKING, List, Optional, Union\r\n 28 import pyarrow as pa\r\n---> 29 import pyarrow.parquet as pq\r\n 30 from tqdm.contrib.concurrent import thread_map\r\n 32 from .download.download_config import DownloadConfig\r\n\r\nFile \/opt\/conda\/lib\/python3.10\/site-packages\/pyarrow\/parquet\/__init__.py:20\r\n 1 # Licensed to the Apache Software Foundation (ASF) under one\r\n 2 # or more contributor license agreements. See the NOTICE file\r\n 3 # distributed with this work for additional information\r\n (...)\r\n 17 \r\n 18 # flake8: noqa\r\n---> 20 from .core import *\r\n\r\nFile \/opt\/conda\/lib\/python3.10\/site-packages\/pyarrow\/parquet\/core.py:33\r\n 30 import pyarrow as pa\r\n 32 try:\r\n---> 33 import pyarrow._parquet as _parquet\r\n 34 except ImportError as exc:\r\n 35 raise ImportError(\r\n 36 \"The pyarrow installation is not built with support \"\r\n 37 f\"for the Parquet file format ({str(exc)})\"\r\n 38 ) from None\r\n\r\nFile \/opt\/conda\/lib\/python3.10\/site-packages\/pyarrow\/_parquet.pyx:1, in init pyarrow._parquet()\r\n\r\nAttributeError: module 'pyarrow.lib' has no attribute 'ListViewType'\r\n```\r\n\r\nsetfit: 1.0.3\r\ntransformers: 4.41.2\r\nlingua-language-detector: 2.0.2\r\npolars: 0.20.31\r\nlightning: None\r\ngoogle-cloud-bigquery: 3.24.0\r\nshapely: 2.0.4\r\npyarrow: 16.0.0\n\n### Steps to reproduce the bug\n\nI have tried all version combinations for Dataset and Pyarrow, the all have the same error since a few days ago. This is accross multiple scripts I have. \n\n### Expected behavior\n\nJust ron normally. \n\n### Environment info\n\n3.10","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6985\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6985\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6984","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6984\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6984\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6984\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6984","id":2362143554,"node_id":"I_kwDODunzps6My3NC","number":6984,"title":"Convert polars DataFrame back to datasets","user":{"login":"ljw20180420","id":38550511,"node_id":"MDQ6VXNlcjM4NTUwNTEx","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/38550511?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ljw20180420","html_url":"https:\/\/github.com\/ljw20180420","followers_url":"https:\/\/api.github.com\/users\/ljw20180420\/followers","following_url":"https:\/\/api.github.com\/users\/ljw20180420\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ljw20180420\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ljw20180420\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ljw20180420\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ljw20180420\/orgs","repos_url":"https:\/\/api.github.com\/users\/ljw20180420\/repos","events_url":"https:\/\/api.github.com\/users\/ljw20180420\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ljw20180420\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"closed","locked":false,"assignee":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":1,"created_at":"2024-06-19T11:38:48Z","updated_at":"2024-08-12T14:43:46Z","closed_at":"2024-08-12T14:43:46Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nThis returns error.\r\n```python\r\nfrom datasets import Dataset\r\n\r\ndsdf = Dataset.from_dict({\"x\": [[1, 2], [3, 4, 5]], \"y\": [\"a\", \"b\"]})\r\nDataset.from_polars(dsdf.to_polars())\r\n```\r\nValueError: Arrow type large_list does not have a datasets dtype equivalent.\n\n### Motivation\n\nWhen datasets contain Sequence data type, it will be converted to Arrow type large_list. However, the reverse (from large_list to Sequence) does not work.\n\n### Your contribution\n\nNo","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6984\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6984\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6983","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6983\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6983\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6983\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6983","id":2361806201,"node_id":"PR_kwDODunzps5y7tK7","number":6983,"title":"Remove metrics","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/milestones\/10","html_url":"https:\/\/github.com\/huggingface\/datasets\/milestone\/10","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/milestones\/10\/labels","id":9038583,"node_id":"MI_kwDODunzps4Aier3","number":10,"title":"3.0","description":"Next major release","creator":{"login":"mariosasko","id":47462742,"node_id":"MDQ6VXNlcjQ3NDYyNzQy","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/47462742?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/mariosasko","html_url":"https:\/\/github.com\/mariosasko","followers_url":"https:\/\/api.github.com\/users\/mariosasko\/followers","following_url":"https:\/\/api.github.com\/users\/mariosasko\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/mariosasko\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/mariosasko\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/mariosasko\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/mariosasko\/orgs","repos_url":"https:\/\/api.github.com\/users\/mariosasko\/repos","events_url":"https:\/\/api.github.com\/users\/mariosasko\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/mariosasko\/received_events","type":"User","user_view_type":"public","site_admin":false},"open_issues":3,"closed_issues":5,"state":"open","created_at":"2023-02-13T16:22:42Z","updated_at":"2024-08-21T09:35:06Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2024-06-19T09:08:55Z","updated_at":"2024-06-28T06:57:38Z","closed_at":"2024-06-28T06:51:30Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6983","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6983","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6983.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6983.patch","merged_at":"2024-06-28T06:51:30Z"},"body":"Remove all metrics, as part of the 3.0 release.\r\n\r\nNote they are deprecated since 2.5.0 version.","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6983\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6983\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6982","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6982\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6982\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6982\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6982","id":2361661469,"node_id":"I_kwDODunzps6MxBgd","number":6982,"title":"cannot split dataset when using load_dataset","user":{"login":"cybest0608","id":17721894,"node_id":"MDQ6VXNlcjE3NzIxODk0","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/17721894?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/cybest0608","html_url":"https:\/\/github.com\/cybest0608","followers_url":"https:\/\/api.github.com\/users\/cybest0608\/followers","following_url":"https:\/\/api.github.com\/users\/cybest0608\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/cybest0608\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/cybest0608\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/cybest0608\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/cybest0608\/orgs","repos_url":"https:\/\/api.github.com\/users\/cybest0608\/repos","events_url":"https:\/\/api.github.com\/users\/cybest0608\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/cybest0608\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2024-06-19T08:07:16Z","updated_at":"2024-07-08T06:20:16Z","closed_at":"2024-07-08T06:20:16Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\r\n\r\nwhen I use load_dataset methods to load mozilla-foundation\/common_voice_7_0, it can successfully download and extracted the dataset but It cannot generating the arrow document,\r\nThis bug happened in my server, my laptop, so as #6906 , but it won't happen in the google colab. I work for it for days, even I load the datasets from local path, it can Generating\u2007train\u2007split and validation split but bug happen again in test\u2007split.\r\n\r\n\r\n\r\n### Steps to reproduce the bug\r\n\r\nfrom datasets import load_dataset, load_metric, Audio\r\n\r\ncommon_voice_train = load_dataset(\"mozilla-foundation\/common_voice_7_0\", \"ja\", split=\"train\", token=selftoken, trust_remote_code=True)\r\n\r\n\r\n\r\n### Expected behavior\r\n\r\n```\r\n{\r\n\t\"name\": \"ValueError\",\r\n\t\"message\": \"Instruction \\\"train\\\" corresponds to no data!\",\r\n\t\"stack\": \"---------------------------------------------------------------------------\r\nValueError Traceback (most recent call last)\r\nCell In[2], line 3\r\n 1 from datasets import load_dataset, load_metric, Audio\r\n----> 3 common_voice_train = load_dataset(\\\"mozilla-foundation\/common_voice_7_0\\\", \\\"ja\\\", split=\\\"train\\\",token='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')#,trust_remote_code=True)#,streaming=True)\r\n 4 common_voice_test = load_dataset(\\\"mozilla-foundation\/common_voice_7_0\\\", \\\"ja\\\", split=\\\"test\\\",token='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')#,trust_remote_code=True)#,streaming=True)\r\n\r\nFile c:\\\\Users\\\\cybes\\\\.conda\\\\envs\\\\ECoG\\\\lib\\\\site-packages\\\\datasets\\\\load.py:2626, in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, verification_mode, ignore_verifications, keep_in_memory, save_infos, revision, token, use_auth_token, task, streaming, num_proc, storage_options, trust_remote_code, **config_kwargs)\r\n 2622 # Build dataset for splits\r\n 2623 keep_in_memory = (\r\n 2624 keep_in_memory if keep_in_memory is not None else is_small_dataset(builder_instance.info.dataset_size)\r\n 2625 )\r\n-> 2626 ds = builder_instance.as_dataset(split=split, verification_mode=verification_mode, in_memory=keep_in_memory)\r\n 2627 # Rename and cast features to match task schema\r\n 2628 if task is not None:\r\n 2629 # To avoid issuing the same warning twice\r\n\r\nFile c:\\\\Users\\\\cybes\\\\.conda\\\\envs\\\\ECoG\\\\lib\\\\site-packages\\\\datasets\\\\builder.py:1266, in DatasetBuilder.as_dataset(self, split, run_post_process, verification_mode, ignore_verifications, in_memory)\r\n 1263 verification_mode = VerificationMode(verification_mode or VerificationMode.BASIC_CHECKS)\r\n 1265 # Create a dataset for each of the given splits\r\n-> 1266 datasets = map_nested(\r\n 1267 partial(\r\n 1268 self._build_single_dataset,\r\n 1269 run_post_process=run_post_process,\r\n 1270 verification_mode=verification_mode,\r\n 1271 in_memory=in_memory,\r\n 1272 ),\r\n 1273 split,\r\n 1274 map_tuple=True,\r\n 1275 disable_tqdm=True,\r\n 1276 )\r\n 1277 if isinstance(datasets, dict):\r\n 1278 datasets = DatasetDict(datasets)\r\n\r\nFile c:\\\\Users\\\\cybes\\\\.conda\\\\envs\\\\ECoG\\\\lib\\\\site-packages\\\\datasets\\\\utils\\\\py_utils.py:484, in map_nested(function, data_struct, dict_only, map_list, map_tuple, map_numpy, num_proc, parallel_min_length, batched, batch_size, types, disable_tqdm, desc)\r\n 482 if batched:\r\n 483 data_struct = [data_struct]\r\n--> 484 mapped = function(data_struct)\r\n 485 if batched:\r\n 486 mapped = mapped[0]\r\n\r\nFile c:\\\\Users\\\\cybes\\\\.conda\\\\envs\\\\ECoG\\\\lib\\\\site-packages\\\\datasets\\\\builder.py:1296, in DatasetBuilder._build_single_dataset(self, split, run_post_process, verification_mode, in_memory)\r\n 1293 split = Split(split)\r\n 1295 # Build base dataset\r\n-> 1296 ds = self._as_dataset(\r\n 1297 split=split,\r\n 1298 in_memory=in_memory,\r\n 1299 )\r\n 1300 if run_post_process:\r\n 1301 for resource_file_name in self._post_processing_resources(split).values():\r\n\r\nFile c:\\\\Users\\\\cybes\\\\.conda\\\\envs\\\\ECoG\\\\lib\\\\site-packages\\\\datasets\\\\builder.py:1370, in DatasetBuilder._as_dataset(self, split, in_memory)\r\n 1368 if self._check_legacy_cache():\r\n 1369 dataset_name = self.name\r\n-> 1370 dataset_kwargs = ArrowReader(cache_dir, self.info).read(\r\n 1371 name=dataset_name,\r\n 1372 instructions=split,\r\n 1373 split_infos=self.info.splits.values(),\r\n 1374 in_memory=in_memory,\r\n 1375 )\r\n 1376 fingerprint = self._get_dataset_fingerprint(split)\r\n 1377 return Dataset(fingerprint=fingerprint, **dataset_kwargs)\r\n\r\nFile c:\\\\Users\\\\cybes\\\\.conda\\\\envs\\\\ECoG\\\\lib\\\\site-packages\\\\datasets\\\\arrow_reader.py:256, in BaseReader.read(self, name, instructions, split_infos, in_memory)\r\n 254 msg = f'Instruction \\\"{instructions}\\\" corresponds to no data!'\r\n 255 #msg = f'Instruction \\\"{self._path}\\\",\\\"{name}\\\",\\\"{instructions}\\\",\\\"{split_infos}\\\" corresponds to no data!'\r\n--> 256 raise ValueError(msg)\r\n 257 return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory)\r\n\r\nValueError: Instruction \\\"train\\\" corresponds to no data!\"\r\n}\r\n```\r\n\r\n### Environment info\r\n\r\nEnvironment:\r\npython 3.9\r\nwindows 11 pro\r\nVScode+jupyter","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6982\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6982\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6981","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6981\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6981\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6981\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6981","id":2361520022,"node_id":"PR_kwDODunzps5y6tnN","number":6981,"title":"Update docs on trust_remote_code defaults to False","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-06-19T07:12:21Z","updated_at":"2024-06-19T14:32:59Z","closed_at":"2024-06-19T14:26:37Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6981","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6981","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6981.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6981.patch","merged_at":"2024-06-19T14:26:37Z"},"body":"Update docs on trust_remote_code defaults to False.\r\n\r\nThe docs needed to be updated due to this PR:\r\n- #6954","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6981\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6981\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6980","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6980\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6980\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6980\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6980","id":2360909930,"node_id":"I_kwDODunzps6MuKBq","number":6980,"title":"Support NumPy 2.0","user":{"login":"NeilGirdhar","id":730137,"node_id":"MDQ6VXNlcjczMDEzNw==","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/730137?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/NeilGirdhar","html_url":"https:\/\/github.com\/NeilGirdhar","followers_url":"https:\/\/api.github.com\/users\/NeilGirdhar\/followers","following_url":"https:\/\/api.github.com\/users\/NeilGirdhar\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/NeilGirdhar\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/NeilGirdhar\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/NeilGirdhar\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/NeilGirdhar\/orgs","repos_url":"https:\/\/api.github.com\/users\/NeilGirdhar\/repos","events_url":"https:\/\/api.github.com\/users\/NeilGirdhar\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/NeilGirdhar\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-06-18T23:30:22Z","updated_at":"2024-07-12T12:04:54Z","closed_at":"2024-07-12T12:04:53Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\r\n\r\nSupport NumPy 2.0.\r\n\r\n### Motivation\r\n\r\nNumPy introduces the Array API, which bridges the gap between machine learning libraries. Many clients of HuggingFace are eager to start using the Array API.\r\n\r\nBesides that, NumPy 2 provides a cleaner interface than NumPy 1.\r\n\r\n### Tasks\r\n\r\nNumPy 2.0 was released for testing so that libraries could ensure compatibility [since mid-March](https:\/\/github.com\/numpy\/numpy\/issues\/24300#issuecomment-1986815755). What needs to be done for HuggingFace to support Numpy 2?\r\n\r\n- [x] Fix use of `array`: https:\/\/github.com\/huggingface\/datasets\/pull\/6976\r\n- [ ] Remove [NumPy version limit](https:\/\/github.com\/huggingface\/datasets\/pull\/6975): https:\/\/github.com\/huggingface\/datasets\/pull\/6991","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6980\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6980\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6979","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6979\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6979\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6979\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6979","id":2360175363,"node_id":"I_kwDODunzps6MrWsD","number":6979,"title":"How can I load partial parquet files only?","user":{"login":"lucasjinreal","id":21303438,"node_id":"MDQ6VXNlcjIxMzAzNDM4","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/21303438?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lucasjinreal","html_url":"https:\/\/github.com\/lucasjinreal","followers_url":"https:\/\/api.github.com\/users\/lucasjinreal\/followers","following_url":"https:\/\/api.github.com\/users\/lucasjinreal\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lucasjinreal\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lucasjinreal\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lucasjinreal\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lucasjinreal\/orgs","repos_url":"https:\/\/api.github.com\/users\/lucasjinreal\/repos","events_url":"https:\/\/api.github.com\/users\/lucasjinreal\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lucasjinreal\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2024-06-18T15:44:16Z","updated_at":"2024-06-21T17:09:32Z","closed_at":"2024-06-21T13:32:50Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"I have a HUGE dataset about 14TB, I unable to download all parquet all. I just take about 100 from it.\r\n\r\ndataset = load_dataset(\"xx\/\", data_files=\"data\/train-001*-of-00314.parquet\")\r\n\r\nHow can I just using 000 - 100 from a 00314 from all partially?\r\n\r\nI search whole net didn't found a solution, **this is stupid if they didn't support it, and I swear I wont using stupid parquet any more**\r\n","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6979\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6979\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6978","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6978\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6978\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6978\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6978","id":2359511469,"node_id":"PR_kwDODunzps5yz0h6","number":6978,"title":"Fix regression for pandas < 2.0.0 in JSON loader","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2024-06-18T10:26:34Z","updated_at":"2024-06-19T06:23:24Z","closed_at":"2024-06-19T05:50:18Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6978","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6978","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6978.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6978.patch","merged_at":"2024-06-19T05:50:18Z"},"body":"A regression was introduced for pandas < 2.0.0 in PR:\r\n- #6914\r\n\r\nAs described in pandas docs, the `dtype_backend` parameter was first added in pandas 2.0.0: https:\/\/pandas.pydata.org\/docs\/reference\/api\/pandas.read_json.html\r\n\r\nThis PR fixes the regression by passing (or not) the `dtype_backend` parameter depending on pandas version.\r\n\r\nMaybe, in a future 3.0 `datasets` release, we could just require pandas > 2.0.\r\n\r\nReported by:\r\n- #6977","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6978\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6978\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6977","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6977\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6977\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6977\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6977","id":2359295045,"node_id":"I_kwDODunzps6Mn_xF","number":6977,"title":"load json file error with v2.20.0","user":{"login":"xiaoyaolangzhi","id":15037766,"node_id":"MDQ6VXNlcjE1MDM3NzY2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/15037766?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/xiaoyaolangzhi","html_url":"https:\/\/github.com\/xiaoyaolangzhi","followers_url":"https:\/\/api.github.com\/users\/xiaoyaolangzhi\/followers","following_url":"https:\/\/api.github.com\/users\/xiaoyaolangzhi\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/xiaoyaolangzhi\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/xiaoyaolangzhi\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/xiaoyaolangzhi\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/xiaoyaolangzhi\/orgs","repos_url":"https:\/\/api.github.com\/users\/xiaoyaolangzhi\/repos","events_url":"https:\/\/api.github.com\/users\/xiaoyaolangzhi\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/xiaoyaolangzhi\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":2,"created_at":"2024-06-18T08:41:01Z","updated_at":"2024-06-18T10:06:10Z","closed_at":"2024-06-18T10:06:09Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\n```\r\nload_dataset(path=\"json\", data_files=\".\/test.json\")\r\n```\r\n```\r\nGenerating train split: 0 examples [00:00, ? examples\/s]\r\nTraceback (most recent call last):\r\n File \"\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/packaged_modules\/json\/json.py\", line 132, in _generate_tables\r\n pa_table = paj.read_json(\r\n File \"pyarrow\/_json.pyx\", line 308, in pyarrow._json.read_json\r\n File \"pyarrow\/error.pxi\", line 154, in pyarrow.lib.pyarrow_internal_check_status\r\n File \"pyarrow\/error.pxi\", line 91, in pyarrow.lib.check_status\r\npyarrow.lib.ArrowInvalid: JSON parse error: Column() changed from object to array in row 0\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n File \"\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/builder.py\", line 1997, in _prepare_split_single\r\n for _, table in generator:\r\n File \"\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/packaged_modules\/json\/json.py\", line 155, in _generate_tables\r\n df = pd.read_json(f, dtype_backend=\"pyarrow\")\r\n File \"\/usr\/local\/lib\/python3.10\/dist-packages\/pandas\/util\/_decorators.py\", line 211, in wrapper\r\n return func(*args, **kwargs)\r\n File \"\/usr\/local\/lib\/python3.10\/dist-packages\/pandas\/util\/_decorators.py\", line 331, in wrapper\r\n return func(*args, **kwargs)\r\nTypeError: read_json() got an unexpected keyword argument 'dtype_backend'\r\n\r\nThe above exception was the direct cause of the following exception:\r\n\r\nTraceback (most recent call last):\r\n File \"\/app\/t1.py\", line 11, in \r\n load_dataset(path=data_path, data_files=\".\/t2.json\")\r\n File \"\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/load.py\", line 2616, in load_dataset\r\n builder_instance.download_and_prepare(\r\n File \"\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/builder.py\", line 1029, in download_and_prepare\r\n self._download_and_prepare(\r\n File \"\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/builder.py\", line 1124, in _download_and_prepare\r\n self._prepare_split(split_generator, **prepare_split_kwargs)\r\n File \"\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/builder.py\", line 1884, in _prepare_split\r\n for job_id, done, content in self._prepare_split_single(\r\n File \"\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/builder.py\", line 2040, in _prepare_split_single\r\n raise DatasetGenerationError(\"An error occurred while generating the dataset\") from e\r\ndatasets.exceptions.DatasetGenerationError: An error occurred while generating the dataset\r\n```\r\n```\r\nimport pandas as pd\r\nwith open(\".\/test.json\", \"r\") as f:\r\n df = pd.read_json(f, dtype_backend=\"pyarrow\")\r\n```\r\n```\r\nTraceback (most recent call last):\r\n File \"\/app\/t3.py\", line 3, in \r\n df = pd.read_json(f, dtype_backend=\"pyarrow\")\r\n File \"\/usr\/local\/lib\/python3.10\/dist-packages\/pandas\/util\/_decorators.py\", line 211, in wrapper\r\n return func(*args, **kwargs)\r\n File \"\/usr\/local\/lib\/python3.10\/dist-packages\/pandas\/util\/_decorators.py\", line 331, in wrapper\r\n return func(*args, **kwargs)\r\nTypeError: read_json() got an unexpected keyword argument 'dtype_backend'\r\n```\n\n### Steps to reproduce the bug\n\n.\n\n### Expected behavior\n\n.\n\n### Environment info\n\n ```\r\ndatasets 2.20.0\r\npandas 1.5.3\r\n```","closed_by":{"login":"xiaoyaolangzhi","id":15037766,"node_id":"MDQ6VXNlcjE1MDM3NzY2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/15037766?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/xiaoyaolangzhi","html_url":"https:\/\/github.com\/xiaoyaolangzhi","followers_url":"https:\/\/api.github.com\/users\/xiaoyaolangzhi\/followers","following_url":"https:\/\/api.github.com\/users\/xiaoyaolangzhi\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/xiaoyaolangzhi\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/xiaoyaolangzhi\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/xiaoyaolangzhi\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/xiaoyaolangzhi\/orgs","repos_url":"https:\/\/api.github.com\/users\/xiaoyaolangzhi\/repos","events_url":"https:\/\/api.github.com\/users\/xiaoyaolangzhi\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/xiaoyaolangzhi\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6977\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6977\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6976","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6976\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6976\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6976\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6976","id":2357107203,"node_id":"PR_kwDODunzps5yrmNP","number":6976,"title":"Ensure compatibility with numpy 2.0.0","user":{"login":"KennethEnevoldsen","id":23721977,"node_id":"MDQ6VXNlcjIzNzIxOTc3","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/23721977?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/KennethEnevoldsen","html_url":"https:\/\/github.com\/KennethEnevoldsen","followers_url":"https:\/\/api.github.com\/users\/KennethEnevoldsen\/followers","following_url":"https:\/\/api.github.com\/users\/KennethEnevoldsen\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/KennethEnevoldsen\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/KennethEnevoldsen\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/KennethEnevoldsen\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/KennethEnevoldsen\/orgs","repos_url":"https:\/\/api.github.com\/users\/KennethEnevoldsen\/repos","events_url":"https:\/\/api.github.com\/users\/KennethEnevoldsen\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/KennethEnevoldsen\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-06-17T11:29:22Z","updated_at":"2024-06-19T14:30:32Z","closed_at":"2024-06-19T14:04:34Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6976","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6976","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6976.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6976.patch","merged_at":"2024-06-19T14:04:34Z"},"body":"Following the conversion guide, copy=False is no longer required and will result in an error: https:\/\/numpy.org\/devdocs\/numpy_2_0_migration_guide.html#adapting-to-changes-in-the-copy-keyword.\r\n\r\nThe following fix should resolve the issue.\r\n\r\nerror found during testing on the MTEB repository e.g. [here](https:\/\/github.com\/embeddings-benchmark\/mteb\/pull\/938)","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6976\/reactions","total_count":2,"+1":2,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6976\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6975","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6975\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6975\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6975\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6975","id":2357003959,"node_id":"PR_kwDODunzps5yrPct","number":6975,"title":"Set temporary numpy upper version < 2.0.0 to fix CI","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-06-17T10:36:54Z","updated_at":"2024-06-17T12:49:53Z","closed_at":"2024-06-17T12:43:56Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6975","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6975","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6975.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6975.patch","merged_at":"2024-06-17T12:43:56Z"},"body":"Set temporary numpy upper version < 2.0.0 to fix CI. See: https:\/\/github.com\/huggingface\/datasets\/actions\/runs\/9546031216\/job\/26308072017\r\n```\r\nA module that was compiled using NumPy 1.x cannot be run in\r\nNumPy 2.0.0 as it may crash. To support both 1.x and 2.x\r\nversions of NumPy, modules must be compiled with NumPy 2.0.\r\nSome module may need to rebuild instead e.g. with 'pybind11>=2.12'.\r\n\r\nIf you are a user of the module, the easiest solution will be to\r\ndowngrade to 'numpy<2' or try to upgrade the affected module.\r\nWe expect that some modules will need time to support NumPy 2.\r\n```","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6975\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6975\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6973","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6973\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6973\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6973\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6973","id":2355517362,"node_id":"I_kwDODunzps6MZley","number":6973,"title":"IndexError during training with Squad dataset and T5-small model","user":{"login":"ramtunguturi36","id":151521233,"node_id":"U_kgDOCQgH0Q","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/151521233?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ramtunguturi36","html_url":"https:\/\/github.com\/ramtunguturi36","followers_url":"https:\/\/api.github.com\/users\/ramtunguturi36\/followers","following_url":"https:\/\/api.github.com\/users\/ramtunguturi36\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ramtunguturi36\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ramtunguturi36\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ramtunguturi36\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ramtunguturi36\/orgs","repos_url":"https:\/\/api.github.com\/users\/ramtunguturi36\/repos","events_url":"https:\/\/api.github.com\/users\/ramtunguturi36\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ramtunguturi36\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-06-16T07:53:54Z","updated_at":"2024-07-01T11:25:40Z","closed_at":"2024-07-01T11:25:40Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI am encountering an IndexError while training a T5-small model on the Squad dataset using the transformers and datasets libraries. The error occurs even with a minimal reproducible example, suggesting a potential bug or incompatibility.\n\n### Steps to reproduce the bug\n\n1.Install the required libraries: !pip install transformers datasets\r\n2.Run the following code:\r\n!pip install transformers datasets\r\n\r\nimport torch\r\nfrom transformers import AutoTokenizer, AutoModelForSeq2SeqLM, TrainingArguments, Trainer, DataCollatorWithPadding\r\n\r\n# Load a small, publicly available dataset\r\nfrom datasets import load_dataset\r\ndataset = load_dataset(\"squad\", split=\"train[:100]\") # Use a small subset for testing\r\n\r\n# Load a pre-trained model and tokenizer\r\nmodel_name = \"t5-small\"\r\ntokenizer = AutoTokenizer.from_pretrained(model_name)\r\nmodel = AutoModelForSeq2SeqLM.from_pretrained(model_name)\r\n\r\n# Define a basic data collator\r\ndata_collator = DataCollatorWithPadding(tokenizer=tokenizer)\r\n\r\n# Define training arguments\r\ntraining_args = TrainingArguments(\r\n output_dir=\".\/results\",\r\n per_device_train_batch_size=2,\r\n num_train_epochs=1,\r\n)\r\n\r\n# Create a trainer\r\ntrainer = Trainer(\r\n model=model,\r\n args=training_args,\r\n train_dataset=dataset,\r\n data_collator=data_collator,\r\n)\r\n\r\n# Train the model\r\ntrainer.train()\n\n### Expected behavior\n\n---------------------------------------------------------------------------\r\nIndexError Traceback (most recent call last)\r\n[](https:\/\/localhost:8080\/#) in ()\r\n 32 \r\n 33 # Train the model\r\n---> 34 trainer.train()\r\n\r\n10 frames\r\n[\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/formatting\/formatting.py](https:\/\/localhost:8080\/#) in _check_valid_index_key(key, size)\r\n 427 if isinstance(key, int):\r\n 428 if (key < 0 and key + size < 0) or (key >= size):\r\n--> 429 raise IndexError(f\"Invalid key: {key} is out of bounds for size {size}\")\r\n 430 return\r\n 431 elif isinstance(key, slice):\r\n\r\nIndexError: Invalid key: 42 is out of bounds for size 0\n\n### Environment info\n\ntransformers version:4.41.2\r\ndatasets version:1.18.4\r\nPython version:3.10.12\r\n","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6973\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6973\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6972","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6972\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6972\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6972\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6972","id":2353531912,"node_id":"PR_kwDODunzps5yfa_e","number":6972,"title":"Fix webdataset pickling","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-06-14T14:43:02Z","updated_at":"2024-06-14T15:43:43Z","closed_at":"2024-06-14T15:37:35Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6972","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6972","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6972.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6972.patch","merged_at":"2024-06-14T15:37:35Z"},"body":"...by making tracked iterables picklable.\r\n\r\nThis is important to make streaming datasets compatible with multiprocessing e.g. for parallel data loading","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6972\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6972\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6971","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6971\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6971\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6971\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6971","id":2351830856,"node_id":"PR_kwDODunzps5yZoc3","number":6971,"title":"packaging: Remove useless dependencies","user":{"login":"daskol","id":9336514,"node_id":"MDQ6VXNlcjkzMzY1MTQ=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/9336514?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/daskol","html_url":"https:\/\/github.com\/daskol","followers_url":"https:\/\/api.github.com\/users\/daskol\/followers","following_url":"https:\/\/api.github.com\/users\/daskol\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/daskol\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/daskol\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/daskol\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/daskol\/orgs","repos_url":"https:\/\/api.github.com\/users\/daskol\/repos","events_url":"https:\/\/api.github.com\/users\/daskol\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/daskol\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2024-06-13T18:43:43Z","updated_at":"2024-06-14T14:03:34Z","closed_at":"2024-06-14T13:57:24Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6971","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6971","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6971.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6971.patch","merged_at":"2024-06-14T13:57:24Z"},"body":"Revert changes in #6396 and #6404. CVE-2023-47248 has been fixed since PyArrow v14.0.1. Meanwhile Python requirements requires `pyarrow>=15.0.0`.","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6971\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6971\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6970","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6970\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6970\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6970\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6970","id":2351380029,"node_id":"PR_kwDODunzps5yYF37","number":6970,"title":"Set dev version","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-06-13T14:59:45Z","updated_at":"2024-06-13T15:06:18Z","closed_at":"2024-06-13T14:59:56Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6970","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6970","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6970.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6970.patch","merged_at":"2024-06-13T14:59:56Z"},"body":null,"closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6970\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6970\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6969","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6969\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6969\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6969\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6969","id":2351351436,"node_id":"PR_kwDODunzps5yX_nC","number":6969,"title":"Release: 2.20.0","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-06-13T14:48:20Z","updated_at":"2024-06-13T15:04:39Z","closed_at":"2024-06-13T14:55:53Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6969","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6969","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6969.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6969.patch","merged_at":"2024-06-13T14:55:53Z"},"body":null,"closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6969\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6969\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6968","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6968\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6968\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6968\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6968","id":2351331417,"node_id":"PR_kwDODunzps5yX7Qr","number":6968,"title":"Use `HF_HUB_OFFLINE` instead of `HF_DATASETS_OFFLINE`","user":{"login":"Wauplin","id":11801849,"node_id":"MDQ6VXNlcjExODAxODQ5","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/11801849?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Wauplin","html_url":"https:\/\/github.com\/Wauplin","followers_url":"https:\/\/api.github.com\/users\/Wauplin\/followers","following_url":"https:\/\/api.github.com\/users\/Wauplin\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Wauplin\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Wauplin\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Wauplin\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Wauplin\/orgs","repos_url":"https:\/\/api.github.com\/users\/Wauplin\/repos","events_url":"https:\/\/api.github.com\/users\/Wauplin\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Wauplin\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2024-06-13T14:39:40Z","updated_at":"2024-06-13T17:31:37Z","closed_at":"2024-06-13T17:25:37Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6968","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6968","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6968.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6968.patch","merged_at":"2024-06-13T17:25:37Z"},"body":"To use `datasets` offline, one can use the `HF_DATASETS_OFFLINE` environment variable. This PR makes `HF_HUB_OFFLINE` the recommended environment variable for offline training. Goal is to be more consistent with the rest of HF ecosystem and have a single config value to set.\r\n\r\nThe changes are backward-compatible meaning that:\r\n- `HF_DATASETS_OFFLINE` environment is still taken into account, though not documented\r\n- `datasets.config.HF_DATASETS_OFFLINE` still exists, though it is not used anymore (in favor of `datasets.config.HF_HUB_OFFLINE`)\r\n\r\n\r\n**Note:** it might break things in downstream libraries if they were monkeypatching `datasets.config.HF_DATASETS_OFFLINE` in their CI tests (for instance). Not much of a problem IMO.","closed_by":{"login":"Wauplin","id":11801849,"node_id":"MDQ6VXNlcjExODAxODQ5","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/11801849?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Wauplin","html_url":"https:\/\/github.com\/Wauplin","followers_url":"https:\/\/api.github.com\/users\/Wauplin\/followers","following_url":"https:\/\/api.github.com\/users\/Wauplin\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Wauplin\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Wauplin\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Wauplin\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Wauplin\/orgs","repos_url":"https:\/\/api.github.com\/users\/Wauplin\/repos","events_url":"https:\/\/api.github.com\/users\/Wauplin\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Wauplin\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6968\/reactions","total_count":1,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6968\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6967","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6967\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6967\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6967\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6967","id":2349146398,"node_id":"I_kwDODunzps6MBSEe","number":6967,"title":"Method to load Laion400m","user":{"login":"humanely","id":6862868,"node_id":"MDQ6VXNlcjY4NjI4Njg=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/6862868?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/humanely","html_url":"https:\/\/github.com\/humanely","followers_url":"https:\/\/api.github.com\/users\/humanely\/followers","following_url":"https:\/\/api.github.com\/users\/humanely\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/humanely\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/humanely\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/humanely\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/humanely\/orgs","repos_url":"https:\/\/api.github.com\/users\/humanely\/repos","events_url":"https:\/\/api.github.com\/users\/humanely\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/humanely\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-06-12T16:04:04Z","updated_at":"2024-06-12T16:04:04Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nLarge datasets like Laion400m are provided as embeddings. The provided methods in load_dataset are not straightforward for loading embedding files, i.e. img_emb_XX.npy ; XX = 0 to 99\r\n\n\n### Motivation\n\nThe trial and experimentation is the key pivot of HF. It would be great if HF can load embeddings files s,ealessly.\n\n### Your contribution\n\nI cam write the loader with some help.","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6967\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6967\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6966","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6966\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6966\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6966\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6966","id":2348934466,"node_id":"PR_kwDODunzps5yPwL4","number":6966,"title":"Remove underlines between badges","user":{"login":"andrewhong04","id":35881688,"node_id":"MDQ6VXNlcjM1ODgxNjg4","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/35881688?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/andrewhong04","html_url":"https:\/\/github.com\/andrewhong04","followers_url":"https:\/\/api.github.com\/users\/andrewhong04\/followers","following_url":"https:\/\/api.github.com\/users\/andrewhong04\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/andrewhong04\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/andrewhong04\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/andrewhong04\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/andrewhong04\/orgs","repos_url":"https:\/\/api.github.com\/users\/andrewhong04\/repos","events_url":"https:\/\/api.github.com\/users\/andrewhong04\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/andrewhong04\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-06-12T14:32:11Z","updated_at":"2024-06-19T14:16:21Z","closed_at":"2024-06-19T14:10:11Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6966","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6966","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6966.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6966.patch","merged_at":"2024-06-19T14:10:11Z"},"body":"## Before:\r\n\"image\"\r\n\r\n## After:\r\n\"image\"\r\n","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6966\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6966\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6965","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6965\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6965\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6965\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6965","id":2348653895,"node_id":"PR_kwDODunzps5yOyNG","number":6965,"title":"Improve skip take shuffling and distributed","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-06-12T12:30:27Z","updated_at":"2024-06-24T15:22:21Z","closed_at":"2024-06-24T15:16:16Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6965","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6965","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6965.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6965.patch","merged_at":"2024-06-24T15:16:16Z"},"body":"set the right behavior of skip\/take depending on whether it's called after or before shuffle\/split_by_node","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6965\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6965\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6964","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6964\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6964\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6964\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6964","id":2344973229,"node_id":"PR_kwDODunzps5yCNGa","number":6964,"title":"Fix resuming arrow format","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-06-10T22:40:33Z","updated_at":"2024-06-14T15:04:49Z","closed_at":"2024-06-14T14:58:37Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6964","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6964","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6964.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6964.patch","merged_at":"2024-06-14T14:58:37Z"},"body":"following https:\/\/github.com\/huggingface\/datasets\/pull\/6658","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6964\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6964\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6963","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6963\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6963\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6963\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6963","id":2344269477,"node_id":"PR_kwDODunzps5x_yu-","number":6963,"title":"[Streaming] retry on requests errors","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2024-06-10T15:51:56Z","updated_at":"2024-06-28T09:53:11Z","closed_at":"2024-06-28T09:46:52Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6963","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6963","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6963.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6963.patch","merged_at":"2024-06-28T09:46:52Z"},"body":"reported in https:\/\/discuss.huggingface.co\/t\/speeding-up-streaming-of-large-datasets-fineweb\/90714\/6 when training using a streaming a dataloader\r\n\r\ncc @Wauplin it looks like the retries from `hfh` are not always enough. In this PR I let `datasets` do additional retries (that users can configure in `datasets.config`) since I couldn't find an easy way to increase the max_retries for `hfh` users in general.","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6963\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6963\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6962","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6962\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6962\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6962\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6962","id":2343394378,"node_id":"PR_kwDODunzps5x8yHt","number":6962,"title":"fix(ci): remove unnecessary permissions","user":{"login":"McPatate","id":9112841,"node_id":"MDQ6VXNlcjkxMTI4NDE=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/9112841?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/McPatate","html_url":"https:\/\/github.com\/McPatate","followers_url":"https:\/\/api.github.com\/users\/McPatate\/followers","following_url":"https:\/\/api.github.com\/users\/McPatate\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/McPatate\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/McPatate\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/McPatate\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/McPatate\/orgs","repos_url":"https:\/\/api.github.com\/users\/McPatate\/repos","events_url":"https:\/\/api.github.com\/users\/McPatate\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/McPatate\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-06-10T09:28:02Z","updated_at":"2024-06-11T08:31:52Z","closed_at":"2024-06-11T08:25:47Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6962","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6962","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6962.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6962.patch","merged_at":"2024-06-11T08:25:47Z"},"body":"### What does this PR do?\r\n\r\nRemove unnecessary permissions granted to the actions workflow.\r\n\r\nSorry for the mishap.","closed_by":{"login":"McPatate","id":9112841,"node_id":"MDQ6VXNlcjkxMTI4NDE=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/9112841?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/McPatate","html_url":"https:\/\/github.com\/McPatate","followers_url":"https:\/\/api.github.com\/users\/McPatate\/followers","following_url":"https:\/\/api.github.com\/users\/McPatate\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/McPatate\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/McPatate\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/McPatate\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/McPatate\/orgs","repos_url":"https:\/\/api.github.com\/users\/McPatate\/repos","events_url":"https:\/\/api.github.com\/users\/McPatate\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/McPatate\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6962\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6962\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6961","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6961\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6961\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6961\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6961","id":2342022418,"node_id":"I_kwDODunzps6LmG0S","number":6961,"title":"Manual downloads should count as downloads","user":{"login":"umarbutler","id":8473183,"node_id":"MDQ6VXNlcjg0NzMxODM=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8473183?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/umarbutler","html_url":"https:\/\/github.com\/umarbutler","followers_url":"https:\/\/api.github.com\/users\/umarbutler\/followers","following_url":"https:\/\/api.github.com\/users\/umarbutler\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/umarbutler\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/umarbutler\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/umarbutler\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/umarbutler\/orgs","repos_url":"https:\/\/api.github.com\/users\/umarbutler\/repos","events_url":"https:\/\/api.github.com\/users\/umarbutler\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/umarbutler\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-06-09T04:52:06Z","updated_at":"2024-06-13T16:05:00Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nI would like to request that manual downloads of data files from Hugging Face dataset repositories count as downloads of a dataset. According to the documentation for the Hugging Face Hub, that is currently not the case: https:\/\/huggingface.co\/docs\/hub\/en\/datasets-download-stats\n\n### Motivation\n\nThis would ensure that downloads are accurately reported to end users.\n\n### Your contribution\n\nN\/A","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6961\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6961\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6960","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6960\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6960\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6960\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6960","id":2340791685,"node_id":"PR_kwDODunzps5x0R3T","number":6960,"title":"feat(ci): add trufflehog secrets detection","user":{"login":"McPatate","id":9112841,"node_id":"MDQ6VXNlcjkxMTI4NDE=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/9112841?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/McPatate","html_url":"https:\/\/github.com\/McPatate","followers_url":"https:\/\/api.github.com\/users\/McPatate\/followers","following_url":"https:\/\/api.github.com\/users\/McPatate\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/McPatate\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/McPatate\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/McPatate\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/McPatate\/orgs","repos_url":"https:\/\/api.github.com\/users\/McPatate\/repos","events_url":"https:\/\/api.github.com\/users\/McPatate\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/McPatate\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2024-06-07T16:18:23Z","updated_at":"2024-06-08T14:58:27Z","closed_at":"2024-06-08T14:52:18Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6960","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6960","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6960.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6960.patch","merged_at":"2024-06-08T14:52:18Z"},"body":"### What does this PR do?\r\n\r\nAdding a GH action to scan for leaked secrets on each commit.\r\n","closed_by":{"login":"McPatate","id":9112841,"node_id":"MDQ6VXNlcjkxMTI4NDE=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/9112841?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/McPatate","html_url":"https:\/\/github.com\/McPatate","followers_url":"https:\/\/api.github.com\/users\/McPatate\/followers","following_url":"https:\/\/api.github.com\/users\/McPatate\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/McPatate\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/McPatate\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/McPatate\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/McPatate\/orgs","repos_url":"https:\/\/api.github.com\/users\/McPatate\/repos","events_url":"https:\/\/api.github.com\/users\/McPatate\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/McPatate\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6960\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6960\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6959","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6959\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6959\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6959\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6959","id":2340229908,"node_id":"PR_kwDODunzps5xyVt6","number":6959,"title":"Better error handling in `dataset_module_factory`","user":{"login":"Wauplin","id":11801849,"node_id":"MDQ6VXNlcjExODAxODQ5","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/11801849?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Wauplin","html_url":"https:\/\/github.com\/Wauplin","followers_url":"https:\/\/api.github.com\/users\/Wauplin\/followers","following_url":"https:\/\/api.github.com\/users\/Wauplin\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Wauplin\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Wauplin\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Wauplin\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Wauplin\/orgs","repos_url":"https:\/\/api.github.com\/users\/Wauplin\/repos","events_url":"https:\/\/api.github.com\/users\/Wauplin\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Wauplin\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2024-06-07T11:24:15Z","updated_at":"2024-06-10T07:33:53Z","closed_at":"2024-06-10T07:27:43Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6959","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6959","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6959.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6959.patch","merged_at":"2024-06-10T07:27:43Z"},"body":"cc @cakiki who reported it on [slack](https:\/\/huggingface.slack.com\/archives\/C039P47V1L5\/p1717754405578539) (private link)\r\n\r\nThis PR updates how errors are handled in `dataset_module_factory` when the `dataset_info` cannot be accessed:\r\n1. Use multiple `except ... as e` instead of using `isinstance(e, ...)`\r\n2. Always raise `DatasetNotFoundError` with `from e` so that the initial error is explicitly logged in the stacktrace.\r\n3. Differentiate `RepoNotFoundError` \/ `GatedRepoError` \/ `RevisionNotFoundError` cases","closed_by":{"login":"Wauplin","id":11801849,"node_id":"MDQ6VXNlcjExODAxODQ5","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/11801849?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Wauplin","html_url":"https:\/\/github.com\/Wauplin","followers_url":"https:\/\/api.github.com\/users\/Wauplin\/followers","following_url":"https:\/\/api.github.com\/users\/Wauplin\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Wauplin\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Wauplin\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Wauplin\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Wauplin\/orgs","repos_url":"https:\/\/api.github.com\/users\/Wauplin\/repos","events_url":"https:\/\/api.github.com\/users\/Wauplin\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Wauplin\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6959\/reactions","total_count":2,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":2,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6959\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6958","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6958\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6958\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6958\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6958","id":2337476383,"node_id":"I_kwDODunzps6LUw8f","number":6958,"title":"My Private Dataset doesn't exist on the Hub or cannot be accessed","user":{"login":"wangguan1995","id":39621324,"node_id":"MDQ6VXNlcjM5NjIxMzI0","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/39621324?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/wangguan1995","html_url":"https:\/\/github.com\/wangguan1995","followers_url":"https:\/\/api.github.com\/users\/wangguan1995\/followers","following_url":"https:\/\/api.github.com\/users\/wangguan1995\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/wangguan1995\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/wangguan1995\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/wangguan1995\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/wangguan1995\/orgs","repos_url":"https:\/\/api.github.com\/users\/wangguan1995\/repos","events_url":"https:\/\/api.github.com\/users\/wangguan1995\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/wangguan1995\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2024-06-06T06:52:19Z","updated_at":"2024-07-01T11:27:46Z","closed_at":"2024-07-01T11:27:46Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\r\n\r\n\r\n```\r\n File \"\/root\/miniconda3\/envs\/gino_conda\/lib\/python3.9\/site-packages\/datasets\/load.py\", line 1852, in dataset_module_factory\r\n raise DatasetNotFoundError(msg + f\" at revision '{revision}'\" if revision else msg)\r\ndatasets.exceptions.DatasetNotFoundError: Dataset 'xxx' doesn't exist on the Hub or cannot be accessed\r\n>>> dataset = load_dataset(\"xxxx\", token=True)\r\n\r\n404 error 404 Client Error. (Request ID: Root=xxxx)\r\n\r\nRepository Not Found for url: https:\/\/huggingface.co\/api\/datasets\/xxx\/xxx.\r\nPlease make sure you specified the correct `repo_id` and `repo_type`.\r\nIf you are trying to access a private or gated repo, make sure you are authenticated.\r\nTraceback (most recent call last):\r\n File \"\", line 1, in \r\n File \"\/root\/miniconda3\/envs\/gino_conda\/lib\/python3.9\/site-packages\/datasets\/load.py\", line 2593, in load_dataset\r\n builder_instance = load_dataset_builder(\r\n File \"\/root\/miniconda3\/envs\/gino_conda\/lib\/python3.9\/site-packages\/datasets\/load.py\", line 2265, in load_dataset_builder\r\n dataset_module = dataset_module_factory(\r\n File \"\/root\/miniconda3\/envs\/gino_conda\/lib\/python3.9\/site-packages\/datasets\/load.py\", line 1910, in dataset_module_factory\r\n raise e1 from None\r\n File \"\/root\/miniconda3\/envs\/gino_conda\/lib\/python3.9\/site-packages\/datasets\/load.py\", line 1852, in dataset_module_factory\r\n raise DatasetNotFoundError(msg + f\" at revision '{revision}'\" if revision else msg)\r\ndatasets.exceptions.DatasetNotFoundError: Dataset 'xxx' doesn't exist on the Hub or cannot be accessed\r\n```\r\n\r\n### Steps to reproduce the bug\r\n\r\n123\r\n\r\n### Expected behavior\r\n\r\n123\r\n\r\n### Environment info\r\n\r\n123","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6958\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6958\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6957","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6957\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6957\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6957\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6957","id":2335559400,"node_id":"PR_kwDODunzps5xiTwJ","number":6957,"title":"Fix typos in docs","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-06-05T10:46:47Z","updated_at":"2024-06-05T13:01:07Z","closed_at":"2024-06-05T12:43:26Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6957","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6957","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6957.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6957.patch","merged_at":"2024-06-05T12:43:26Z"},"body":"Fix typos in docs introduced by:\r\n- #6956\r\n\r\nTypos:\r\n- `comparisions` => `comparisons`\r\n- two consecutive sentences both ending in colon\r\n- split one sentence into two\r\n\r\nSorry, I did not have time to review that PR.\r\n\r\nCC: @lhoestq ","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6957\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6957\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6956","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6956\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6956\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6956\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6956","id":2333940021,"node_id":"PR_kwDODunzps5xcwXz","number":6956,"title":"update docs on N-dim arrays","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-06-04T16:32:19Z","updated_at":"2024-06-04T16:46:34Z","closed_at":"2024-06-04T16:40:27Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6956","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6956","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6956.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6956.patch","merged_at":"2024-06-04T16:40:27Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6956\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6956\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6955","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6955\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6955\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6955\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6955","id":2333802815,"node_id":"PR_kwDODunzps5xcSYm","number":6955,"title":"Fix small typo","user":{"login":"marcenacp","id":17081356,"node_id":"MDQ6VXNlcjE3MDgxMzU2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/17081356?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/marcenacp","html_url":"https:\/\/github.com\/marcenacp","followers_url":"https:\/\/api.github.com\/users\/marcenacp\/followers","following_url":"https:\/\/api.github.com\/users\/marcenacp\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/marcenacp\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/marcenacp\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/marcenacp\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/marcenacp\/orgs","repos_url":"https:\/\/api.github.com\/users\/marcenacp\/repos","events_url":"https:\/\/api.github.com\/users\/marcenacp\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/marcenacp\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-06-04T15:19:02Z","updated_at":"2024-06-05T10:18:56Z","closed_at":"2024-06-04T15:20:55Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6955","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6955","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6955.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6955.patch","merged_at":"2024-06-04T15:20:55Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6955\/reactions","total_count":1,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6955\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6954","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6954\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6954\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6954\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6954","id":2333530558,"node_id":"PR_kwDODunzps5xbWtU","number":6954,"title":"Remove default `trust_remote_code=True`","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2024-06-04T13:22:56Z","updated_at":"2024-06-17T16:32:24Z","closed_at":"2024-06-07T12:20:29Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6954","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6954","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6954.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6954.patch","merged_at":"2024-06-07T12:20:29Z"},"body":"TODO:\r\n- [x] fix tests","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6954\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6954\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6953","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6953\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6953\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6953\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6953","id":2333366120,"node_id":"I_kwDODunzps6LFFdo","number":6953,"title":"Remove canonical datasets from docs","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892861,"node_id":"MDU6TGFiZWwxOTM1ODkyODYx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/documentation","name":"documentation","color":"0075ca","default":true,"description":"Improvements or additions to documentation"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-06-04T12:09:03Z","updated_at":"2024-07-01T11:31:25Z","closed_at":"2024-07-01T11:31:25Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"Remove canonical datasets from docs, now that we no longer have canonical datasets.","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6953\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6953\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6952","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6952\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6952\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6952\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6952","id":2333320411,"node_id":"PR_kwDODunzps5xaosH","number":6952,"title":"Move info_utils errors to exceptions module","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-06-04T11:48:32Z","updated_at":"2024-06-10T14:09:59Z","closed_at":"2024-06-10T14:03:55Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6952","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6952","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6952.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6952.patch","merged_at":"2024-06-10T14:03:55Z"},"body":"Move `info_utils` errors to `exceptions` module.\r\n\r\nAdditionally rename some of them, deprecate the former ones, and make the deprecation backward compatible (by making the new errors inherit from the former ones).","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6952\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6952\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6951","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6951\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6951\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6951\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6951","id":2333231042,"node_id":"I_kwDODunzps6LEkfC","number":6951,"title":"load_dataset() should load all subsets, if no specific subset is specified","user":{"login":"windmaple","id":5577741,"node_id":"MDQ6VXNlcjU1Nzc3NDE=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/5577741?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/windmaple","html_url":"https:\/\/github.com\/windmaple","followers_url":"https:\/\/api.github.com\/users\/windmaple\/followers","following_url":"https:\/\/api.github.com\/users\/windmaple\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/windmaple\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/windmaple\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/windmaple\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/windmaple\/orgs","repos_url":"https:\/\/api.github.com\/users\/windmaple\/repos","events_url":"https:\/\/api.github.com\/users\/windmaple\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/windmaple\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2024-06-04T11:02:33Z","updated_at":"2024-11-26T08:32:18Z","closed_at":"2024-07-01T11:33:10Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nCurrently load_dataset() is forcing users to specify a subset. Example\r\n\r\n`from datasets import load_dataset\r\ndataset = load_dataset(\"m-a-p\/COIG-CQIA\")`\r\n\r\n```---------------------------------------------------------------------------\r\nValueError Traceback (most recent call last)\r\n[](https:\/\/localhost:8080\/#) in ()\r\n 1 from datasets import load_dataset\r\n----> 2 dataset = load_dataset(\"m-a-p\/COIG-CQIA\")\r\n\r\n3 frames\r\n[\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/builder.py](https:\/\/localhost:8080\/#) in _create_builder_config(self, config_name, custom_features, **config_kwargs)\r\n 582 if not config_kwargs:\r\n 583 example_of_usage = f\"load_dataset('{self.dataset_name}', '{self.BUILDER_CONFIGS[0].name}')\"\r\n--> 584 raise ValueError(\r\n 585 \"Config name is missing.\"\r\n 586 f\"\\nPlease pick one among the available configs: {list(self.builder_configs.keys())}\"\r\n\r\nValueError: Config name is missing.\r\nPlease pick one among the available configs: ['chinese_traditional', 'coig_pc', 'exam', 'finance', 'douban', 'human_value', 'logi_qa', 'ruozhiba', 'segmentfault', 'wiki', 'wikihow', 'xhs', 'zhihu']\r\nExample of usage:\r\n\t`load_dataset('coig-cqia', 'chinese_traditional')`\r\n```\r\nThis means a dataset cannot contain all the subsets at the same time. I guess one workaround is to manually specify the subset files like in [here](https:\/\/huggingface.co\/datasets\/m-a-p\/COIG-CQIA\/discussions\/1#658698b44bb41498f75c5622), which is clumsy.\r\n\r\n\r\n\n\n### Motivation\n\nIdeally, if not subset is specified, the API should just try to load all subsets. This makes it much easier to handle datasets w\/ subsets.\n\n### Your contribution\n\nNot sure since I'm not familiar w\/ the lib src.","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6951\/reactions","total_count":2,"+1":2,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6951\/timeline","performed_via_github_app":null,"state_reason":"not_planned","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6950","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6950\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6950\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6950\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6950","id":2333005974,"node_id":"I_kwDODunzps6LDtiW","number":6950,"title":"`Dataset.with_format` behaves inconsistently with documentation","user":{"login":"iansheng","id":42494185,"node_id":"MDQ6VXNlcjQyNDk0MTg1","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42494185?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/iansheng","html_url":"https:\/\/github.com\/iansheng","followers_url":"https:\/\/api.github.com\/users\/iansheng\/followers","following_url":"https:\/\/api.github.com\/users\/iansheng\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/iansheng\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/iansheng\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/iansheng\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/iansheng\/orgs","repos_url":"https:\/\/api.github.com\/users\/iansheng\/repos","events_url":"https:\/\/api.github.com\/users\/iansheng\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/iansheng\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892861,"node_id":"MDU6TGFiZWwxOTM1ODkyODYx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/documentation","name":"documentation","color":"0075ca","default":true,"description":"Improvements or additions to documentation"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-06-04T09:18:32Z","updated_at":"2024-06-25T08:05:49Z","closed_at":"2024-06-25T08:05:49Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nThe actual behavior of the interface `Dataset.with_format` is inconsistent with the documentation.\r\nhttps:\/\/huggingface.co\/docs\/datasets\/use_with_pytorch#n-dimensional-arrays\r\nhttps:\/\/huggingface.co\/docs\/datasets\/v2.19.0\/en\/use_with_tensorflow#n-dimensional-arrays\r\n\r\n> If your dataset consists of N-dimensional arrays, you will see that by default they are considered as nested lists.\r\n> In particular, a PyTorch formatted dataset outputs nested lists instead of a single tensor.\r\n> A TensorFlow formatted dataset outputs a RaggedTensor instead of a single tensor.\r\n\r\nBut I get a single tensor by default, which is inconsistent with the description.\r\n\r\nActually the current behavior seems more reasonable to me. Therefore, the document needs to be modified.\n\n### Steps to reproduce the bug\n\n```python\r\n>>> from datasets import Dataset\r\n>>> data = [[[1, 2],[3, 4]],[[5, 6],[7, 8]]]\r\n>>> ds = Dataset.from_dict({\"data\": data})\r\n>>> ds = ds.with_format(\"torch\")\r\n>>> ds[0]\r\n{'data': tensor([[1, 2],\r\n [3, 4]])}\r\n>>> ds = ds.with_format(\"tf\")\r\n>>> ds[0]\r\n{'data': }\r\n```\n\n### Expected behavior\n\n```python\r\n>>> from datasets import Dataset\r\n>>> data = [[[1, 2],[3, 4]],[[5, 6],[7, 8]]]\r\n>>> ds = Dataset.from_dict({\"data\": data})\r\n>>> ds = ds.with_format(\"torch\")\r\n>>> ds[0]\r\n{'data': [tensor([1, 2]), tensor([3, 4])]}\r\n>>> ds = ds.with_format(\"tf\")\r\n>>> ds[0]\r\n{'data': }\r\n```\n\n### Environment info\n\ndatasets==2.19.1\r\ntorch==2.1.0\r\ntensorflow==2.13.1","closed_by":{"login":"iansheng","id":42494185,"node_id":"MDQ6VXNlcjQyNDk0MTg1","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42494185?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/iansheng","html_url":"https:\/\/github.com\/iansheng","followers_url":"https:\/\/api.github.com\/users\/iansheng\/followers","following_url":"https:\/\/api.github.com\/users\/iansheng\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/iansheng\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/iansheng\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/iansheng\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/iansheng\/orgs","repos_url":"https:\/\/api.github.com\/users\/iansheng\/repos","events_url":"https:\/\/api.github.com\/users\/iansheng\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/iansheng\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6950\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6950\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6949","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6949\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6949\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6949\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6949","id":2332336573,"node_id":"I_kwDODunzps6LBKG9","number":6949,"title":"load_dataset error","user":{"login":"frederichen01","id":27952522,"node_id":"MDQ6VXNlcjI3OTUyNTIy","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/27952522?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/frederichen01","html_url":"https:\/\/github.com\/frederichen01","followers_url":"https:\/\/api.github.com\/users\/frederichen01\/followers","following_url":"https:\/\/api.github.com\/users\/frederichen01\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/frederichen01\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/frederichen01\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/frederichen01\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/frederichen01\/orgs","repos_url":"https:\/\/api.github.com\/users\/frederichen01\/repos","events_url":"https:\/\/api.github.com\/users\/frederichen01\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/frederichen01\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-06-04T01:24:45Z","updated_at":"2024-07-01T11:33:46Z","closed_at":"2024-07-01T11:33:46Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nWhy does the program get stuck when I use load_dataset method, and it still gets stuck after loading for several hours? In fact, my json file is only 21m, and I can load it in one go using open('', 'r').\n\n### Steps to reproduce the bug\n\n1. pip install datasets==2.19.2\r\n2. from datasets import Dataset, DatasetDict, NamedSplit, Split, load_dataset\r\n3. data = load_dataset('json', data_files='train.json')\n\n### Expected behavior\n\nIt is able to load my json correctly\n\n### Environment info\n\ndatasets==2.19.2","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6949\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6949\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6948","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6948\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6948\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6948\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6948","id":2331758300,"node_id":"I_kwDODunzps6K-87c","number":6948,"title":"to_tf_dataset: Visible devices cannot be modified after being initialized","user":{"login":"logasja","id":7151661,"node_id":"MDQ6VXNlcjcxNTE2NjE=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/7151661?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/logasja","html_url":"https:\/\/github.com\/logasja","followers_url":"https:\/\/api.github.com\/users\/logasja\/followers","following_url":"https:\/\/api.github.com\/users\/logasja\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/logasja\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/logasja\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/logasja\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/logasja\/orgs","repos_url":"https:\/\/api.github.com\/users\/logasja\/repos","events_url":"https:\/\/api.github.com\/users\/logasja\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/logasja\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-06-03T18:10:57Z","updated_at":"2024-06-03T18:10:57Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nWhen trying to use to_tf_dataset with a custom data_loader collate_fn when I use parallelism I am met with the following error as many times as number of workers there were in ``num_workers``.\r\n\r\n File \"\/opt\/miniconda\/envs\/env\/lib\/python3.11\/site-packages\/multiprocess\/process.py\", line 314, in _bootstrap\r\n self.run()\r\n File \"\/opt\/miniconda\/envs\/env\/lib\/python3.11\/site-packages\/multiprocess\/process.py\", line 108, in run\r\n self._target(*self._args, **self._kwargs)\r\n File \"\/opt\/miniconda\/envs\/env\/lib\/python3.11\/site-packages\/datasets\/utils\/tf_utils.py\", line 438, in worker_loop\r\n tf.config.set_visible_devices([], \"GPU\") # Make sure workers don't try to allocate GPU memory\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"\/opt\/miniconda\/envs\/env\/lib\/python3.11\/site-packages\/tensorflow\/python\/framework\/config.py\", line 566, in set_visible_devices\r\n context.context().set_visible_devices(devices, device_type)\r\n File \"\/opt\/miniconda\/envs\/env\/lib\/python3.11\/site-packages\/tensorflow\/python\/eager\/context.py\", line 1737, in set_visible_devices\r\n raise RuntimeError(\r\nRuntimeError: Visible devices cannot be modified after being initialized\n\n### Steps to reproduce the bug\n\n1. Download a dataset using HuggingFace load_dataset\r\n2. Define a function that transforms the data in some way to be used in the collate_fn argument\r\n3. Provide a ``batch_size`` and ``num_workers`` value in the ``to_tf_dataset`` function\r\n4. Either retrieve directly or use tfds benchmark to test the dataset\r\n\r\n``` python\r\nfrom datasets import load_datasets\r\nimport tensorflow_datasets as tfds\r\nfrom keras_cv.layers import Resizing\r\n\r\ndef data_loader(examples):\r\n x = Resizing(examples[0]['image'], 256, 256, crop_to_aspect_ratio=True)\r\n return {X[0]: x}\r\n\r\nds = load_datasets(\"logasja\/FDF\", split=\"test\")\r\n\r\nds = ds.to_tf_dataset(collate_fn=data_loader, batch_size=16, num_workers=2)\r\n\r\ntfds.benchmark(ds)\r\n```\n\n### Expected behavior\n\nUse multiple processes to apply transformations from the collate_fn to the tf dataset on the CPU.\n\n### Environment info\n\n- `datasets` version: 2.19.1\r\n- Platform: Linux-6.5.0-1023-oracle-x86_64-with-glibc2.35\r\n- Python version: 3.11.8\r\n- `huggingface_hub` version: 0.22.2\r\n- PyArrow version: 15.0.2\r\n- Pandas version: 2.2.1\r\n- `fsspec` version: 2024.2.0","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6948\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6948\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6947","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6947\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6947\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6947\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6947","id":2331114055,"node_id":"I_kwDODunzps6K8fpH","number":6947,"title":"FileNotFoundError\uff1aerror when loading C4 dataset","user":{"login":"W-215","id":62374585,"node_id":"MDQ6VXNlcjYyMzc0NTg1","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/62374585?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/W-215","html_url":"https:\/\/github.com\/W-215","followers_url":"https:\/\/api.github.com\/users\/W-215\/followers","following_url":"https:\/\/api.github.com\/users\/W-215\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/W-215\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/W-215\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/W-215\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/W-215\/orgs","repos_url":"https:\/\/api.github.com\/users\/W-215\/repos","events_url":"https:\/\/api.github.com\/users\/W-215\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/W-215\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2024-06-03T13:06:33Z","updated_at":"2024-06-25T06:21:28Z","closed_at":"2024-06-25T06:21:28Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\r\n\r\ncan't load c4 datasets\r\n\r\nWhen I replace the datasets package to 2.12.2 I get raise datasets.utils.info_utils.ExpectedMoreSplits: {'train'}\r\n\r\nHow can I fix this\uff1f\r\n\r\n### Steps to reproduce the bug\r\n\r\n1.from datasets import load_dataset\r\n2.dataset = load_dataset('allenai\/c4', data_files={'validation': 'en\/c4-validation.00003-of-00008.json.gz'}, split='validation')\r\n3. raise FileNotFoundError(\r\nFileNotFoundError: Couldn't find a dataset script at local_path\/c4_val\/allenai\/c4\/c4.py or any data file in the same directory. Couldn't find 'allenai\/c4' on the Hugging Face Hub either: FileNotFoundError: Unable to find 'hf:\/\/datasets\/allenai\/c4@1588ec454efa1a09f29cd18ddd04fe05fc8653a2\/en\/c4-validation.00003-of-00008.json.gz' with any supported extension ['.csv', '.tsv', '.json', '.jsonl', '.parquet', '.geoparquet', '.gpq', '.arrow', '.txt', '.tar', '.blp', '.bmp', '.dib', '.bufr', '.cur', '.pcx', '.dcx', '.dds', '.ps', '.eps', '.fit', '.fits', '.fli', '.flc', '.ftc', '.ftu', '.gbr', '.gif', '.grib', '.h5', '.hdf', '.png', '.apng', '.jp2', '.j2k', '.jpc', '.jpf', '.jpx', '.j2c', '.icns', '.ico', '.im', '.iim', '.tif', '.tiff', '.jfif', '.jpe', '.jpg', '.jpeg', '.mpg', '.mpeg', '.msp', '.pcd', '.pxr', '.pbm', '.pgm', '.ppm', '.pnm', '.psd', '.bw', '.rgb', '.rgba', '.sgi', '.ras', '.tga', '.icb', '.vda', '.vst', '.webp', '.wmf', '.emf', '.xbm', '.xpm', '.BLP', '.BMP', '.DIB', '.BUFR', '.CUR', '.PCX', '.DCX', '.DDS', '.PS', '.EPS', '.FIT', '.FITS', '.FLI', '.FLC', '.FTC', '.FTU', '.GBR', '.GIF', '.GRIB', '.H5', '.HDF', '.PNG', '.APNG', '.JP2', '.J2K', '.JPC', '.JPF', '.JPX', '.J2C', '.ICNS', '.ICO', '.IM', '.IIM', '.TIF', '.TIFF', '.JFIF', '.JPE', '.JPG', '.JPEG', '.MPG', '.MPEG', '.MSP', '.PCD', '.PXR', '.PBM', '.PGM', '.PPM', '.PNM', '.PSD', '.BW', '.RGB', '.RGBA', '.SGI', '.RAS', '.TGA', '.ICB', '.VDA', '.VST', '.WEBP', '.WMF', '.EMF', '.XBM', '.XPM', '.aiff', '.au', '.avr', '.caf', '.flac', '.htk', '.svx', '.mat4', '.mat5', '.mpc2k', '.ogg', '.paf', '.pvf', '.raw', '.rf64', '.sd2', '.sds', '.ircam', '.voc', '.w64', '.wav', '.nist', '.wavex', '.wve', '.xi', '.mp3', '.opus', '.AIFF', '.AU', '.AVR', '.CAF', '.FLAC', '.HTK', '.SVX', '.MAT4', '.MAT5', '.MPC2K', '.OGG', '.PAF', '.PVF', '.RAW', '.RF64', '.SD2', '.SDS', '.IRCAM', '.VOC', '.W64', '.WAV', '.NIST', '.WAVEX', '.WVE', '.XI', '.MP3', '.OPUS', '.zip']\r\n### Expected behavior\r\n\r\n\r\nThe data was successfully imported\r\n\r\n### Environment info\r\n\r\npython version 3.9\r\ndatasets version 2.19.2","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6947\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6947\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6946","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6946\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6946\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6946\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6946","id":2330276848,"node_id":"PR_kwDODunzps5xQNao","number":6946,"title":"Re-enable import sorting disabled by flake8:noqa directive when using ruff linter","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-06-03T06:24:47Z","updated_at":"2024-06-04T10:00:08Z","closed_at":"2024-06-04T09:54:23Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6946","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6946","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6946.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6946.patch","merged_at":"2024-06-04T09:54:23Z"},"body":"Re-enable import sorting that was wrongly disabled by `flake8: noqa` directive after switching to `ruff` linter in datasets-2.10.0 PR:\r\n- #5519\r\n\r\nNote that after the linter switch, we wrongly replaced `flake8: noqa` with `ruff: noqa` in datasets-2.17.0 PR:\r\n- #6619\r\n\r\nThat replacement was wrong because we kept the `isort: skip` directives although they were indeed disabled by `flake8: noqa` first and by `ruff: noqa` afterwards. See for example `__init__.py` file after the linter switch:\r\n- We kept the `flake8: noqa` directive\r\nhttps:\/\/github.com\/huggingface\/datasets\/blob\/06ae3f678651bfbb3ca7dd3274ee2f38e0e0237e\/src\/datasets\/__init__.py#L1\r\n- Whereas we also kept the `isort: skip` directives (that were disabled)\r\nhttps:\/\/github.com\/huggingface\/datasets\/blob\/06ae3f678651bfbb3ca7dd3274ee2f38e0e0237e\/src\/datasets\/__init__.py#L82-L84\r\n\r\nFix #6942.","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6946\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6946\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6945","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6945\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6945\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6945\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6945","id":2330224869,"node_id":"PR_kwDODunzps5xQCCx","number":6945,"title":"Update yanked version of minimum requests requirement","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2024-06-03T05:45:50Z","updated_at":"2024-06-18T07:36:15Z","closed_at":"2024-06-03T06:09:43Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6945","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6945","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6945.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6945.patch","merged_at":"2024-06-03T06:09:43Z"},"body":"Update yanked version of minimum requests requirement.\r\n\r\nVersion 2.32.1 was yanked: https:\/\/pypi.org\/project\/requests\/2.32.1\/","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6945\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6945\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6944","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6944\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6944\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6944\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6944","id":2330207120,"node_id":"PR_kwDODunzps5xP-KD","number":6944,"title":"Set dev version","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-06-03T05:29:59Z","updated_at":"2024-06-03T05:37:51Z","closed_at":"2024-06-03T05:31:47Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6944","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6944","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6944.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6944.patch","merged_at":"2024-06-03T05:31:46Z"},"body":null,"closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6944\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6944\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6943","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6943\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6943\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6943\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6943","id":2330176890,"node_id":"PR_kwDODunzps5xP3jp","number":6943,"title":"Release 2.19.2","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-06-03T05:01:50Z","updated_at":"2024-06-03T05:17:41Z","closed_at":"2024-06-03T05:17:40Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6943","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6943","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6943.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6943.patch","merged_at":"2024-06-03T05:17:40Z"},"body":null,"closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6943\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6943\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6942","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6942\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6942\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6942\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6942","id":2329562382,"node_id":"I_kwDODunzps6K2k0O","number":6942,"title":"Import sorting is disabled by flake8 noqa directive after switching to ruff linter","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":4296013012,"node_id":"LA_kwDODunzps8AAAABAA_01A","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/maintenance","name":"maintenance","color":"d4c5f9","default":false,"description":"Maintenance tasks"}],"state":"closed","locked":false,"assignee":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":0,"created_at":"2024-06-02T09:43:34Z","updated_at":"2024-06-04T09:54:24Z","closed_at":"2024-06-04T09:54:24Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"When we switched to `ruff` linter in PR:\r\n- #5519\r\n\r\nimport sorting was disabled in all files containing the `# flake8: noqa` directive\r\n- https:\/\/github.com\/astral-sh\/ruff\/issues\/11679\r\n\r\nWe should re-enable import sorting on those files.","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6942\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6942\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6941","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6941\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6941\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6941\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6941","id":2328930165,"node_id":"I_kwDODunzps6K0Kd1","number":6941,"title":"Supporting FFCV: Fast Forward Computer Vision","user":{"login":"Luciennnnnnn","id":20135317,"node_id":"MDQ6VXNlcjIwMTM1MzE3","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/20135317?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Luciennnnnnn","html_url":"https:\/\/github.com\/Luciennnnnnn","followers_url":"https:\/\/api.github.com\/users\/Luciennnnnnn\/followers","following_url":"https:\/\/api.github.com\/users\/Luciennnnnnn\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Luciennnnnnn\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Luciennnnnnn\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Luciennnnnnn\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Luciennnnnnn\/orgs","repos_url":"https:\/\/api.github.com\/users\/Luciennnnnnn\/repos","events_url":"https:\/\/api.github.com\/users\/Luciennnnnnn\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Luciennnnnnn\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-06-01T05:34:52Z","updated_at":"2024-06-01T05:34:52Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nSupporting FFCV, https:\/\/github.com\/libffcv\/ffcv\n\n### Motivation\n\nAccording to the benchmark, FFCV seems to be fastest image loading method.\n\n### Your contribution\n\nno","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6941\/reactions","total_count":1,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6941\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6940","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6940\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6940\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6940\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6940","id":2328637831,"node_id":"I_kwDODunzps6KzDGH","number":6940,"title":"Enable Sharding to Equal Sized Shards","user":{"login":"yuvalkirstain","id":57996478,"node_id":"MDQ6VXNlcjU3OTk2NDc4","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/57996478?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/yuvalkirstain","html_url":"https:\/\/github.com\/yuvalkirstain","followers_url":"https:\/\/api.github.com\/users\/yuvalkirstain\/followers","following_url":"https:\/\/api.github.com\/users\/yuvalkirstain\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/yuvalkirstain\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/yuvalkirstain\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/yuvalkirstain\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/yuvalkirstain\/orgs","repos_url":"https:\/\/api.github.com\/users\/yuvalkirstain\/repos","events_url":"https:\/\/api.github.com\/users\/yuvalkirstain\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/yuvalkirstain\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-05-31T21:55:50Z","updated_at":"2024-06-01T07:34:12Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\r\n\r\nAdd an option when sharding a dataset to have all shards the same size. Will be good to provide both an option of duplication, and by truncation.\r\n\r\n### Motivation\r\n\r\nCurrently the behavior of sharding is \"If n % i == l, then the first l shards will have length (n \/\/ i) + 1, and the remaining shards will have length (n \/\/ i).\". However, when using FSDP we want the shards to have the same size. This requires the user to manually handle this situation, but it will be nice if we had an option to shard the dataset into equally sized shards. \r\n\r\n### Your contribution\r\n\r\nFor now just a PR. I can also add code that does what is needed, but probably not efficient.\r\nShard to equal size by duplication:\r\n```\r\nremainder = len(dataset) % num_shards\r\nnum_missing_examples = num_shards - remainder\r\nduplicated = dataset.select(list(range(num_missing_examples)))\r\ndataset = concatenate_datasets([dataset, duplicated])\r\nshard = dataset.shard(num_shards, shard_idx)\r\n```\r\nOr by truncation:\r\n```\r\nshard = dataset.shard(num_shards, shard_idx)\r\nnum_examples_per_shard = len(dataset) \/\/ num_shards\r\nshard = shard.select(list(range(num_examples_per_shard)))\r\n```","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6940\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6940\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6939","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6939\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6939\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6939\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6939","id":2328059386,"node_id":"I_kwDODunzps6Kw136","number":6939,"title":"ExpectedMoreSplits error when using data_dir","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892857,"node_id":"MDU6TGFiZWwxOTM1ODkyODU3","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/bug","name":"bug","color":"d73a4a","default":true,"description":"Something isn't working"}],"state":"closed","locked":false,"assignee":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":0,"created_at":"2024-05-31T15:08:42Z","updated_at":"2024-05-31T17:10:39Z","closed_at":"2024-05-31T17:10:39Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"As reported by @regisss, an `ExpectedMoreSplits` error is raised when passing `data_dir`:\r\n```python\r\nfrom datasets import load_dataset\r\n\r\ndataset = load_dataset(\r\n \"lvwerra\/stack-exchange-paired\",\r\n split=\"train\",\r\n cache_dir=None,\r\n data_dir=\"data\/rl\",\r\n)\r\n```\r\n```\r\nTraceback (most recent call last):\r\n File \"\", line 1, in \r\n File \"\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/load.py\", line 2609, in load_dataset\r\n builder_instance.download_and_prepare(\r\n File \"\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/builder.py\", line 1027, in download_and_prepare\r\n self._download_and_prepare(\r\n File \"\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/builder.py\", line 1140, in _download_and_prepare\r\n verify_splits(self.info.splits, split_dict)\r\n File \"\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/utils\/info_utils.py\", line 92, in verify_splits\r\n raise ExpectedMoreSplits(str(set(expected_splits) - set(recorded_splits)))\r\ndatasets.utils.info_utils.ExpectedMoreSplits: {'test'}\r\n```","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6939\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6939\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6938","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6938\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6938\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6938\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6938","id":2327568281,"node_id":"PR_kwDODunzps5xHNKm","number":6938,"title":"Fix expected splits when passing data_files or dir","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-05-31T11:04:22Z","updated_at":"2024-05-31T15:28:03Z","closed_at":"2024-05-31T15:28:02Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6938","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6938","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6938.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6938.patch","merged_at":null},"body":"reported on slack:\r\n\r\nThe following code snippet gives an error with v2.19 but not with v2.18:\r\nfrom datasets import load_dataset\r\n```\r\ndataset = load_dataset(\r\n \"lvwerra\/stack-exchange-paired\",\r\n split=\"train\",\r\n cache_dir=None,\r\n data_dir=\"data\/rl\",\r\n)\r\n```\r\nand the error is:\r\n```\r\nTraceback (most recent call last):\r\n File \"\", line 1, in \r\n File \"\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/load.py\", line 2609, in load_dataset\r\n builder_instance.download_and_prepare(\r\n File \"\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/builder.py\", line 1027, in download_and_prepare\r\n self._download_and_prepare(\r\n File \"\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/builder.py\", line 1140, in _download_and_prepare\r\n verify_splits(self.info.splits, split_dict)\r\n File \"\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/utils\/info_utils.py\", line 92, in verify_splits\r\n raise ExpectedMoreSplits(str(set(expected_splits) - set(recorded_splits)))\r\ndatasets.utils.info_utils.ExpectedMoreSplits: {'test'}\r\n```\r\n","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6938\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6938\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6937","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6937\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6937\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6937\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6937","id":2327212611,"node_id":"I_kwDODunzps6KtnJD","number":6937,"title":"JSON loader implicitly coerces floats to integers","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892857,"node_id":"MDU6TGFiZWwxOTM1ODkyODU3","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/bug","name":"bug","color":"d73a4a","default":true,"description":"Something isn't working"}],"state":"open","locked":false,"assignee":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":1,"created_at":"2024-05-31T08:09:12Z","updated_at":"2025-06-24T05:49:20Z","closed_at":null,"author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"The JSON loader implicitly coerces floats to integers.\r\n\r\nThe column values `[0.0, 1.0, 2.0]` are coerced to `[0, 1, 2]`.\r\nSee CI error in dataset-viewer: https:\/\/github.com\/huggingface\/dataset-viewer\/actions\/runs\/9290164936\/job\/25576926446\r\n```\r\n =================================== FAILURES ===================================\r\n___________________________ test_statistics_endpoint ___________________________\r\n\r\nnormal_user_public_json_dataset = 'DVUser\/tmp-dataset-17170199043860'\r\n\r\n def test_statistics_endpoint(normal_user_public_json_dataset: str) -> None:\r\n dataset = normal_user_public_json_dataset\r\n config, split = get_default_config_split()\r\n statistics_response = poll_until_ready_and_assert(\r\n relative_url=f\"\/statistics?dataset={dataset}&config={config}&split={split}\",\r\n check_x_revision=True,\r\n dataset=dataset,\r\n )\r\n \r\n content = statistics_response.json()\r\n assert len(content) == 3\r\n assert sorted(content) == [\"num_examples\", \"partial\", \"statistics\"], statistics_response\r\n statistics = content[\"statistics\"]\r\n num_examples = content[\"num_examples\"]\r\n partial = content[\"partial\"]\r\n \r\n assert isinstance(statistics, list), statistics\r\n assert len(statistics) == 6\r\n assert num_examples == 4\r\n assert partial is False\r\n \r\n string_label_column = statistics[0]\r\n assert \"column_name\" in string_label_column\r\n assert \"column_statistics\" in string_label_column\r\n assert \"column_type\" in string_label_column\r\n assert string_label_column[\"column_name\"] == \"col_1\"\r\n assert string_label_column[\"column_type\"] == \"string_label\" # 4 unique values -> label\r\n assert isinstance(string_label_column[\"column_statistics\"], dict)\r\n assert string_label_column[\"column_statistics\"] == {\r\n \"nan_count\": 0,\r\n \"nan_proportion\": 0.0,\r\n \"no_label_count\": 0,\r\n \"no_label_proportion\": 0.0,\r\n \"n_unique\": 4,\r\n \"frequencies\": {\r\n \"There goes another one.\": 1,\r\n \"Vader turns round and round in circles as his ship spins into space.\": 1,\r\n \"We count thirty Rebel ships, Lord Vader.\": 1,\r\n \"The wingman spots the pirateship coming at him and warns the Dark Lord\": 1,\r\n },\r\n }\r\n \r\n int_column = statistics[1]\r\n assert \"column_name\" in int_column\r\n assert \"column_statistics\" in int_column\r\n assert \"column_type\" in int_column\r\n assert int_column[\"column_name\"] == \"col_2\"\r\n assert int_column[\"column_type\"] == \"int\"\r\n assert isinstance(int_column[\"column_statistics\"], dict)\r\n assert int_column[\"column_statistics\"] == {\r\n \"histogram\": {\"bin_edges\": [0, 1, 2, 3, 3], \"hist\": [1, 1, 1, 1]},\r\n \"max\": 3,\r\n \"mean\": 1.5,\r\n \"median\": 1.5,\r\n \"min\": 0,\r\n \"nan_count\": 0,\r\n \"nan_proportion\": 0.0,\r\n \"std\": 1.29099,\r\n }\r\n \r\n float_column = statistics[2]\r\n assert \"column_name\" in float_column\r\n assert \"column_statistics\" in float_column\r\n assert \"column_type\" in float_column\r\n assert float_column[\"column_name\"] == \"col_3\"\r\n> assert float_column[\"column_type\"] == \"float\"\r\nE AssertionError: assert 'int' == 'float'\r\nE - float\r\nE + int\r\n\r\ntests\/test_14_statistics.py:72: AssertionError\r\n\r\n=========================== short test summary info ============================\r\nFAILED tests\/test_14_statistics.py::test_statistics_endpoint - AssertionError: assert 'int' == 'float'\r\n - float\r\n + int\r\n``` \r\n\r\nThis bug was introduced after:\r\n- #6914\r\n\r\nWe have reported the issue to pandas:\r\n- https:\/\/github.com\/pandas-dev\/pandas\/issues\/58866","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6937\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6937\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6936","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6936\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6936\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6936\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6936","id":2326119853,"node_id":"I_kwDODunzps6KpcWt","number":6936,"title":"save_to_disk() freezes when saving on s3 bucket with multiprocessing","user":{"login":"ycattan","id":54974949,"node_id":"MDQ6VXNlcjU0OTc0OTQ5","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/54974949?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ycattan","html_url":"https:\/\/github.com\/ycattan","followers_url":"https:\/\/api.github.com\/users\/ycattan\/followers","following_url":"https:\/\/api.github.com\/users\/ycattan\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ycattan\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ycattan\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ycattan\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ycattan\/orgs","repos_url":"https:\/\/api.github.com\/users\/ycattan\/repos","events_url":"https:\/\/api.github.com\/users\/ycattan\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ycattan\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2024-05-30T16:48:39Z","updated_at":"2025-02-06T22:12:52Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\r\n\r\nI'm trying to save a `Dataset` using the `save_to_disk()` function with:\r\n- `num_proc > 1`\r\n- `dataset_path` being a s3 bucket path e.g. \"s3:\/\/{bucket_name}\/{dataset_folder}\/\"\r\n\r\nThe hf progress bar shows up but the saving does not seem to start. \r\nWhen using one processor only (`num_proc=1`), everything works fine.\r\nWhen saving the dataset on local disk (as opposed to s3 bucket) with `num_proc > 1`, everything works fine.\r\n\r\nThank you for your help! :)\r\n\r\n### Steps to reproduce the bug\r\n\r\nI tried without any storage options:\r\n\r\n```\r\nfrom datasets import load_dataset\r\n\r\nsandbox_ds = load_dataset(\"openai_humaneval\")\r\nsandbox_ds[\"test\"].save_to_disk(\r\n \"s3:\/\/bucket-name\/test_multiprocessing_saving\/\",\r\n num_proc=4,\r\n)\r\n```\r\n\r\n\r\nand with the specific s3fs storage options: \r\n```\r\nfrom datasets import load_dataset\r\nfrom s3fs import S3FileSystem\r\n\r\ndef get_s3fs():\r\n return S3FileSystem()\r\n\r\nsandbox_ds = load_dataset(\"openai_humaneval\")\r\nsandbox_ds[\"test\"].save_to_disk(\r\n \"s3:\/\/bucket-name\/test_multiprocessing_saving\/\",\r\n num_proc=4,\r\n storage_options=get_s3fs().storage_options, # also tried: storage_options=S3FileSystem().storage_options\r\n)\r\n```\r\n\r\nI'm guessing I might use `storage_options` parameter wrongly, but I didn't find anything online that made it work.\r\n\r\n**NB**: Behavior is the same when trying to save the whole `DatasetDict`.\r\n\r\n### Expected behavior\r\n\r\nProgress bar fills in and saving is carried out.\r\n\r\n### Environment info\r\n\r\n`datasets==2.18.0`","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6936\/reactions","total_count":1,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":1},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6936\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6935","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6935\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6935\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6935\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6935","id":2325612022,"node_id":"I_kwDODunzps6KngX2","number":6935,"title":"Support for pathlib.Path in datasets 2.19.0","user":{"login":"lamyiowce","id":12202811,"node_id":"MDQ6VXNlcjEyMjAyODEx","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/12202811?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lamyiowce","html_url":"https:\/\/github.com\/lamyiowce","followers_url":"https:\/\/api.github.com\/users\/lamyiowce\/followers","following_url":"https:\/\/api.github.com\/users\/lamyiowce\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lamyiowce\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lamyiowce\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lamyiowce\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lamyiowce\/orgs","repos_url":"https:\/\/api.github.com\/users\/lamyiowce\/repos","events_url":"https:\/\/api.github.com\/users\/lamyiowce\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lamyiowce\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-05-30T12:53:36Z","updated_at":"2025-01-14T11:50:22Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nAfter the recent update of `datasets`, Dataset.save_to_disk does not accept a pathlib.Path anymore. It was supported in 2.18.0 and previous versions. Is this intentional? Was it supported before only because of a Python dusk-typing miracle?\n\n### Steps to reproduce the bug\n\n```\r\nfrom datasets import Dataset\r\nimport pathlib\r\n\r\npath = pathlib.Path(\".\/my_out_path\")\r\nDataset.from_dict(\r\n {\"text\": [\"hello world\"], \"label\": [777], \"split\": [\"train\"]}\r\n.save_to_disk(path)\r\n```\r\nThis results in an error when using datasets 2.19:\r\n```\r\nTraceback (most recent call last):\r\n File \"\", line 3, in \r\n File \"\/Users\/jb\/scratch\/venv\/lib\/python3.11\/site-packages\/datasets\/arrow_dataset.py\", line 1515, in save_to_disk\r\n fs, _ = url_to_fs(dataset_path, **(storage_options or {}))\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"\/Users\/jb\/scratch\/venv\/lib\/python3.11\/site-packages\/fsspec\/core.py\", line 383, in url_to_fs\r\n chain = _un_chain(url, kwargs)\r\n ^^^^^^^^^^^^^^^^^^^^^^\r\n File \"\/Users\/jb\/scratch\/venv\/lib\/python3.11\/site-packages\/fsspec\/core.py\", line 323, in _un_chain\r\n if \"::\" in path\r\n ^^^^^^^^^^^^\r\nTypeError: argument of type 'PosixPath' is not iterable\r\n```\r\n\r\nConverting to str works, however.\r\n```\r\nDataset.from_dict(\r\n {\"text\": [\"hello world\"], \"label\": [777], \"split\": [\"train\"]}\r\n).save_to_disk(str(path))\r\n```\n\n### Expected behavior\n\nMy dataset gets saved to disk without an error.\n\n### Environment info\n\naiohttp==3.9.5\r\naiosignal==1.3.1\r\nattrs==23.2.0\r\ncertifi==2024.2.2\r\ncharset-normalizer==3.3.2\r\ndatasets==2.19.0\r\ndill==0.3.8\r\nfilelock==3.14.0\r\nfrozenlist==1.4.1\r\nfsspec==2024.3.1\r\nhuggingface-hub==0.23.2\r\nidna==3.7\r\nmultidict==6.0.5\r\nmultiprocess==0.70.16\r\nnumpy==1.26.4\r\npackaging==24.0\r\npandas==2.2.2\r\npyarrow==16.1.0\r\npyarrow-hotfix==0.6\r\npython-dateutil==2.9.0.post0\r\npytz==2024.1\r\nPyYAML==6.0.1\r\nrequests==2.32.3\r\nsix==1.16.0\r\ntqdm==4.66.4\r\ntyping_extensions==4.12.0\r\ntzdata==2024.1\r\nurllib3==2.2.1\r\nxxhash==3.4.1\r\nyarl==1.9.4","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6935\/reactions","total_count":6,"+1":6,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6935\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6934","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6934\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6934\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6934\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6934","id":2325341717,"node_id":"PR_kwDODunzps5w_laB","number":6934,"title":"Revert ci user","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2024-05-30T10:45:26Z","updated_at":"2024-05-31T10:25:08Z","closed_at":"2024-05-30T10:45:37Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6934","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6934","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6934.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6934.patch","merged_at":"2024-05-30T10:45:37Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6934\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6934\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6933","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6933\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6933\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6933\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6933","id":2325300800,"node_id":"PR_kwDODunzps5w_cW4","number":6933,"title":"update ci user","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-05-30T10:23:02Z","updated_at":"2024-05-30T10:30:54Z","closed_at":"2024-05-30T10:23:12Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6933","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6933","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6933.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6933.patch","merged_at":"2024-05-30T10:23:12Z"},"body":"token is ok to be public since it's only for the hub-ci","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6933\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6933\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6932","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6932\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6932\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6932\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6932","id":2324729267,"node_id":"PR_kwDODunzps5w9d7w","number":6932,"title":"Update dataset_dict.py","user":{"login":"Arunprakash-A","id":20263729,"node_id":"MDQ6VXNlcjIwMjYzNzI5","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/20263729?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Arunprakash-A","html_url":"https:\/\/github.com\/Arunprakash-A","followers_url":"https:\/\/api.github.com\/users\/Arunprakash-A\/followers","following_url":"https:\/\/api.github.com\/users\/Arunprakash-A\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Arunprakash-A\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Arunprakash-A\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Arunprakash-A\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Arunprakash-A\/orgs","repos_url":"https:\/\/api.github.com\/users\/Arunprakash-A\/repos","events_url":"https:\/\/api.github.com\/users\/Arunprakash-A\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Arunprakash-A\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-05-30T05:22:35Z","updated_at":"2024-06-04T12:56:20Z","closed_at":"2024-06-04T12:50:13Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6932","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6932","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6932.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6932.patch","merged_at":"2024-06-04T12:50:13Z"},"body":"shape returns (number of rows, number of columns)","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6932\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6932\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6931","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6931\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6931\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6931\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6931","id":2323457525,"node_id":"PR_kwDODunzps5w5I-Y","number":6931,"title":"[WebDataset] Support compressed files","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-05-29T14:19:06Z","updated_at":"2024-05-29T16:33:18Z","closed_at":"2024-05-29T16:24:21Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6931","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6931","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6931.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6931.patch","merged_at":"2024-05-29T16:24:21Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6931\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6931\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6930","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6930\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6930\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6930\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6930","id":2323225922,"node_id":"I_kwDODunzps6KeZ1C","number":6930,"title":"ValueError: Couldn't infer the same data file format for all splits. Got {'train': ('json', {}), 'validation': (None, {})}","user":{"login":"Polarisamoon","id":41767521,"node_id":"MDQ6VXNlcjQxNzY3NTIx","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/41767521?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Polarisamoon","html_url":"https:\/\/github.com\/Polarisamoon","followers_url":"https:\/\/api.github.com\/users\/Polarisamoon\/followers","following_url":"https:\/\/api.github.com\/users\/Polarisamoon\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Polarisamoon\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Polarisamoon\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Polarisamoon\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Polarisamoon\/orgs","repos_url":"https:\/\/api.github.com\/users\/Polarisamoon\/repos","events_url":"https:\/\/api.github.com\/users\/Polarisamoon\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Polarisamoon\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-05-29T12:40:05Z","updated_at":"2024-07-23T06:25:24Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nWhen I run the code en = load_dataset(\"allenai\/c4\", \"en\", streaming=True), I encounter an error: raise ValueError(f\"Couldn't infer the same data file format for all splits. Got {split_modules}\") ValueError: Couldn't infer the same data file format for all splits. Got {'train': ('json', {}), 'validation': (None, {})}.\r\nHowever, running dataset = load_dataset('allenai\/c4', streaming=True, data_files={'validation': 'en\/c4-validation.00003-of-00008.json.gz'}, split='validation') works fine. What is the issue here?\n\n### Steps to reproduce the bug\n\nrun code\uff1a\r\nimport os\r\nos.environ['HF_ENDPOINT'] = 'https:\/\/hf-mirror.com'\r\nfrom datasets import load_dataset\r\n\r\nen = load_dataset(\"allenai\/c4\", \"en\", streaming=True)\n\n### Expected behavior\n\nSuccessfully loaded the dataset.\n\n### Environment info\n\n- `datasets` version: 2.18.0\r\n- Platform: Linux-6.5.0-28-generic-x86_64-with-glibc2.17\r\n- Python version: 3.8.19\r\n- `huggingface_hub` version: 0.22.2\r\n- PyArrow version: 15.0.2\r\n- Pandas version: 2.0.3\r\n- `fsspec` version: 2024.2.0\r\n","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6930\/reactions","total_count":1,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":1},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6930\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6929","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6929\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6929\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6929\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6929","id":2322980077,"node_id":"I_kwDODunzps6Kddzt","number":6929,"title":"Avoid downloading the whole dataset when only README.me has been touched on hub.","user":{"login":"zinc75","id":73740254,"node_id":"MDQ6VXNlcjczNzQwMjU0","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/73740254?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/zinc75","html_url":"https:\/\/github.com\/zinc75","followers_url":"https:\/\/api.github.com\/users\/zinc75\/followers","following_url":"https:\/\/api.github.com\/users\/zinc75\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/zinc75\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/zinc75\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/zinc75\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/zinc75\/orgs","repos_url":"https:\/\/api.github.com\/users\/zinc75\/repos","events_url":"https:\/\/api.github.com\/users\/zinc75\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/zinc75\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-05-29T10:36:06Z","updated_at":"2024-05-29T20:51:56Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\r\n\r\n`datasets.load_dataset()` triggers a new download of the **whole dataset** when the README.md file has been touched on huggingface hub, even if data files \/ parquet files are the exact same.\r\n\r\nI think the current behaviour of the load_dataset function is triggered whenever a change of the hash of latest commit on huggingface hub, but is there a clever way to only download again the dataset **if and only if** data is modified ? \r\n\r\n### Motivation\r\n\r\nThe current behaviour is a waste of network bandwidth \/ disk space \/ research time.\r\n\r\n### Your contribution\r\n\r\nI don't have time to submit a PR, but I hope a simple solution will emerge from this issue ! ","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6929\/reactions","total_count":1,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":1},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6929\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6928","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6928\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6928\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6928\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6928","id":2322267727,"node_id":"PR_kwDODunzps5w1ECb","number":6928,"title":"Update process.mdx: Code Listings Fixes","user":{"login":"FadyMorris","id":16918280,"node_id":"MDQ6VXNlcjE2OTE4Mjgw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/16918280?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/FadyMorris","html_url":"https:\/\/github.com\/FadyMorris","followers_url":"https:\/\/api.github.com\/users\/FadyMorris\/followers","following_url":"https:\/\/api.github.com\/users\/FadyMorris\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/FadyMorris\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/FadyMorris\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/FadyMorris\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/FadyMorris\/orgs","repos_url":"https:\/\/api.github.com\/users\/FadyMorris\/repos","events_url":"https:\/\/api.github.com\/users\/FadyMorris\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/FadyMorris\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-05-29T03:17:07Z","updated_at":"2024-06-04T13:08:19Z","closed_at":"2024-06-04T12:55:00Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6928","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6928","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6928.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6928.patch","merged_at":"2024-06-04T12:55:00Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6928\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6928\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6927","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6927\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6927\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6927\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6927","id":2322260725,"node_id":"PR_kwDODunzps5w1CmF","number":6927,"title":"Update process.mdx: Minor Code Listings Updates and Fixes","user":{"login":"FadyMorris","id":16918280,"node_id":"MDQ6VXNlcjE2OTE4Mjgw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/16918280?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/FadyMorris","html_url":"https:\/\/github.com\/FadyMorris","followers_url":"https:\/\/api.github.com\/users\/FadyMorris\/followers","following_url":"https:\/\/api.github.com\/users\/FadyMorris\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/FadyMorris\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/FadyMorris\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/FadyMorris\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/FadyMorris\/orgs","repos_url":"https:\/\/api.github.com\/users\/FadyMorris\/repos","events_url":"https:\/\/api.github.com\/users\/FadyMorris\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/FadyMorris\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-05-29T03:09:01Z","updated_at":"2024-05-29T03:12:46Z","closed_at":"2024-05-29T03:12:46Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6927","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6927","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6927.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6927.patch","merged_at":null},"body":null,"closed_by":{"login":"FadyMorris","id":16918280,"node_id":"MDQ6VXNlcjE2OTE4Mjgw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/16918280?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/FadyMorris","html_url":"https:\/\/github.com\/FadyMorris","followers_url":"https:\/\/api.github.com\/users\/FadyMorris\/followers","following_url":"https:\/\/api.github.com\/users\/FadyMorris\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/FadyMorris\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/FadyMorris\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/FadyMorris\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/FadyMorris\/orgs","repos_url":"https:\/\/api.github.com\/users\/FadyMorris\/repos","events_url":"https:\/\/api.github.com\/users\/FadyMorris\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/FadyMorris\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6927\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6927\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6926","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6926\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6926\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6926\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6926","id":2322164287,"node_id":"PR_kwDODunzps5w0uII","number":6926,"title":"Update process.mdx: Fix code listing in Shard section","user":{"login":"FadyMorris","id":16918280,"node_id":"MDQ6VXNlcjE2OTE4Mjgw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/16918280?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/FadyMorris","html_url":"https:\/\/github.com\/FadyMorris","followers_url":"https:\/\/api.github.com\/users\/FadyMorris\/followers","following_url":"https:\/\/api.github.com\/users\/FadyMorris\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/FadyMorris\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/FadyMorris\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/FadyMorris\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/FadyMorris\/orgs","repos_url":"https:\/\/api.github.com\/users\/FadyMorris\/repos","events_url":"https:\/\/api.github.com\/users\/FadyMorris\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/FadyMorris\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-05-29T01:25:55Z","updated_at":"2024-05-29T03:11:20Z","closed_at":"2024-05-29T03:11:08Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6926","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6926","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6926.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6926.patch","merged_at":null},"body":null,"closed_by":{"login":"FadyMorris","id":16918280,"node_id":"MDQ6VXNlcjE2OTE4Mjgw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/16918280?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/FadyMorris","html_url":"https:\/\/github.com\/FadyMorris","followers_url":"https:\/\/api.github.com\/users\/FadyMorris\/followers","following_url":"https:\/\/api.github.com\/users\/FadyMorris\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/FadyMorris\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/FadyMorris\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/FadyMorris\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/FadyMorris\/orgs","repos_url":"https:\/\/api.github.com\/users\/FadyMorris\/repos","events_url":"https:\/\/api.github.com\/users\/FadyMorris\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/FadyMorris\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6926\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6926\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6925","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6925\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6925\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6925\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6925","id":2321084967,"node_id":"PR_kwDODunzps5wxDRE","number":6925,"title":"Fix NonMatchingSplitsSizesError\/ExpectedMoreSplits when passing data_dir\/data_files in no-code Hub datasets","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2024-05-28T13:33:38Z","updated_at":"2024-11-07T20:41:58Z","closed_at":"2024-05-31T17:10:37Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6925","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6925","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6925.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6925.patch","merged_at":"2024-05-31T17:10:37Z"},"body":"Fix `NonMatchingSplitsSizesError` or `ExpectedMoreSplits` error for no-code Hub datasets if the user passes:\r\n- `data_dir`\r\n- `data_files`\r\n\r\nThe proposed solution is to avoid using exported dataset info (from Parquet exports) in these cases.\r\nAdditionally, also if the user passes `revision` other than \"main\" (so that no network requests are made).\r\n\r\nThis PR fixes a bug introduced by:\r\n- #6714\r\n\r\nFix #6918, fix #6939.","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6925\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6925\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6924","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6924\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6924\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6924\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6924","id":2320531015,"node_id":"I_kwDODunzps6KUH5H","number":6924,"title":"Caching map result of DatasetDict.","user":{"login":"MostHumble","id":56939432,"node_id":"MDQ6VXNlcjU2OTM5NDMy","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/56939432?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/MostHumble","html_url":"https:\/\/github.com\/MostHumble","followers_url":"https:\/\/api.github.com\/users\/MostHumble\/followers","following_url":"https:\/\/api.github.com\/users\/MostHumble\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/MostHumble\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/MostHumble\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/MostHumble\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/MostHumble\/orgs","repos_url":"https:\/\/api.github.com\/users\/MostHumble\/repos","events_url":"https:\/\/api.github.com\/users\/MostHumble\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/MostHumble\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2024-05-28T09:07:41Z","updated_at":"2025-07-28T12:57:34Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"Hi!\r\n\r\nI'm currenty using the map function to tokenize a somewhat large dataset, so I need to use the cache to save ~25 mins.\r\n\r\nChanging num_proc incduces the recomputation of the map, I'm not sure why and if this is excepted behavior? \r\n\r\nhere it says, that cached files are loaded sequentially:\r\n\r\nhttps:\/\/github.com\/huggingface\/datasets\/blob\/bb2664cf540d5ce4b066365e7c8b26e7f1ca4743\/src\/datasets\/arrow_dataset.py#L3005-L3006\r\n\r\nit seems like I can pass in a fingerprint, and load it directly:\r\n\r\nhttps:\/\/github.com\/huggingface\/datasets\/blob\/bb2664cf540d5ce4b066365e7c8b26e7f1ca4743\/src\/datasets\/arrow_dataset.py#L3108-L3125\r\n\r\n**Environment Setup:**\r\n\r\n- Python 3.11.9\r\n- datasets 2.19.1 conda-forge\r\n- Linux 6.1.83-1.el9.elrepo.x86_64\r\n\r\n**MRE**\r\n```python\r\nfixed raw_datasets\r\nfixed tokenize_function\r\n\r\ntokenized_datasets = raw_datasets.map(\r\n tokenize_function,\r\n batched=True,\r\n num_proc=9,\r\n remove_columns=['text'],\r\n load_from_cache_file= True,\r\n desc=\"Running tokenizer on dataset line_by_line\",\r\n )\r\n\r\n\r\ntokenized_datasets = raw_datasets.map(\r\n tokenize_function,\r\n batched=True,\r\n num_proc=5,\r\n remove_columns=['text'],\r\n load_from_cache_file= True,\r\n desc=\"Running tokenizer on dataset line_by_line\",\r\n )\r\n```","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6924\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6924\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6923","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6923\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6923\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6923\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6923","id":2319292872,"node_id":"I_kwDODunzps6KPZnI","number":6923,"title":"Export Parquet Tablet Audio-Set is null bytes in Arrow ","user":{"login":"anioji","id":140120605,"node_id":"U_kgDOCFoSHQ","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/140120605?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/anioji","html_url":"https:\/\/github.com\/anioji","followers_url":"https:\/\/api.github.com\/users\/anioji\/followers","following_url":"https:\/\/api.github.com\/users\/anioji\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/anioji\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/anioji\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/anioji\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/anioji\/orgs","repos_url":"https:\/\/api.github.com\/users\/anioji\/repos","events_url":"https:\/\/api.github.com\/users\/anioji\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/anioji\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-05-27T14:27:57Z","updated_at":"2024-05-27T14:27:57Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nExporting the processed audio inside the table with the dataset.to_parquet function, the object pyarrow {bytes: null, path: \"Some\/Path\"}\r\nAt the same time, the same dataset uploaded to the hub has bit arrays\r\n\r\n![Screenshot from 2024-05-27 19-14-49](https:\/\/github.com\/huggingface\/datasets\/assets\/140120605\/ddfba089-426f-4659-9df4-7a634c948b9e)\r\n![Screenshot from 2024-05-27 19-12-51](https:\/\/github.com\/huggingface\/datasets\/assets\/140120605\/4cf8c0a1-650e-491b-86c8-b475c284a021)\r\n\n\n### Steps to reproduce the bug\n\n1.Get dataset from audio and cast it \r\n2.Export and push dataset\r\n3.It\u2019s scary to be indignant at the difference in the uploaded dataset and the fact that it was saved locally\r\n```py\r\nfrom datasets import Dataset, Audio \r\ndf = Dataset.from_csv(\".\/datasets.csv\")\r\ndf = df.cast_column(\"audio\", Audio(16000))\r\ndf.to_parquet(\".\/datasets.parquet\")\r\ndf.push_to_hub(repo_id=\"************\", token=\"**********************\")\r\n```\r\n\r\nYou can use \"try replicate case\" for this\r\n[replicate_packet.zip](https:\/\/github.com\/huggingface\/datasets\/files\/15457114\/replicate_packet.zip)\r\n\n\n### Expected behavior\n\nTwo parquet tables identical in content. It is obvious?\n\n### Environment info\n\nPython 3.11+ (I try did it in 3.12 and got same result )","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6923\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6923\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6922","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6922\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6922\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6922\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6922","id":2318602059,"node_id":"PR_kwDODunzps5wolTm","number":6922,"title":"Remove torchaudio remnants from code","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-05-27T08:45:07Z","updated_at":"2024-05-27T09:08:19Z","closed_at":"2024-05-27T08:59:21Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6922","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6922","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6922.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6922.patch","merged_at":"2024-05-27T08:59:21Z"},"body":"Remove torchaudio remnants from code.\r\n\r\nFollow-up on:\r\n- #5573","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6922\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6922\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6921","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6921\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6921\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6921\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6921","id":2318394398,"node_id":"PR_kwDODunzps5wn4Dz","number":6921,"title":"Support fsspec 2024.5.0","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-05-27T07:00:59Z","updated_at":"2024-05-27T08:07:16Z","closed_at":"2024-05-27T08:01:08Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6921","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6921","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6921.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6921.patch","merged_at":"2024-05-27T08:01:08Z"},"body":"Support fsspec 2024.5.0.","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6921\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6921\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6920","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6920\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6920\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6920\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6920","id":2317648021,"node_id":"PR_kwDODunzps5wlchX","number":6920,"title":"[WebDataset] Add `.pth` support for torch tensors","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-05-26T11:12:07Z","updated_at":"2024-05-27T09:11:17Z","closed_at":"2024-05-27T09:04:54Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6920","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6920","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6920.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6920.patch","merged_at":"2024-05-27T09:04:54Z"},"body":"In this PR I add support for `.pth` but with `weights_only=True` to disallow the use of pickle","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6920\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6920\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6919","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6919\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6919\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6919\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6919","id":2315618993,"node_id":"I_kwDODunzps6KBYqx","number":6919,"title":"Invalid YAML in README.md: unknown tag !","user":{"login":"juanqui","id":67964,"node_id":"MDQ6VXNlcjY3OTY0","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/67964?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/juanqui","html_url":"https:\/\/github.com\/juanqui","followers_url":"https:\/\/api.github.com\/users\/juanqui\/followers","following_url":"https:\/\/api.github.com\/users\/juanqui\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/juanqui\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/juanqui\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/juanqui\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/juanqui\/orgs","repos_url":"https:\/\/api.github.com\/users\/juanqui\/repos","events_url":"https:\/\/api.github.com\/users\/juanqui\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/juanqui\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-05-24T14:59:45Z","updated_at":"2024-05-24T14:59:45Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI wrote a notebook to load an existing dataset, process it, and upload as a private dataset using `dataset.push_to_hub(...)` at the end. The push to hub is failing with:\r\n\r\n```\r\nValueError: Invalid metadata in README.md.\r\n- Invalid YAML in README.md: unknown tag ! (50:11)\r\n\r\n 47 | - 4\r\n 48 | - 4\r\n 49 | - 8\r\n 50 | - !!binary |\r\n----------------^\r\n 51 | TwAAAA==\r\n 52 | '1': !!python[\/object\/apply](http:\/\/192.168.1.128:8888\/object\/apply):nump ...\r\n```\r\n\r\nMy dataset has a `train` and `validation` dataset. These are the features:\r\n\r\n```\r\n{'c1': Value(dtype='string', id=None),\r\n 'c2': Value(dtype='string', id=None),\r\n 'c3': [{'value': Value(dtype='string', id=None),\r\n 'start': Value(dtype='int64', id=None),\r\n 'end': Value(dtype='int64', id=None),\r\n 'label': Value(dtype='string', id=None)}],\r\n 'c4': Value(dtype='string', id=None),\r\n 'c5': Value(dtype='string', id=None),\r\n 'c6': Value(dtype='string', id=None),\r\n 'c7': Value(dtype='string', id=None),\r\n 'c8': Sequence(feature=Value(dtype='int32', id=None), length=-1, id=None),\r\n 'c9': Sequence(feature=Value(dtype='int8', id=None), length=-1, id=None),\r\n 'c10': Sequence(feature=Value(dtype='int8', id=None), length=-1, id=None),\r\n 'labels': Sequence(feature=ClassLabel(names=['O', 'B-ABC', 'I-ABC', ...], id=None), length=-1, id=None),\r\n 'c12': Sequence(feature=Value(dtype='string', id=None), length=-1, id=None)}\r\n```\r\n\r\nThis used to work until I decided to cast the `labels` feature to a `Sequence(ClassLabel(...))` type with:\r\n\r\n```\r\nds['train'] = ds['train'].cast_column(\"labels\", Sequence(ClassLabel(names=list(labels))))\r\nds['validation'] = ds['validation'].cast_column(\"labels\", Sequence(ClassLabel(names=list(labels))))\r\n```\n\n### Steps to reproduce the bug\n\n1. Start with any token classification dataset.\r\n2. Add a `labels` column with data such as `[0,0,0,12,13,13,13,0,0]`.\r\n3. Cast the label column from `Sequence` to `Sequence(ClassLabel))` with:\r\n\r\n```\r\nlabels = ['O', 'B-TEST', 'I-TEST']\r\nds = ds.cast_column(\"labels\", Sequence(ClassLabel(names=labels)))\r\n```\r\n\r\n4. Push to hub with `ds.push_to_hub(\"me\/awesome-stuff-dataset\")`\n\n### Expected behavior\n\nI expected `push_to_hub` to successfully push my dataset to the hub without error.\n\n### Environment info\n\nPython 3.11.9\r\n\r\ndatasets==2.19.1\r\ntransformers==4.41.1\r\nPyYAML==6.0.1","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6919\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6919\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6918","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6918\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6918\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6918\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6918","id":2315322738,"node_id":"I_kwDODunzps6KAQVy","number":6918,"title":"NonMatchingSplitsSizesError when using data_dir","user":{"login":"srehaag","id":86664538,"node_id":"MDQ6VXNlcjg2NjY0NTM4","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/86664538?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/srehaag","html_url":"https:\/\/github.com\/srehaag","followers_url":"https:\/\/api.github.com\/users\/srehaag\/followers","following_url":"https:\/\/api.github.com\/users\/srehaag\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/srehaag\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/srehaag\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/srehaag\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/srehaag\/orgs","repos_url":"https:\/\/api.github.com\/users\/srehaag\/repos","events_url":"https:\/\/api.github.com\/users\/srehaag\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/srehaag\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892857,"node_id":"MDU6TGFiZWwxOTM1ODkyODU3","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/bug","name":"bug","color":"d73a4a","default":true,"description":"Something isn't working"}],"state":"closed","locked":false,"assignee":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":2,"created_at":"2024-05-24T12:43:39Z","updated_at":"2024-05-31T17:10:38Z","closed_at":"2024-05-31T17:10:38Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nLoading a dataset from with a data_dir argument generates a NonMatchingSplitsSizesError if there are multiple directories in the dataset. \r\n\r\nThis appears to happen because the expected split is calculated based on the data in all the directories whereas the recorded split is calculated based on the data in the directory specified using the data_dir argument. \r\n\r\nThis is recent behavior. Until the past few weeks loading using the data_dir argument worked without any issue.\n\n### Steps to reproduce the bug\n\nSimple test dataset available here: https:\/\/huggingface.co\/datasets\/srehaag\/hf-bug-temp\r\n\r\nThe dataset contains two directories \"data1\" and \"data2\", each with a file called \"train.parquet\" with a 2 x 5 table.\r\n\r\nfrom datasets import load_dataset\r\ndataset = load_dataset(\"srehaag\/hf-bug-temp\", data_dir = \"data1\")\r\n\r\nGenerates:\r\n\r\n---------------------------------------------------------------------------\r\nNonMatchingSplitsSizesError Traceback (most recent call last)\r\nCell In[3], line 2<\/a>\r\n 1<\/a> from datasets import load_dataset\r\n----> 2<\/a> dataset = load_dataset(\"srehaag\/hf-bug-temp\", data_dir = \"data1\")\r\n\r\nFile ~\/.python\/current\/lib\/python3.10\/site-packages\/datasets\/load.py:2609, in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, verification_mode, ignore_verifications, keep_in_memory, save_infos, revision, token, use_auth_token, task, streaming, num_proc, storage_options, trust_remote_code, **config_kwargs)\r\n 2606<\/a> return builder_instance.as_streaming_dataset(split=split)\r\n 2608<\/a> # Download and prepare data\r\n-> 2609<\/a> builder_instance.download_and_prepare(\r\n 2610<\/a> download_config=download_config,\r\n 2611<\/a> download_mode=download_mode,\r\n 2612<\/a> verification_mode=verification_mode,\r\n 2613<\/a> num_proc=num_proc,\r\n 2614<\/a> storage_options=storage_options,\r\n 2615<\/a> )\r\n 2617<\/a> # Build dataset for splits\r\n 2618<\/a> keep_in_memory = (\r\n 2619<\/a> keep_in_memory if keep_in_memory is not None else is_small_dataset(builder_instance.info.dataset_size)\r\n 2620<\/a> )\r\n\r\nFile ~\/.python\/current\/lib\/python3.10\/site-packages\/datasets\/builder.py:1027, in DatasetBuilder.download_and_prepare(self, output_dir, download_config, download_mode, verification_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, file_format, max_shard_size, num_proc, storage_options, **download_and_prepare_kwargs)\r\n 1025<\/a> if num_proc is not None:\r\n 1026<\/a> prepare_split_kwargs[\"num_proc\"] = num_proc\r\n-> 1027<\/a> self._download_and_prepare(\r\n 1028<\/a> dl_manager=dl_manager,\r\n 1029<\/a> verification_mode=verification_mode,\r\n 1030<\/a> **prepare_split_kwargs,\r\n 1031<\/a> **download_and_prepare_kwargs,\r\n 1032<\/a> )\r\n 1033<\/a> # Sync info\r\n 1034<\/a> self.info.dataset_size = sum(split.num_bytes for split in self.info.splits.values())\r\n\r\nFile ~\/.python\/current\/lib\/python3.10\/site-packages\/datasets\/builder.py:1140, in DatasetBuilder._download_and_prepare(self, dl_manager, verification_mode, **prepare_split_kwargs)\r\n 1137<\/a> dl_manager.manage_extracted_files()\r\n 1139<\/a> if verification_mode == VerificationMode.BASIC_CHECKS or verification_mode == VerificationMode.ALL_CHECKS:\r\n-> 1140<\/a> verify_splits(self.info.splits, split_dict)\r\n 1142<\/a> # Update the info object with the splits.\r\n 1143<\/a> self.info.splits = split_dict\r\n\r\nFile ~\/.python\/current\/lib\/python3.10\/site-packages\/datasets\/utils\/info_utils.py:101, in verify_splits(expected_splits, recorded_splits)\r\n 95<\/a> bad_splits = [\r\n 96<\/a> {\"expected\": expected_splits[name], \"recorded\": recorded_splits[name]}\r\n 97<\/a> for name in expected_splits\r\n 98<\/a> if expected_splits[name].num_examples != recorded_splits[name].num_examples\r\n 99<\/a> ]\r\n 100<\/a> if len(bad_splits) > 0:\r\n--> 101<\/a> raise NonMatchingSplitsSizesError(str(bad_splits))\r\n 102<\/a> logger.info(\"All the splits matched successfully.\")\r\n\r\nNonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=212, num_examples=10, shard_lengths=None, dataset_name=None), 'recorded': SplitInfo(name='train', num_bytes=106, num_examples=5, shard_lengths=None, dataset_name='hf-bug-temp')}]\r\n\r\n__________\r\n\r\nBy contrast, this loads the data from both data1\/train.parquet and data2\/train.parquet without any error message:\r\n\r\nfrom datasets import load_dataset\r\ndataset = load_dataset(\"srehaag\/hf-bug-temp\")\r\n\r\n\n\n### Expected behavior\n\nShould load the 5 x 2 table from data1\/train.parquet without error message.\n\n### Environment info\n\nUsed Codespaces to simplify environment (see details below), but bug is present across various configurations.\r\n\r\n- `datasets` version: 2.19.1\r\n- Platform: Linux-6.5.0-1021-azure-x86_64-with-glibc2.31\r\n- Python version: 3.10.13\r\n- `huggingface_hub` version: 0.23.1\r\n- PyArrow version: 16.1.0\r\n- Pandas version: 2.2.2\r\n- `fsspec` version: 2024.3.1","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6918\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6918\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6917","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6917\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6917\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6917\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6917","id":2314683663,"node_id":"I_kwDODunzps6J90UP","number":6917,"title":"WinError 32 The process cannot access the file during load_dataset","user":{"login":"elwe-2808","id":56682168,"node_id":"MDQ6VXNlcjU2NjgyMTY4","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/56682168?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/elwe-2808","html_url":"https:\/\/github.com\/elwe-2808","followers_url":"https:\/\/api.github.com\/users\/elwe-2808\/followers","following_url":"https:\/\/api.github.com\/users\/elwe-2808\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/elwe-2808\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/elwe-2808\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/elwe-2808\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/elwe-2808\/orgs","repos_url":"https:\/\/api.github.com\/users\/elwe-2808\/repos","events_url":"https:\/\/api.github.com\/users\/elwe-2808\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/elwe-2808\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-05-24T07:54:51Z","updated_at":"2024-05-24T07:54:51Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nWhen I try to load the opus_book from hugging face (following the [guide on the website](https:\/\/huggingface.co\/docs\/transformers\/main\/en\/tasks\/translation))\r\n\r\n```python\r\nfrom datasets import load_dataset, Dataset\r\n\r\ndataset = load_dataset(\"Helsinki-NLP\/opus_books\", \"en-fr\", features=[\"id\", \"translation\"])\r\n```\r\n\r\nI get an error:\r\n`PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\/Users\/Me\/.cache\/huggingface\/datasets\/Helsinki-NLP___parquet\/ca-de-a39f1ef185b9b73b\/0.0.0\/2a3b91fbd88a2c90d1dbbb32b460cf621d31bd5b05b934492fdef7d8d6f236ec.incomplete\\\\parquet-train-00000-00000-of-NNNNN.arrow'\r\n`\r\n\r\n\r\n\r\n
Full stacktrace<\/summary>\r\n

\r\n\r\n```python\r\n\r\nAttributeError Traceback (most recent call last)\r\nFile c:\\Users\\Me\\.conda\\envs\\ia\\lib\\site-packages\\datasets\\builder.py:1858, in ArrowBasedBuilder._prepare_split_single(self, gen_kwargs, fpath, file_format, max_shard_size, job_id)\r\n [1857](file:\/\/\/C:\/Users\/Me\/.conda\/envs\/ia\/lib\/site-packages\/datasets\/builder.py:1857) _time = time.time()\r\n-> [1858](file:\/\/\/C:\/Users\/Me\/.conda\/envs\/ia\/lib\/site-packages\/datasets\/builder.py:1858) for _, table in generator:\r\n [1859](file:\/\/\/C:\/Users\/Me\/.conda\/envs\/ia\/lib\/site-packages\/datasets\/builder.py:1859) if max_shard_size is not None and writer._num_bytes > max_shard_size:\r\n\r\nFile c:\\Users\\Me\\.conda\\envs\\ia\\lib\\site-packages\\datasets\\packaged_modules\\parquet\\parquet.py:59, in Parquet._generate_tables(self, files)\r\n [58](file:\/\/\/C:\/Users\/Me\/.conda\/envs\/ia\/lib\/site-packages\/datasets\/packaged_modules\/parquet\/parquet.py:58) def _generate_tables(self, files):\r\n---> [59](file:\/\/\/C:\/Users\/Me\/.conda\/envs\/ia\/lib\/site-packages\/datasets\/packaged_modules\/parquet\/parquet.py:59) schema = self.config.features.arrow_schema if self.config.features is not None else None\r\n [60](file:\/\/\/C:\/Users\/Me\/.conda\/envs\/ia\/lib\/site-packages\/datasets\/packaged_modules\/parquet\/parquet.py:60) if self.config.features is not None and self.config.columns is not None:\r\n\r\nAttributeError: 'list' object has no attribute 'arrow_schema'\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nAttributeError Traceback (most recent call last)\r\nFile c:\\Users\\Me\\.conda\\envs\\ia\\lib\\site-packages\\datasets\\builder.py:1882, in ArrowBasedBuilder._prepare_split_single(self, gen_kwargs, fpath, file_format, max_shard_size, job_id)\r\n [1881](file:\/\/\/C:\/Users\/Me\/.conda\/envs\/ia\/lib\/site-packages\/datasets\/builder.py:1881) num_shards = shard_id + 1\r\n-> [1882](file:\/\/\/C:\/Users\/Me\/.conda\/envs\/ia\/lib\/site-packages\/datasets\/builder.py:1882) num_examples, num_bytes = writer.finalize()\r\n [1883](file:\/\/\/C:\/Users\/Me\/.conda\/envs\/ia\/lib\/site-packages\/datasets\/builder.py:1883) writer.close()\r\n\r\nFile c:\\Users\\Me\\.conda\\envs\\ia\\lib\\site-packages\\datasets\\arrow_writer.py:584, in ArrowWriter.finalize(self, close_stream)\r\n [583](file:\/\/\/C:\/Users\/Me\/.conda\/envs\/ia\/lib\/site-packages\/datasets\/arrow_writer.py:583) # If schema is known, infer features even if no examples were written\r\n--> [584](file:\/\/\/C:\/Users\/Me\/.conda\/envs\/ia\/lib\/site-packages\/datasets\/arrow_writer.py:584) if self.pa_writer is None and self.schema:\r\n...\r\n--> [627](file:\/\/\/C:\/Users\/Me\/.conda\/envs\/ia\/lib\/shutil.py:627) os.unlink(fullname)\r\n [628](file:\/\/\/C:\/Users\/Me\/.conda\/envs\/ia\/lib\/shutil.py:628) except OSError:\r\n [629](file:\/\/\/C:\/Users\/Me\/.conda\/envs\/ia\/lib\/shutil.py:629) onerror(os.unlink, fullname, sys.exc_info())\r\n\r\nPermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\/Users\/Me\/.cache\/huggingface\/datasets\/Helsinki-NLP___parquet\/ca-de-a39f1ef185b9b73b\/0.0.0\/2a3b91fbd88a2c90d1dbbb32b460cf621d31bd5b05b934492fdef7d8d6f236ec.incomplete\\\\parquet-train-00000-00000-of-NNNNN.arrow'\r\n``` \r\n\r\n\r\n<\/p>\r\n<\/details> \n\n### Steps to reproduce the bug\n\nSteps to reproduce:\r\n\r\nJust execute these lines\r\n\r\n```python\r\nfrom datasets import load_dataset, Dataset\r\n\r\ndataset = load_dataset(\"Helsinki-NLP\/opus_books\", \"en-fr\", features=[\"id\", \"translation\"])\r\n```\r\n\n\n### Expected behavior\n\nI expect the dataset to be loaded without any errors.\n\n### Environment info\n\n| Package| Version|\r\n|--------|--------|\r\n| transformers| 4.37.2|\r\n| python| 3.9.19|\r\n| pytorch| 2.3.0|\r\n| datasets|2.12.0 | \r\n| arrow | 1.2.3| \r\n \r\nI am using Conda on Windows 11.","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6917\/reactions","total_count":2,"+1":2,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6917\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6916","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6916\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6916\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6916\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6916","id":2311675564,"node_id":"I_kwDODunzps6JyV6s","number":6916,"title":"```push_to_hub()``` - Prevent Automatic Generation of Splits ","user":{"login":"jetlime","id":29337128,"node_id":"MDQ6VXNlcjI5MzM3MTI4","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/29337128?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/jetlime","html_url":"https:\/\/github.com\/jetlime","followers_url":"https:\/\/api.github.com\/users\/jetlime\/followers","following_url":"https:\/\/api.github.com\/users\/jetlime\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/jetlime\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/jetlime\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/jetlime\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/jetlime\/orgs","repos_url":"https:\/\/api.github.com\/users\/jetlime\/repos","events_url":"https:\/\/api.github.com\/users\/jetlime\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/jetlime\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-05-22T23:52:15Z","updated_at":"2024-05-23T00:07:53Z","closed_at":"2024-05-23T00:07:53Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI currently have a dataset which has not been splited. When pushing the dataset to my hugging face dataset repository, it is split into a testing and training set. How can I prevent the split from happening?\n\n### Steps to reproduce the bug\n\n1. Have a unsplit dataset \r\n\r\n```python\r\nDataset({ features: ['input', 'output', 'Attack', '__index_level_0__'], num_rows: 944685 })\r\n```\r\n\r\n2. Push it to huggingface\r\n\r\n```python\r\ndataset.push_to_hub(dataset_name)\r\n```\r\n\r\n3. On the hugging face dataset repo, the dataset then appears to be splited:\r\n\r\n![image](https:\/\/github.com\/huggingface\/datasets\/assets\/29337128\/b4fbc141-42b0-4f49-98df-dd479648fe09)\r\n\r\n4. Indeed, when loading the dataset from this repo, the dataset is split in two testing and training set.\r\n\r\n```python\r\nfrom datasets import load_dataset, Dataset\r\n\r\ndataset = load_dataset(\"Jetlime\/NF-CSE-CIC-IDS2018-v2\", streaming=True)\r\ndataset\r\n```\r\noutput: \r\n\r\n```\r\nIterableDatasetDict({\r\n train: IterableDataset({\r\n features: ['input', 'output', 'Attack', '__index_level_0__'],\r\n n_shards: 2\r\n })\r\n test: IterableDataset({\r\n features: ['input', 'output', 'Attack', '__index_level_0__'],\r\n n_shards: 1\r\n })\r\n```\n\n### Expected behavior\n\nThe dataset shall not be splited, as not requested.\n\n### Environment info\n\n- `datasets` version: 2.19.1\r\n- Platform: Linux-6.2.0-35-generic-x86_64-with-glibc2.35\r\n- Python version: 3.10.12\r\n- `huggingface_hub` version: 0.23.0\r\n- PyArrow version: 15.0.2\r\n- Pandas version: 2.2.2\r\n- `fsspec` version: 2024.3.1","closed_by":{"login":"jetlime","id":29337128,"node_id":"MDQ6VXNlcjI5MzM3MTI4","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/29337128?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/jetlime","html_url":"https:\/\/github.com\/jetlime","followers_url":"https:\/\/api.github.com\/users\/jetlime\/followers","following_url":"https:\/\/api.github.com\/users\/jetlime\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/jetlime\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/jetlime\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/jetlime\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/jetlime\/orgs","repos_url":"https:\/\/api.github.com\/users\/jetlime\/repos","events_url":"https:\/\/api.github.com\/users\/jetlime\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/jetlime\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6916\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6916\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6915","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6915\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6915\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6915\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6915","id":2310564961,"node_id":"PR_kwDODunzps5wNIUh","number":6915,"title":"Validate config name and data_files in packaged modules","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2024-05-22T13:36:33Z","updated_at":"2024-06-06T09:32:10Z","closed_at":"2024-06-06T09:24:35Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6915","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6915","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6915.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6915.patch","merged_at":"2024-06-06T09:24:35Z"},"body":"Validate the config attributes `name` and `data_files` in packaged modules by making the derived classes call their parent `__post_init__` method.\r\n\r\nNote that their parent `BuilderConfig` validates its attributes `name` and `data_files` in its `__post_init__` method: https:\/\/github.com\/huggingface\/datasets\/blob\/60d21efbc01e15d0b596ac1072750cbecd91548a\/src\/datasets\/builder.py#L128-L137\r\n\r\nThis PR makes the derived config classes call their parent `__post_init__` method to validate their `name` and `data_files` attributes.","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6915\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6915\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6914","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6914\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6914\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6914\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6914","id":2310107326,"node_id":"PR_kwDODunzps5wLi3e","number":6914,"title":"Preserve JSON column order and support list of strings field","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-05-22T09:58:54Z","updated_at":"2024-05-29T13:18:47Z","closed_at":"2024-05-29T13:12:23Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6914","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6914","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6914.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6914.patch","merged_at":"2024-05-29T13:12:23Z"},"body":"Preserve column order when loading from a JSON file with a list of dict (or with a field containing a list of dicts).\r\n\r\nAdditionally, support JSON file with a list of strings field.\r\n\r\nFix #6913.","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6914\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6914\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6913","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6913\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6913\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6913\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6913","id":2309605889,"node_id":"I_kwDODunzps6JqcoB","number":6913,"title":"Column order is nondeterministic when loading from JSON","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892857,"node_id":"MDU6TGFiZWwxOTM1ODkyODU3","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/bug","name":"bug","color":"d73a4a","default":true,"description":"Something isn't working"}],"state":"closed","locked":false,"assignee":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":0,"created_at":"2024-05-22T05:30:14Z","updated_at":"2024-05-29T13:12:24Z","closed_at":"2024-05-29T13:12:24Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"As reported by @meg-huggingface, the order of the JSON object keys is not preserved while loading a dataset from a JSON file with a list of objects.\r\n\r\nFor example, when loading a JSON files with a list of objects, each with the following ordered keys:\r\n- [ID, Language, Topic], \r\n\r\nthe resulting dataset may have columns:\r\n- [ID, Topic, Language], or\r\n- [Topic, Language, ID], or\r\n- [Topic, ID, Language],...\r\n\r\nThis issue is caused by the use of a Python set (which does not preserve the order):\r\nhttps:\/\/github.com\/huggingface\/datasets\/blob\/60d21efbc01e15d0b596ac1072750cbecd91548a\/src\/datasets\/packaged_modules\/json\/json.py#L168\r\nintroduced in\r\n- #5772","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6913\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6913\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6912","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6912\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6912\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6912\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6912","id":2309365961,"node_id":"I_kwDODunzps6JpiDJ","number":6912,"title":"Add MedImg for streaming","user":{"login":"lhallee","id":72926928,"node_id":"MDQ6VXNlcjcyOTI2OTI4","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/72926928?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhallee","html_url":"https:\/\/github.com\/lhallee","followers_url":"https:\/\/api.github.com\/users\/lhallee\/followers","following_url":"https:\/\/api.github.com\/users\/lhallee\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhallee\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhallee\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhallee\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhallee\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhallee\/repos","events_url":"https:\/\/api.github.com\/users\/lhallee\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhallee\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":2067376369,"node_id":"MDU6TGFiZWwyMDY3Mzc2MzY5","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/dataset%20request","name":"dataset request","color":"e99695","default":false,"description":"Requesting to add a new dataset"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2024-05-22T00:55:30Z","updated_at":"2024-09-05T16:53:54Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\r\n\r\nHost the MedImg dataset (similar to Imagenet but for biomedical images). \r\n\r\n### Motivation\r\n\r\nThere is a clear need for biomedical image foundation models and large scale biomedical datasets that are easily streamable. This would be an excellent tool for the biomedical community.\r\n\r\n### Your contribution\r\n\r\nMedImg can be found [here](https:\/\/www.cuilab.cn\/medimg\/#).","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6912\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6912\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6911","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6911\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6911\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6911\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6911","id":2308152711,"node_id":"PR_kwDODunzps5wE2ah","number":6911,"title":"Remove dead code for non-dict data_files from packaged modules","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-05-21T12:10:24Z","updated_at":"2024-05-23T08:05:58Z","closed_at":"2024-05-23T07:59:57Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6911","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6911","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6911.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6911.patch","merged_at":"2024-05-23T07:59:57Z"},"body":"Remove dead code for non-dict data_files from packaged modules.\r\n\r\nSince the merge of this PR:\r\n- #2986\r\n\r\nthe builders' variable self.config.data_files is always a dict, which makes the condition on (str, list, tuple) dead code.","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6911\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6911\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6910","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6910\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6910\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6910\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6910","id":2307570084,"node_id":"PR_kwDODunzps5wC2An","number":6910,"title":"Fix wrong type hints in data_files","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-05-21T07:41:09Z","updated_at":"2024-05-23T06:04:05Z","closed_at":"2024-05-23T05:58:05Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6910","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6910","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6910.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6910.patch","merged_at":"2024-05-23T05:58:05Z"},"body":"Fix wrong type hints in data_files introduced in:\r\n- #6493","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6910\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6910\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6909","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6909\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6909\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6909\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6909","id":2307508120,"node_id":"PR_kwDODunzps5wCoiE","number":6909,"title":"Update requests >=2.32.1 to fix vulnerability","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-05-21T07:11:20Z","updated_at":"2024-05-21T07:45:58Z","closed_at":"2024-05-21T07:38:25Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6909","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6909","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6909.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6909.patch","merged_at":"2024-05-21T07:38:25Z"},"body":"Update requests >=2.32.1 to fix vulnerability.","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6909\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6909\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6908","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6908\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6908\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6908\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6908","id":2304958116,"node_id":"I_kwDODunzps6JYt6k","number":6908,"title":"Fail to load \"stas\/c4-en-10k\" dataset since 2.16 version","user":{"login":"guch8017","id":38173059,"node_id":"MDQ6VXNlcjM4MTczMDU5","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/38173059?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/guch8017","html_url":"https:\/\/github.com\/guch8017","followers_url":"https:\/\/api.github.com\/users\/guch8017\/followers","following_url":"https:\/\/api.github.com\/users\/guch8017\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/guch8017\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/guch8017\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/guch8017\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/guch8017\/orgs","repos_url":"https:\/\/api.github.com\/users\/guch8017\/repos","events_url":"https:\/\/api.github.com\/users\/guch8017\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/guch8017\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":2,"created_at":"2024-05-20T02:43:59Z","updated_at":"2024-05-24T10:58:09Z","closed_at":"2024-05-24T10:58:09Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\r\n\r\nWhen update datasets library to version 2.16+ ( I test it on 2.16, 2.19.0 and 2.19.1), using the following code to load stas\/c4-en-10k dataset \r\n\r\n```python\r\nfrom datasets import load_dataset, Dataset\r\ndataset = load_dataset('stas\/c4-en-10k')\r\n```\r\n\r\nand then it raise UnicodeDecodeError like\r\n\r\n```\r\nTraceback (most recent call last):\r\n File \"\", line 1, in \r\n File \"\/home\/*\/conda3\/envs\/watermark\/lib\/python3.10\/site-packages\/datasets\/load.py\", line 2523, in load_dataset\r\n builder_instance = load_dataset_builder(\r\n File \"\/home\/*\/conda3\/envs\/watermark\/lib\/python3.10\/site-packages\/datasets\/load.py\", line 2195, in load_dataset_builder\r\n dataset_module = dataset_module_factory(\r\n File \"\/home\/*\/conda3\/envs\/watermark\/lib\/python3.10\/site-packages\/datasets\/load.py\", line 1846, in dataset_module_factory\r\n raise e1 from None\r\n File \"\/home\/*\/conda3\/envs\/watermark\/lib\/python3.10\/site-packages\/datasets\/load.py\", line 1798, in dataset_module_factory\r\n can_load_config_from_parquet_export = \"DEFAULT_CONFIG_NAME\" not in f.read()\r\n File \"\/home\/*\/conda3\/envs\/watermark\/lib\/python3.10\/codecs.py\", line 322, in decode\r\n (result, consumed) = self._buffer_decode(data, self.errors, final)\r\nUnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte\r\n```\r\n\r\nI found that fs.open loads a gzip file and parses it like plain text using utf-8 encoder.\r\n\r\n```python\r\nfs = HfFileSystem('https:\/\/huggingface.co')\r\nfs.open(\"datasets\/stas\/c4-en-10k\/c4-en-10k.py\", \"rb\")\r\ndata = fs.read() # data is gzip bytes begin with b'\\x1f\\x8b\\x08\\x00\\x00\\tn\\x88\\x00...' \r\ndata2 = unzip_gzip_bytes(data) # data2 is what we want: '# coding=utf-8\\n# Copyright 2020 The HuggingFace Datasets...'\r\n```\r\n\r\n### Steps to reproduce the bug\r\n\r\n1. Install datasets between version 2.16 and 2.19\r\n2. Use `datasets.load_dataset` method to load `stas\/c4-en-10k` dataset.\r\n\r\n### Expected behavior\r\n\r\nLoad dataset normally.\r\n\r\n### Environment info\r\n\r\nPlatform = Linux-5.4.0-159-generic-x86_64-with-glibc2.35\r\nPython = 3.10.14\r\nDatasets = 2.19","closed_by":{"login":"guch8017","id":38173059,"node_id":"MDQ6VXNlcjM4MTczMDU5","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/38173059?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/guch8017","html_url":"https:\/\/github.com\/guch8017","followers_url":"https:\/\/api.github.com\/users\/guch8017\/followers","following_url":"https:\/\/api.github.com\/users\/guch8017\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/guch8017\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/guch8017\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/guch8017\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/guch8017\/orgs","repos_url":"https:\/\/api.github.com\/users\/guch8017\/repos","events_url":"https:\/\/api.github.com\/users\/guch8017\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/guch8017\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6908\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6908\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6907","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6907\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6907\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6907\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6907","id":2303855833,"node_id":"I_kwDODunzps6JUgzZ","number":6907,"title":"Support the deserialization of json lines files comprised of lists","user":{"login":"umarbutler","id":8473183,"node_id":"MDQ6VXNlcjg0NzMxODM=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8473183?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/umarbutler","html_url":"https:\/\/github.com\/umarbutler","followers_url":"https:\/\/api.github.com\/users\/umarbutler\/followers","following_url":"https:\/\/api.github.com\/users\/umarbutler\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/umarbutler\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/umarbutler\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/umarbutler\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/umarbutler\/orgs","repos_url":"https:\/\/api.github.com\/users\/umarbutler\/repos","events_url":"https:\/\/api.github.com\/users\/umarbutler\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/umarbutler\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":1,"created_at":"2024-05-18T05:07:23Z","updated_at":"2024-05-18T08:53:28Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nI manage a somewhat large and popular Hugging Face dataset known as the [Open Australian Legal Corpus](https:\/\/huggingface.co\/datasets\/umarbutler\/open-australian-legal-corpus). I recently updated my corpus to be stored in a json lines file where each line is an array and each element represents a value at a particular column. Previously, my corpus was stored as a json lines file where each line was a dictionary and the keys were the fields.\r\n\r\nEssentially, a line in my json lines file used to look like this:\r\n```json\r\n{\"version_id\":\"\",\"type\":\"\",\"jurisdiction\":\"\",\"source\":\"\",\"citation\":\"\",\"url\":\"\",\"when_scraped\":\"\",\"text\":\"\"}\r\n```\r\n\r\nAnd now it looks like this:\r\n```json\r\n[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"]\r\n```\r\n\r\nThis saves 65 bytes per document and allows me very quickly serialise and deserialise documents via `msgspec`.\r\n\r\nAfter making this change, I found that `datasets` was incapable of deserialising my Corpus without a custom loading script, even if I ensured that the `dataset_info` field in my dataset card contained the desired names of my features.\r\n\r\nI would like to request that functionality be added to support this format which is more memory-efficent and faster than using dictionaries.\n\n### Motivation\n\nThe [documentation](https:\/\/huggingface.co\/docs\/datasets\/en\/dataset_script) for creating dataset loading scripts asserts that:\r\n> In the next major release, the new safety features of \ud83e\udd17 Datasets will disable running dataset loading scripts by default, and you will have to pass trust_remote_code=True to load datasets that require running a dataset script.\r\n\r\nI would rather not require my users to pass `trust_remote_code=True` which means that I will need built-in support for this format.\n\n### Your contribution\n\nI would be happy to submit a PR for this if this is something you would incorporate into `datasets` and if I can be pointed to where the code would need to go.","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6907\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6907\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6906","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6906\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6906\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6906\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6906","id":2303679119,"node_id":"I_kwDODunzps6JT1qP","number":6906,"title":"irc_disentangle - Issue with splitting data","user":{"login":"eor51355","id":114260604,"node_id":"U_kgDOBs96fA","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/114260604?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/eor51355","html_url":"https:\/\/github.com\/eor51355","followers_url":"https:\/\/api.github.com\/users\/eor51355\/followers","following_url":"https:\/\/api.github.com\/users\/eor51355\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/eor51355\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/eor51355\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/eor51355\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/eor51355\/orgs","repos_url":"https:\/\/api.github.com\/users\/eor51355\/repos","events_url":"https:\/\/api.github.com\/users\/eor51355\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/eor51355\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":6,"created_at":"2024-05-17T23:19:37Z","updated_at":"2024-07-16T00:21:56Z","closed_at":"2024-07-08T06:18:08Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI am trying to access your database through python using \"datasets.load_dataset(\"irc_disentangle\")\" and I am getting this error message:\r\n\r\nValueError: Instruction \"train\" corresponds to no data!\n\n### Steps to reproduce the bug\n\nimport datasets\r\nds = datasets.load_dataset('irc_disentangle')\r\nds\n\n### Expected behavior\n\nThe data is supposed to load into ds and be accessable as such:\r\nds['train'][1050], ds['train'][1055]\n\n### Environment info\n\nI tired Python 3.12 and 3.10","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6906\/reactions","total_count":2,"+1":2,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6906\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6905","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6905\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6905\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6905\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6905","id":2303098587,"node_id":"I_kwDODunzps6JRn7b","number":6905,"title":"Extraction protocol for arrow files is not defined","user":{"login":"radulescupetru","id":26553095,"node_id":"MDQ6VXNlcjI2NTUzMDk1","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/26553095?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/radulescupetru","html_url":"https:\/\/github.com\/radulescupetru","followers_url":"https:\/\/api.github.com\/users\/radulescupetru\/followers","following_url":"https:\/\/api.github.com\/users\/radulescupetru\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/radulescupetru\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/radulescupetru\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/radulescupetru\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/radulescupetru\/orgs","repos_url":"https:\/\/api.github.com\/users\/radulescupetru\/repos","events_url":"https:\/\/api.github.com\/users\/radulescupetru\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/radulescupetru\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-05-17T16:01:41Z","updated_at":"2025-02-06T19:50:22Z","closed_at":"2025-02-06T19:50:20Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nPassing files with `.arrow` extension into data_files argument, at least when `streaming=True` is very slow.\n\n### Steps to reproduce the bug\n\n Basically it goes through the `_get_extraction_protocol` method located [here](https:\/\/github.com\/huggingface\/datasets\/blob\/main\/src\/datasets\/utils\/file_utils.py#L820)\r\nThe method then looks at some base known extensions where `arrow` is not defined so it proceeds to determine the compression with the magic number method which is slow when dealing with a lot of files which are stored in s3 and by looking at this predefined list, I don't see `arrow` in there either so in the end it return None:\r\n\r\n```\r\nMAGIC_NUMBER_TO_COMPRESSION_PROTOCOL = {\r\n bytes.fromhex(\"504B0304\"): \"zip\",\r\n bytes.fromhex(\"504B0506\"): \"zip\", # empty archive\r\n bytes.fromhex(\"504B0708\"): \"zip\", # spanned archive\r\n bytes.fromhex(\"425A68\"): \"bz2\",\r\n bytes.fromhex(\"1F8B\"): \"gzip\",\r\n bytes.fromhex(\"FD377A585A00\"): \"xz\",\r\n bytes.fromhex(\"04224D18\"): \"lz4\",\r\n bytes.fromhex(\"28B52FFD\"): \"zstd\",\r\n}\r\n```\n\n### Expected behavior\n\nMy expectation is that `arrow` would be in the known lists so it would return None without going through the magic number method.\n\n### Environment info\n\ndatasets 2.19.0","closed_by":{"login":"radulescupetru","id":26553095,"node_id":"MDQ6VXNlcjI2NTUzMDk1","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/26553095?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/radulescupetru","html_url":"https:\/\/github.com\/radulescupetru","followers_url":"https:\/\/api.github.com\/users\/radulescupetru\/followers","following_url":"https:\/\/api.github.com\/users\/radulescupetru\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/radulescupetru\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/radulescupetru\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/radulescupetru\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/radulescupetru\/orgs","repos_url":"https:\/\/api.github.com\/users\/radulescupetru\/repos","events_url":"https:\/\/api.github.com\/users\/radulescupetru\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/radulescupetru\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6905\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6905\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6904","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6904\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6904\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6904\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6904","id":2302912179,"node_id":"PR_kwDODunzps5vzRlD","number":6904,"title":"Fix decoding multi part extension","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2024-05-17T14:32:57Z","updated_at":"2024-05-17T14:52:56Z","closed_at":"2024-05-17T14:46:54Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6904","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6904","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6904.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6904.patch","merged_at":"2024-05-17T14:46:54Z"},"body":"e.g. a field named `url.txt` should be a treated as text\r\n\r\nI also included a small fix to support .npz correctly","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6904\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6904\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6903","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6903\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6903\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6903\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6903","id":2300436053,"node_id":"I_kwDODunzps6JHd5V","number":6903,"title":"Add the option of saving in parquet instead of arrow ","user":{"login":"arita37","id":18707623,"node_id":"MDQ6VXNlcjE4NzA3NjIz","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/18707623?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/arita37","html_url":"https:\/\/github.com\/arita37","followers_url":"https:\/\/api.github.com\/users\/arita37\/followers","following_url":"https:\/\/api.github.com\/users\/arita37\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/arita37\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/arita37\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/arita37\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/arita37\/orgs","repos_url":"https:\/\/api.github.com\/users\/arita37\/repos","events_url":"https:\/\/api.github.com\/users\/arita37\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/arita37\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":18,"created_at":"2024-05-16T13:35:51Z","updated_at":"2025-05-19T12:14:14Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nIn dataset.save_to_disk('\/path\/to\/save\/dataset'),\r\n\r\nadd the option to save in parquet format\r\n\r\ndataset.save_to_disk('\/path\/to\/save\/dataset', format=\"parquet\"),\r\n\r\nbecause arrow is not used for Production Big data.... (only parquet)\r\n\r\n\n\n### Motivation\n\nbecause arrow is not used for Production Big data.... (only parquet)\n\n### Your contribution\n\nI can do the testing !","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6903\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6903\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6902","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6902\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6902\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6902\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6902","id":2300256241,"node_id":"PR_kwDODunzps5vqLIv","number":6902,"title":"Make CLI convert_to_parquet not raise error if no rights to create script branch","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-05-16T12:21:27Z","updated_at":"2024-06-03T04:43:17Z","closed_at":"2024-05-16T12:51:05Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6902","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6902","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6902.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6902.patch","merged_at":"2024-05-16T12:51:04Z"},"body":"Make CLI convert_to_parquet not raise error if no rights to create \"script\" branch.\r\n\r\nNot that before this PR, the error was not critical because it was raised at the end of the script, once all the rest of the steps were already performed.\r\n\r\nFix #6901.\r\n\r\nBug introduced in datasets-2.19.0 by:\r\n- #6809","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6902\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6902\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6901","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6901\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6901\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6901\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6901","id":2300167465,"node_id":"I_kwDODunzps6JGcUp","number":6901,"title":"HTTPError 403 raised by CLI convert_to_parquet when creating script branch on 3rd party repos","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892857,"node_id":"MDU6TGFiZWwxOTM1ODkyODU3","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/bug","name":"bug","color":"d73a4a","default":true,"description":"Something isn't working"}],"state":"closed","locked":false,"assignee":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":0,"created_at":"2024-05-16T11:40:22Z","updated_at":"2024-05-16T12:51:06Z","closed_at":"2024-05-16T12:51:06Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"CLI convert_to_parquet cannot create \"script\" branch on 3rd party repos.\r\n\r\nIt can only create it on repos where the user executing the script has write access.\r\n\r\nOtherwise, a 403 Forbidden HTTPError is raised:\r\n```\r\nTraceback (most recent call last):\r\n File \"\/usr\/local\/lib\/python3.10\/dist-packages\/huggingface_hub\/utils\/_errors.py\", line 304, in hf_raise_for_status\r\n response.raise_for_status()\r\n File \"\/usr\/local\/lib\/python3.10\/dist-packages\/requests\/models.py\", line 1021, in raise_for_status\r\n raise HTTPError(http_error_msg, response=self)\r\nrequests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https:\/\/huggingface.co\/api\/datasets\/ORG\/DATASET\/branch\/script\r\n\r\nThe above exception was the direct cause of the following exception:\r\n\r\nTraceback (most recent call last):\r\n File \"\/usr\/local\/bin\/datasets-cli\", line 8, in \r\n sys.exit(main())\r\n File \"\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/commands\/datasets_cli.py\", line 41, in main\r\n service.run()\r\n File \"\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/commands\/convert_to_parquet.py\", line 92, in run\r\n create_branch(dataset_id, branch=\"script\", repo_type=\"dataset\", token=token, exist_ok=True)\r\n File \"\/usr\/local\/lib\/python3.10\/dist-packages\/huggingface_hub\/utils\/_validators.py\", line 114, in _inner_fn\r\n return fn(*args, **kwargs)\r\n File \"\/usr\/local\/lib\/python3.10\/dist-packages\/huggingface_hub\/hf_api.py\", line 5503, in create_branch\r\n hf_raise_for_status(response)\r\n File \"\/usr\/local\/lib\/python3.10\/dist-packages\/huggingface_hub\/utils\/_errors.py\", line 367, in hf_raise_for_status\r\n raise HfHubHTTPError(message, response=response) from e\r\nhuggingface_hub.utils._errors.HfHubHTTPError: (Request ID: Root=1-6645ee0d-4db1ed8a1fbe04956be15897;139a6e23-df7d-4f62-b5ba-adb6d8e6e696)\r\n\r\n403 Forbidden: Forbidden: cannot write to script.\r\nCannot access content at: https:\/\/huggingface.co\/api\/datasets\/ORG\/DATASET\/branch\/script.\r\nIf you are trying to create or update content,make sure you have a token with the `write` role.\r\n```","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6901\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6901\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6900","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6900\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6900\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6900\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6900","id":2298489733,"node_id":"I_kwDODunzps6JACuF","number":6900,"title":"[WebDataset] KeyError with user-defined `Features` when a field is missing in an example","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2024-05-15T17:48:34Z","updated_at":"2024-06-28T09:30:13Z","closed_at":"2024-06-28T09:30:13Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"reported at https:\/\/huggingface.co\/datasets\/ProGamerGov\/synthetic-dataset-1m-dalle3-high-quality-captions\/discussions\/1\r\n\r\n```\r\nFile \"\/src\/services\/worker\/.venv\/lib\/python3.9\/site-packages\/datasets\/packaged_modules\/webdataset\/webdataset.py\", line 109, in _generate_examples\r\n example[field_name] = {\"path\": example[\"__key__\"] + \".\" + field_name, \"bytes\": example[field_name]}\r\n```","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6900\/reactions","total_count":2,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":2},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6900\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6899","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6899\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6899\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6899\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6899","id":2298059597,"node_id":"I_kwDODunzps6I-ZtN","number":6899,"title":"List of dictionary features get standardized","user":{"login":"sohamparikh","id":11831521,"node_id":"MDQ6VXNlcjExODMxNTIx","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/11831521?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/sohamparikh","html_url":"https:\/\/github.com\/sohamparikh","followers_url":"https:\/\/api.github.com\/users\/sohamparikh\/followers","following_url":"https:\/\/api.github.com\/users\/sohamparikh\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/sohamparikh\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/sohamparikh\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/sohamparikh\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/sohamparikh\/orgs","repos_url":"https:\/\/api.github.com\/users\/sohamparikh\/repos","events_url":"https:\/\/api.github.com\/users\/sohamparikh\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/sohamparikh\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-05-15T14:11:35Z","updated_at":"2025-04-01T20:48:03Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nHi, i\u2019m trying to create a HF dataset from a list using Dataset.from_list.\r\n\r\nEach sample in the list is a dict with the same keys (which will be my features). The values for each feature are a list of dictionaries, and each such dictionary has a different set of keys. However, the datasets library standardizes all dictionaries under a feature and adds all possible keys (with None value) from all the dictionaries under that feature.\r\n\r\nHow can I keep the same set of keys as in the original list for each dictionary under a feature?\n\n### Steps to reproduce the bug\n\n```\r\nfrom datasets import Dataset\r\n\r\n# Define a function to generate a sample with \"tools\" feature\r\ndef generate_sample():\r\n # Generate random sample data\r\n sample_data = {\r\n \"text\": \"Sample text\",\r\n \"feature_1\": []\r\n }\r\n \r\n # Add feature_1 with random keys for this sample\r\n feature_1 = [{\"key1\": \"value1\"}, {\"key2\": \"value2\"}] # Example feature_1 with random keys\r\n sample_data[\"feature_1\"].extend(feature_1)\r\n \r\n return sample_data\r\n\r\n# Generate multiple samples\r\nnum_samples = 10\r\nsamples = [generate_sample() for _ in range(num_samples)]\r\n\r\n# Create a Hugging Face Dataset\r\ndataset = Dataset.from_list(samples)\r\ndataset[0]\r\n```\r\n\r\n```{'text': 'Sample text', 'feature_1': [{'key1': 'value1', 'key2': None}, {'key1': None, 'key2': 'value2'}]}```\n\n### Expected behavior\n\n```{'text': 'Sample text', 'feature_1': [{'key1': 'value1'}, {'key2': 'value2'}]}```\n\n### Environment info\n\n- `datasets` version: 2.19.1\r\n- Platform: Linux-5.15.0-1040-nvidia-x86_64-with-glibc2.35\r\n- Python version: 3.10.13\r\n- `huggingface_hub` version: 0.23.0\r\n- PyArrow version: 15.0.0\r\n- Pandas version: 2.2.0\r\n- `fsspec` version: 2023.10.0","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6899\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6899\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6898","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6898\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6898\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6898\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6898","id":2294432108,"node_id":"PR_kwDODunzps5vWJ9v","number":6898,"title":"Fix YAML error in README files appearing on GitHub","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2024-05-14T05:21:57Z","updated_at":"2024-05-16T14:36:57Z","closed_at":"2024-05-16T14:28:16Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6898","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6898","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6898.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6898.patch","merged_at":"2024-05-16T14:28:16Z"},"body":"Fix YAML error in README files appearing on GitHub.\r\n\r\nSee error message:\r\n![Screenshot from 2024-05-14 06-58-02](https:\/\/github.com\/huggingface\/datasets\/assets\/8515462\/7984cc4e-96ee-4e83-99a4-4c0c5791fa05)\r\n\r\n\r\nFix #6897.","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6898\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6898\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6897","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6897\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6897\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6897\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6897","id":2293428243,"node_id":"I_kwDODunzps6IsvAT","number":6897,"title":"datasets template guide :: issue in documentation YAML","user":{"login":"bghira","id":59658056,"node_id":"MDQ6VXNlcjU5NjU4MDU2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/59658056?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/bghira","html_url":"https:\/\/github.com\/bghira","followers_url":"https:\/\/api.github.com\/users\/bghira\/followers","following_url":"https:\/\/api.github.com\/users\/bghira\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/bghira\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/bghira\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/bghira\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/bghira\/orgs","repos_url":"https:\/\/api.github.com\/users\/bghira\/repos","events_url":"https:\/\/api.github.com\/users\/bghira\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/bghira\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":2,"created_at":"2024-05-13T17:33:59Z","updated_at":"2024-05-16T14:28:17Z","closed_at":"2024-05-16T14:28:17Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nThere is a YAML error at the top of the page, and I don't think it's supposed to be there \n\n### Steps to reproduce the bug\n\n1. Browse to [this tutorial document](https:\/\/github.com\/huggingface\/datasets\/blob\/main\/templates\/README_guide.md)\r\n2. Observe a big red error at the top\r\n3. The rest of the document remains functional\n\n### Expected behavior\n\nI think the YAML block should be displayed or ignored.\n\n### Environment info\n\nN\/A","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6897\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6897\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6896","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6896\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6896\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6896\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6896","id":2293176061,"node_id":"I_kwDODunzps6Irxb9","number":6896,"title":"Regression bug: `NonMatchingSplitsSizesError` for (possibly) overwritten dataset","user":{"login":"finiteautomata","id":167943,"node_id":"MDQ6VXNlcjE2Nzk0Mw==","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/167943?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/finiteautomata","html_url":"https:\/\/github.com\/finiteautomata","followers_url":"https:\/\/api.github.com\/users\/finiteautomata\/followers","following_url":"https:\/\/api.github.com\/users\/finiteautomata\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/finiteautomata\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/finiteautomata\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/finiteautomata\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/finiteautomata\/orgs","repos_url":"https:\/\/api.github.com\/users\/finiteautomata\/repos","events_url":"https:\/\/api.github.com\/users\/finiteautomata\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/finiteautomata\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-05-13T15:41:57Z","updated_at":"2025-03-25T01:21:06Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\r\n\r\nWhile trying to load the dataset `https:\/\/huggingface.co\/datasets\/pysentimiento\/spanish-tweets-small`, I get this error:\r\n\r\n```python\r\n---------------------------------------------------------------------------\r\nNonMatchingSplitsSizesError Traceback (most recent call last)\r\n[](https:\/\/localhost:8080\/#) in ()\r\n 1 from datasets import load_dataset\r\n 2 \r\n----> 3 ds = load_dataset(\"pysentimiento\/spanish-tweets-small\")\r\n\r\n3 frames\r\n[\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/load.py](https:\/\/localhost:8080\/#) in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, verification_mode, ignore_verifications, keep_in_memory, save_infos, revision, token, use_auth_token, task, streaming, num_proc, storage_options, **config_kwargs)\r\n 2150 \r\n 2151 # Download and prepare data\r\n-> 2152 builder_instance.download_and_prepare(\r\n 2153 download_config=download_config,\r\n 2154 download_mode=download_mode,\r\n\r\n[\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/builder.py](https:\/\/localhost:8080\/#) in download_and_prepare(self, output_dir, download_config, download_mode, verification_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, file_format, max_shard_size, num_proc, storage_options, **download_and_prepare_kwargs)\r\n 946 if num_proc is not None:\r\n 947 prepare_split_kwargs[\"num_proc\"] = num_proc\r\n--> 948 self._download_and_prepare(\r\n 949 dl_manager=dl_manager,\r\n 950 verification_mode=verification_mode,\r\n\r\n[\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/builder.py](https:\/\/localhost:8080\/#) in _download_and_prepare(self, dl_manager, verification_mode, **prepare_split_kwargs)\r\n 1059 \r\n 1060 if verification_mode == VerificationMode.BASIC_CHECKS or verification_mode == VerificationMode.ALL_CHECKS:\r\n-> 1061 verify_splits(self.info.splits, split_dict)\r\n 1062 \r\n 1063 # Update the info object with the splits.\r\n\r\n[\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/utils\/info_utils.py](https:\/\/localhost:8080\/#) in verify_splits(expected_splits, recorded_splits)\r\n 98 ]\r\n 99 if len(bad_splits) > 0:\r\n--> 100 raise NonMatchingSplitsSizesError(str(bad_splits))\r\n 101 logger.info(\"All the splits matched successfully.\")\r\n 102 \r\n\r\nNonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=82649695458, num_examples=597433111, shard_lengths=None, dataset_name=None), 'recorded': SplitInfo(name='train', num_bytes=3358310095, num_examples=24898932, shard_lengths=[3626991, 3716991, 4036990, 3506990, 3676990, 3716990, 2616990], dataset_name='spanish-tweets-small')}]\r\n```\r\n\r\nI think I had this dataset updated, might be related to #6271 \r\n\r\nIt is working fine as late in `2.10.0` , but not in `2.13.0` onwards.\r\n\r\n### Steps to reproduce the bug\r\n\r\n\r\n```python\r\n\r\nfrom datasets import load_dataset\r\n\r\nds = load_dataset(\"pysentimiento\/spanish-tweets-small\")\r\n```\r\n\r\nYou can run it in [this notebook](https:\/\/colab.research.google.com\/drive\/1FdhqLiVimHIlkn7B54DbhizeQ4U3vGVl#scrollTo=YgA50cBSibUg)\r\n\r\n### Expected behavior\r\n\r\nLoad the dataset without any error\r\n\r\n### Environment info\r\n\r\n\r\n- `datasets` version: 2.13.0\r\n- Platform: Linux-6.1.58+-x86_64-with-glibc2.35\r\n- Python version: 3.10.12\r\n- Huggingface_hub version: 0.20.3\r\n- PyArrow version: 14.0.2\r\n- Pandas version: 2.0.3","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6896\/reactions","total_count":2,"+1":2,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6896\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6895","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6895\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6895\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6895\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6895","id":2292993156,"node_id":"PR_kwDODunzps5vRK8P","number":6895,"title":"Document that to_json defaults to JSON Lines","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-05-13T14:22:34Z","updated_at":"2024-05-16T14:37:25Z","closed_at":"2024-05-16T14:31:26Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6895","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6895","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6895.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6895.patch","merged_at":"2024-05-16T14:31:26Z"},"body":"Document that `Dataset.to_json` defaults to JSON Lines, by adding explanation in the corresponding docstring.\r\n\r\nFix #6894.","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6895\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6895\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6894","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6894\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6894\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6894\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6894","id":2292840226,"node_id":"I_kwDODunzps6Iqfci","number":6894,"title":"Better document defaults of to_json","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892861,"node_id":"MDU6TGFiZWwxOTM1ODkyODYx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/documentation","name":"documentation","color":"0075ca","default":true,"description":"Improvements or additions to documentation"}],"state":"closed","locked":false,"assignee":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":0,"created_at":"2024-05-13T13:30:54Z","updated_at":"2024-05-16T14:31:27Z","closed_at":"2024-05-16T14:31:27Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"Better document defaults of `to_json`: the default format is [JSON-Lines](https:\/\/jsonlines.org\/).\r\n\r\nRelated to:\r\n- #6891 ","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6894\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6894\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6893","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6893\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6893\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6893\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6893","id":2292677439,"node_id":"PR_kwDODunzps5vQFEv","number":6893,"title":"Close gzipped files properly","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2024-05-13T12:24:39Z","updated_at":"2024-05-13T13:53:17Z","closed_at":"2024-05-13T13:01:54Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6893","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6893","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6893.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6893.patch","merged_at":"2024-05-13T13:01:54Z"},"body":"close https:\/\/github.com\/huggingface\/datasets\/issues\/6877","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6893\/reactions","total_count":1,"+1":0,"-1":0,"laugh":1,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6893\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6892","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6892\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6892\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6892\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6892","id":2291201347,"node_id":"PR_kwDODunzps5vLIlp","number":6892,"title":"Add support for categorical\/dictionary types","user":{"login":"EthanSteinberg","id":342233,"node_id":"MDQ6VXNlcjM0MjIzMw==","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/342233?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/EthanSteinberg","html_url":"https:\/\/github.com\/EthanSteinberg","followers_url":"https:\/\/api.github.com\/users\/EthanSteinberg\/followers","following_url":"https:\/\/api.github.com\/users\/EthanSteinberg\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/EthanSteinberg\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/EthanSteinberg\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/EthanSteinberg\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/EthanSteinberg\/orgs","repos_url":"https:\/\/api.github.com\/users\/EthanSteinberg\/repos","events_url":"https:\/\/api.github.com\/users\/EthanSteinberg\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/EthanSteinberg\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2024-05-12T07:15:08Z","updated_at":"2024-06-07T15:01:39Z","closed_at":"2024-06-07T12:20:42Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6892","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6892","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6892.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6892.patch","merged_at":"2024-06-07T12:20:42Z"},"body":"Arrow has a very useful dictionary\/categorical type (https:\/\/arrow.apache.org\/docs\/python\/generated\/pyarrow.dictionary.html). This data type has significant speed, memory and disk benefits over pa.string() when there are only a few unique text strings in a column.\r\n\r\nUnfortunately, huggingface datasets currently does not support this type. So huggingface datasets cannot natively read many parquet files that use this datatype .This PR adds support for Huggingface Datasets to read categorical\/dictionary data.\r\n\r\nNote: This PR functions by simply converting those dictionary\/categorical types to strings. This means that huggingface datasets cannot take advantage of the compute benefits of categoricals, but it significantly simplifies logic. At this time, I do not think it makes sense to optimize categorical support within huggingface datasets and that we should only try to optimize later, if necessary.\r\n\r\nCloses #5706","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6892\/reactions","total_count":1,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6892\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6891","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6891\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6891\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6891\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6891","id":2291118869,"node_id":"I_kwDODunzps6Ij7MV","number":6891,"title":"Unable to load JSON saved using `to_json`","user":{"login":"DarshanDeshpande","id":39432636,"node_id":"MDQ6VXNlcjM5NDMyNjM2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/39432636?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/DarshanDeshpande","html_url":"https:\/\/github.com\/DarshanDeshpande","followers_url":"https:\/\/api.github.com\/users\/DarshanDeshpande\/followers","following_url":"https:\/\/api.github.com\/users\/DarshanDeshpande\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/DarshanDeshpande\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/DarshanDeshpande\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/DarshanDeshpande\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/DarshanDeshpande\/orgs","repos_url":"https:\/\/api.github.com\/users\/DarshanDeshpande\/repos","events_url":"https:\/\/api.github.com\/users\/DarshanDeshpande\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/DarshanDeshpande\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":2,"created_at":"2024-05-12T01:02:51Z","updated_at":"2024-05-16T14:32:55Z","closed_at":"2024-05-12T07:02:02Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nDatasets stored in the JSON format cannot be loaded using `json.load()`\n\n### Steps to reproduce the bug\n\n```\r\nimport json\r\nfrom datasets import load_dataset\r\n\r\ndataset = load_dataset(\"squad\")\r\ntrain_dataset, test_dataset = dataset[\"train\"], dataset[\"validation\"]\r\ntest_dataset.to_json(\"full_dataset.json\")\r\n\r\n# This works\r\nloaded_test = load_dataset(\"json\", data_files=\"full_dataset.json\")\r\n\r\n# This fails\r\nloaded_test = json.load(open(\"full_dataset.json\", \"r\"))\r\n```\n\n### Expected behavior\n\nThe JSON should be correctly formatted when writing so that it can be loaded using `json.load()`.\n\n### Environment info\n\nColab: https:\/\/colab.research.google.com\/drive\/1st1iStFUVgu9ZPvnzSzL4vDeYWDwYpUm?usp=sharing","closed_by":{"login":"DarshanDeshpande","id":39432636,"node_id":"MDQ6VXNlcjM5NDMyNjM2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/39432636?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/DarshanDeshpande","html_url":"https:\/\/github.com\/DarshanDeshpande","followers_url":"https:\/\/api.github.com\/users\/DarshanDeshpande\/followers","following_url":"https:\/\/api.github.com\/users\/DarshanDeshpande\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/DarshanDeshpande\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/DarshanDeshpande\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/DarshanDeshpande\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/DarshanDeshpande\/orgs","repos_url":"https:\/\/api.github.com\/users\/DarshanDeshpande\/repos","events_url":"https:\/\/api.github.com\/users\/DarshanDeshpande\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/DarshanDeshpande\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6891\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6891\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6890","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6890\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6890\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6890\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6890","id":2288699041,"node_id":"I_kwDODunzps6Iasah","number":6890,"title":"add `with_transform` and\/or `set_transform` to IterableDataset","user":{"login":"not-lain","id":70411813,"node_id":"MDQ6VXNlcjcwNDExODEz","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/70411813?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/not-lain","html_url":"https:\/\/github.com\/not-lain","followers_url":"https:\/\/api.github.com\/users\/not-lain\/followers","following_url":"https:\/\/api.github.com\/users\/not-lain\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/not-lain\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/not-lain\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/not-lain\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/not-lain\/orgs","repos_url":"https:\/\/api.github.com\/users\/not-lain\/repos","events_url":"https:\/\/api.github.com\/users\/not-lain\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/not-lain\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-05-10T01:00:12Z","updated_at":"2024-05-10T01:00:46Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nwhen working with a really large dataset it would save us a lot of time (and compute resources) to use either with_transform or the set_transform from the Dataset class instead of waiting for the entire dataset to map\n\n### Motivation\n\ndon't want to wait for a really long dataset to map, this would give IterableDataset an extra advantage over the Dataset class.\r\nreducing time and resources\n\n### Your contribution\n\nI am a little busy with my job search lately, but would post about this feature in my social media.\r\nApologies again (dad going to kick me out soon), if I ever have some free time I will contribute to making this a reality, but that's going to be hard\r\n \u00a0\u00a0\u00a0 \/ (\u252c\u252c\ufe4f\u252c\u252c)\\","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6890\/reactions","total_count":4,"+1":4,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6890\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6889","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6889\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6889\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6889\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6889","id":2287720539,"node_id":"PR_kwDODunzps5u_hW-","number":6889,"title":"fix bug #6877","user":{"login":"arthasking123","id":16257131,"node_id":"MDQ6VXNlcjE2MjU3MTMx","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/16257131?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/arthasking123","html_url":"https:\/\/github.com\/arthasking123","followers_url":"https:\/\/api.github.com\/users\/arthasking123\/followers","following_url":"https:\/\/api.github.com\/users\/arthasking123\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/arthasking123\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/arthasking123\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/arthasking123\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/arthasking123\/orgs","repos_url":"https:\/\/api.github.com\/users\/arthasking123\/repos","events_url":"https:\/\/api.github.com\/users\/arthasking123\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/arthasking123\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2024-05-09T13:38:40Z","updated_at":"2024-05-13T13:35:32Z","closed_at":"2024-05-13T13:35:32Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6889","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6889","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6889.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6889.patch","merged_at":null},"body":"fix bug #6877 due to maybe f becomes invaild after yield process\r\nthe results are below:\r\n\r\n\r\nResolving data files: 100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 828\/828 [00:01<00:00, 420.41it\/s]\r\nResolving data files: 100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 828\/828 [00:00<00:00, 26148.48it\/s]\r\nResolving data files: 100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 828\/828 [00:00<00:00, 409731.44it\/s]\r\nResolving data files: 100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 828\/828 [00:00<00:00, 289720.84it\/s]\r\nResolving data files: 100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 828\/828 [00:00<00:00, 26663.42it\/s]\r\nResolving data files: 100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 828\/828 [00:00<00:00, 434056.21it\/s]\r\nDownloading data: 100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 828\/828 [00:00<00:00, 13222.33files\/s]\r\nDownloading data: 100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 828\/828 [00:04<00:00, 180.67files\/s]\r\nDownloading data: 100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 828\/828 [01:35<00:00, 8.70files\/s]\r\nGenerating train split: 1571592 examples [00:08, 176736.09 examples\/s]\r\nGenerating test split: 85533 examples [00:01, 48224.56 examples\/s]\r\nGenerating validation split: 86246 examples [00:01, 50164.16 examples\/s]\r\n\r\nFix https:\/\/github.com\/huggingface\/datasets\/issues\/6877.\r\n\r\nCC: @natolambert\r\n","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6889\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6889\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6888","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6888\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6888\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6888\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6888","id":2287169676,"node_id":"PR_kwDODunzps5u9omr","number":6888,"title":"Support WebDataset containing file basenames with dots","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2024-05-09T08:25:30Z","updated_at":"2024-05-10T13:54:06Z","closed_at":"2024-05-10T13:54:06Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6888","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6888","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6888.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6888.patch","merged_at":null},"body":"Support WebDataset containing file basenames with dots.\r\n\r\nFix #6880.","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6888\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6888\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6887","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6887\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6887\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6887\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6887","id":2286786396,"node_id":"I_kwDODunzps6ITZdc","number":6887,"title":"FAISS load to None","user":{"login":"brainer3220","id":40418544,"node_id":"MDQ6VXNlcjQwNDE4NTQ0","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/40418544?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/brainer3220","html_url":"https:\/\/github.com\/brainer3220","followers_url":"https:\/\/api.github.com\/users\/brainer3220\/followers","following_url":"https:\/\/api.github.com\/users\/brainer3220\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/brainer3220\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/brainer3220\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/brainer3220\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/brainer3220\/orgs","repos_url":"https:\/\/api.github.com\/users\/brainer3220\/repos","events_url":"https:\/\/api.github.com\/users\/brainer3220\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/brainer3220\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-05-09T02:43:50Z","updated_at":"2024-05-16T20:44:23Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI've use FAISS with Datasets and save to FAISS.\r\n\r\nThen load to save FAISS then no error, then ds to None\r\n\r\n```python\r\nds.load_faiss_index('embeddings', 'my_index.faiss')\r\n```\n\n### Steps to reproduce the bug\n\n# 1.\r\n```python\r\nds_with_embeddings = ds.map(lambda example: {'embeddings': model(transforms(example['image']).unsqueeze(0)).squeeze()}, batch_size=64)\r\n\r\nds_with_embeddings.add_faiss_index(column='embeddings')\r\n\r\nds_with_embeddings.save_faiss_index('embeddings', 'index.faiss')\r\n```\r\n\r\n# 2.\r\n```python\r\nds.load_faiss_index('embeddings', 'my_index.faiss')\r\n```\n\n### Expected behavior\n\nAdd column in Datasets.\n\n### Environment info\n\nGoogle Colab, SageMaker Notebook","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6887\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6887\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6886","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6886\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6886\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6886\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6886","id":2286328984,"node_id":"I_kwDODunzps6IRpyY","number":6886,"title":"load_dataset with data_dir and cache_dir set fail with not supported","user":{"login":"fah","id":322496,"node_id":"MDQ6VXNlcjMyMjQ5Ng==","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/322496?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/fah","html_url":"https:\/\/github.com\/fah","followers_url":"https:\/\/api.github.com\/users\/fah\/followers","following_url":"https:\/\/api.github.com\/users\/fah\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/fah\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/fah\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/fah\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/fah\/orgs","repos_url":"https:\/\/api.github.com\/users\/fah\/repos","events_url":"https:\/\/api.github.com\/users\/fah\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/fah\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-05-08T19:52:35Z","updated_at":"2024-05-08T19:58:11Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\r\n\r\nwith python 3.11 I execute:\r\n```py\r\nfrom transformers import Wav2Vec2Processor, Data2VecAudioModel\r\nimport torch\r\nfrom torch import nn\r\nfrom datasets import load_dataset, concatenate_datasets\r\n\r\n# load demo audio and set processor\r\ndataset_clean = load_dataset(\"librispeech_asr\", \"clean\", split=\"validation\", data_dir=\"data\", cache_dir=\"cache\")\r\n```\r\nThis fails in the last line with \r\n```log\r\nFound cached dataset librispeech_asr (file:\/\/\/Users\/as\/Documents\/Project\/git\/audio2vec\/cache\/librispeech_asr\/clean-data_dir=data\/2.1.0\/cff5df6e7955c80a67f80e27e7e655de71c689e2d2364bece785b972acb37fe7)\r\nTraceback (most recent call last):\r\n File \"\/Users\/as\/Documents\/Project\/git\/audio2vec\/src\/music2vec-v1.py\", line 7, in \r\n dataset_clean = load_dataset(\"librispeech_asr\", \"clean\", split=\"validation\", data_dir=\"data\", cache_dir=\"cache\")\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"\/Users\/as\/anaconda3\/lib\/python3.11\/site-packages\/datasets\/load.py\", line 1810, in load_dataset\r\n ds = builder_instance.as_dataset(split=split, verification_mode=verification_mode, in_memory=keep_in_memory)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"\/Users\/as\/anaconda3\/lib\/python3.11\/site-packages\/datasets\/builder.py\", line 1113, in as_dataset\r\n raise NotImplementedError(f\"Loading a dataset cached in a {type(self._fs).__name__} is not supported.\")\r\nNotImplementedError: Loading a dataset cached in a LocalFileSystem is not supported.\r\n```\r\n\r\n### Steps to reproduce the bug\r\n\r\nI setup an venv with requirements.txt\r\n```txt\r\ntransformers==4.40.2\r\ntorch==2.2.2\r\ndatasets==2.16.0\r\nfsspec==2023.9.2\r\n```\r\n\r\npip freeze is:\r\n```\r\naiohttp==3.9.5\r\naiosignal==1.3.1\r\nattrs==23.2.0\r\ncertifi==2024.2.2\r\ncharset-normalizer==3.3.2\r\ndatasets==2.16.0\r\ndill==0.3.7\r\nfilelock==3.14.0\r\nfrozenlist==1.4.1\r\nfsspec==2023.9.2\r\nhuggingface-hub==0.23.0\r\nidna==3.7\r\nJinja2==3.1.4\r\nMarkupSafe==2.1.5\r\nmpmath==1.3.0\r\nmultidict==6.0.5\r\nmultiprocess==0.70.15\r\nnetworkx==3.3\r\nnumpy==1.26.4\r\npackaging==24.0\r\npandas==2.2.2\r\npyarrow==16.0.0\r\npyarrow-hotfix==0.6\r\npython-dateutil==2.9.0.post0\r\npytz==2024.1\r\nPyYAML==6.0.1\r\nregex==2024.4.28\r\nrequests==2.31.0\r\nsafetensors==0.4.3\r\nsix==1.16.0\r\nsympy==1.12\r\ntokenizers==0.19.1\r\ntorch==2.2.2\r\ntqdm==4.66.4\r\ntransformers==4.40.2\r\ntyping_extensions==4.11.0\r\ntzdata==2024.1\r\nurllib3==2.2.1\r\nxxhash==3.4.1\r\nyarl==1.9.4\r\n\r\n```\r\n\r\nI execute this on a M1 Mac.\r\n\r\n\r\n### Expected behavior\r\n\r\nI don't understand the error message. Why is \"local\" caching not supported. Would it possible to give some additional hint with the error message how to solve this issue?\r\n\r\n\r\n### Environment info\r\n\r\nsource ....\r\npython -u example.py","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6886\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6886\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6885","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6885\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6885\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6885\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6885","id":2285115400,"node_id":"PR_kwDODunzps5u2urB","number":6885,"title":"Support jax 0.4.27 in CI tests","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-05-08T09:19:37Z","updated_at":"2024-05-08T09:43:19Z","closed_at":"2024-05-08T09:35:16Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6885","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6885","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6885.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6885.patch","merged_at":"2024-05-08T09:35:16Z"},"body":"Support jax 0.4.27 in CI tests by using jax Array `devices` method instead of `device` (which no longer exists).\r\n\r\nFix #6884.","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6885\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6885\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6884","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6884\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6884\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6884\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6884","id":2284839687,"node_id":"I_kwDODunzps6IL-MH","number":6884,"title":"CI is broken after jax-0.4.27 release: AttributeError: 'jaxlib.xla_extension.DeviceList' object has no attribute 'device'","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892857,"node_id":"MDU6TGFiZWwxOTM1ODkyODU3","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/bug","name":"bug","color":"d73a4a","default":true,"description":"Something isn't working"}],"state":"closed","locked":false,"assignee":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":0,"created_at":"2024-05-08T07:01:47Z","updated_at":"2024-05-08T09:35:17Z","closed_at":"2024-05-08T09:35:17Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"After jax-0.4.27 release (https:\/\/github.com\/google\/jax\/releases\/tag\/jax-v0.4.27), our CI is broken with the error:\r\n```Python traceback\r\nAttributeError: 'jaxlib.xla_extension.DeviceList' object has no attribute 'device'. Did you mean: 'devices'?\r\n```\r\n\r\nSee: https:\/\/github.com\/huggingface\/datasets\/actions\/runs\/8997488610\/job\/24715736153\r\n```Python traceback\r\n___________________ FormatterTest.test_jax_formatter_device ____________________\r\n[gw1] linux -- Python 3.10.14 \/opt\/hostedtoolcache\/Python\/3.10.14\/x64\/bin\/python\r\n\r\nself = \r\n\r\n @require_jax\r\n def test_jax_formatter_device(self):\r\n import jax\r\n \r\n from datasets.formatting import JaxFormatter\r\n \r\n pa_table = self._create_dummy_table()\r\n device = jax.devices()[0]\r\n formatter = JaxFormatter(device=str(device))\r\n row = formatter.format_row(pa_table)\r\n> assert row[\"a\"].device() == device\r\nE AttributeError: 'jaxlib.xla_extension.DeviceList' object has no attribute 'device'. Did you mean: 'devices'?\r\n\r\ntests\/test_formatting.py:630: AttributeError\r\n```","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6884\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6884\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6883","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6883\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6883\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6883\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6883","id":2284808399,"node_id":"PR_kwDODunzps5u1sL1","number":6883,"title":"Require Pillow >= 9.4.0 to avoid AttributeError when loading image dataset","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2024-05-08T06:43:29Z","updated_at":"2024-08-28T13:13:57Z","closed_at":"2024-05-16T14:34:02Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6883","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6883","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6883.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6883.patch","merged_at":"2024-05-16T14:34:02Z"},"body":"Require Pillow >= 9.4.0 to avoid AttributeError when loading image dataset.\r\n\r\nThe `PIL.Image.ExifTags` that we use in our code was implemented in Pillow-9.4.0: https:\/\/github.com\/python-pillow\/Pillow\/commit\/24a5405a9f7ea22f28f9c98b3e407292ea5ee1d3\r\n\r\nThe bug #6881 was introduced in datasets-2.19.0 by this PR:\r\n- #6739\r\n\r\nFix #6881.","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6883\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6883\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6882","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6882\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6882\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6882\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6882","id":2284803158,"node_id":"I_kwDODunzps6IL1RW","number":6882,"title":"Connection Error When Using By-pass Proxies","user":{"login":"MRNOBODY-ZST","id":78351684,"node_id":"MDQ6VXNlcjc4MzUxNjg0","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/78351684?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/MRNOBODY-ZST","html_url":"https:\/\/github.com\/MRNOBODY-ZST","followers_url":"https:\/\/api.github.com\/users\/MRNOBODY-ZST\/followers","following_url":"https:\/\/api.github.com\/users\/MRNOBODY-ZST\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/MRNOBODY-ZST\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/MRNOBODY-ZST\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/MRNOBODY-ZST\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/MRNOBODY-ZST\/orgs","repos_url":"https:\/\/api.github.com\/users\/MRNOBODY-ZST\/repos","events_url":"https:\/\/api.github.com\/users\/MRNOBODY-ZST\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/MRNOBODY-ZST\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-05-08T06:40:14Z","updated_at":"2024-05-17T06:38:30Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI'm currently using Clash for Windows as my proxy tunnel, after exporting HTTP_PROXY and HTTPS_PROXY to the port that clash provides\ud83e\udd14, it runs into a connection error saying \"Couldn't reach https:\/\/raw.githubusercontent.com\/huggingface\/datasets\/2.19.1\/metrics\/seqeval\/seqeval.py (ConnectionError(MaxRetryError(\"HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: \/huggingface\/datasets\/2.19.1\/metrics\/seqeval\/seqeval.py (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\")))\"\r\nI have already read the documentation provided on the hugginface, but I think I didn't see the detailed instruction on how to set up proxies for this library.\n\n### Steps to reproduce the bug\n\n1. Turn on any proxy software like Clash \/ ShadosocksR etc.\r\n2. export system varibles to the port provided by your proxy software in wsl (It's ok for other applications to use proxy expect dataset-library)\r\n3. load any dataset from hugginface online\n\n### Expected behavior\n\n---------------------------------------------------------------------------\r\nConnectionError Traceback (most recent call last)\r\nCell In[33], [line 3](vscode-notebook-cell:?execution_count=33&line=3)\r\n [1](vscode-notebook-cell:?execution_count=33&line=1) from datasets import load_metric\r\n----> [3](vscode-notebook-cell:?execution_count=33&line=3) metric = load_metric(\"seqeval\")\r\n\r\nFile ~\/.local\/lib\/python3.10\/site-packages\/datasets\/utils\/deprecation_utils.py:46, in deprecated..decorator..wrapper(*args, **kwargs)\r\n [44](https:\/\/vscode-remote+wsl-002bubuntu-002d22-002e04.vscode-resource.vscode-cdn.net\/home\/noodle\/Transformers-Tutorials\/LayoutLMv3\/~\/.local\/lib\/python3.10\/site-packages\/datasets\/utils\/deprecation_utils.py:44) warnings.warn(warning_msg, category=FutureWarning, stacklevel=2)\r\n [45](https:\/\/vscode-remote+wsl-002bubuntu-002d22-002e04.vscode-resource.vscode-cdn.net\/home\/noodle\/Transformers-Tutorials\/LayoutLMv3\/~\/.local\/lib\/python3.10\/site-packages\/datasets\/utils\/deprecation_utils.py:45) _emitted_deprecation_warnings.add(func_hash)\r\n---> [46](https:\/\/vscode-remote+wsl-002bubuntu-002d22-002e04.vscode-resource.vscode-cdn.net\/home\/noodle\/Transformers-Tutorials\/LayoutLMv3\/~\/.local\/lib\/python3.10\/site-packages\/datasets\/utils\/deprecation_utils.py:46) return deprecated_function(*args, **kwargs)\r\n\r\nFile ~\/.local\/lib\/python3.10\/site-packages\/datasets\/load.py:2104, in load_metric(path, config_name, process_id, num_process, cache_dir, experiment_id, keep_in_memory, download_config, download_mode, revision, trust_remote_code, **metric_init_kwargs)\r\n [2101](https:\/\/vscode-remote+wsl-002bubuntu-002d22-002e04.vscode-resource.vscode-cdn.net\/home\/noodle\/Transformers-Tutorials\/LayoutLMv3\/~\/.local\/lib\/python3.10\/site-packages\/datasets\/load.py:2101) warnings.filterwarnings(\"ignore\", message=\".*https:\/\/huggingface.co\/docs\/evaluate$\", category=FutureWarning)\r\n [2103](https:\/\/vscode-remote+wsl-002bubuntu-002d22-002e04.vscode-resource.vscode-cdn.net\/home\/noodle\/Transformers-Tutorials\/LayoutLMv3\/~\/.local\/lib\/python3.10\/site-packages\/datasets\/load.py:2103) download_mode = DownloadMode(download_mode or DownloadMode.REUSE_DATASET_IF_EXISTS)\r\n-> [2104](https:\/\/vscode-remote+wsl-002bubuntu-002d22-002e04.vscode-resource.vscode-cdn.net\/home\/noodle\/Transformers-Tutorials\/LayoutLMv3\/~\/.local\/lib\/python3.10\/site-packages\/datasets\/load.py:2104) metric_module = metric_module_factory(\r\n [2105](https:\/\/vscode-remote+wsl-002bubuntu-002d22-002e04.vscode-resource.vscode-cdn.net\/home\/noodle\/Transformers-Tutorials\/LayoutLMv3\/~\/.local\/lib\/python3.10\/site-packages\/datasets\/load.py:2105) path,\r\n [2106](https:\/\/vscode-remote+wsl-002bubuntu-002d22-002e04.vscode-resource.vscode-cdn.net\/home\/noodle\/Transformers-Tutorials\/LayoutLMv3\/~\/.local\/lib\/python3.10\/site-packages\/datasets\/load.py:2106) revision=revision,\r\n [2107](https:\/\/vscode-remote+wsl-002bubuntu-002d22-002e04.vscode-resource.vscode-cdn.net\/home\/noodle\/Transformers-Tutorials\/LayoutLMv3\/~\/.local\/lib\/python3.10\/site-packages\/datasets\/load.py:2107) download_config=download_config,\r\n [2108](https:\/\/vscode-remote+wsl-002bubuntu-002d22-002e04.vscode-resource.vscode-cdn.net\/home\/noodle\/Transformers-Tutorials\/LayoutLMv3\/~\/.local\/lib\/python3.10\/site-packages\/datasets\/load.py:2108) download_mode=download_mode,\r\n [2109](https:\/\/vscode-remote+wsl-002bubuntu-002d22-002e04.vscode-resource.vscode-cdn.net\/home\/noodle\/Transformers-Tutorials\/LayoutLMv3\/~\/.local\/lib\/python3.10\/site-packages\/datasets\/load.py:2109) trust_remote_code=trust_remote_code,\r\n [2110](https:\/\/vscode-remote+wsl-002bubuntu-002d22-002e04.vscode-resource.vscode-cdn.net\/home\/noodle\/Transformers-Tutorials\/LayoutLMv3\/~\/.local\/lib\/python3.10\/site-packages\/datasets\/load.py:2110) ).module_path\r\n [2111](https:\/\/vscode-remote+wsl-002bubuntu-002d22-002e04.vscode-resource.vscode-cdn.net\/home\/noodle\/Transformers-Tutorials\/LayoutLMv3\/~\/.local\/lib\/python3.10\/site-packages\/datasets\/load.py:2111) metric_cls = import_main_class(metric_module, dataset=False)\r\n [2112](https:\/\/vscode-remote+wsl-002bubuntu-002d22-002e04.vscode-resource.vscode-cdn.net\/home\/noodle\/Transformers-Tutorials\/LayoutLMv3\/~\/.local\/lib\/python3.10\/site-packages\/datasets\/load.py:2112) metric = metric_cls(\r\n [2113](https:\/\/vscode-remote+wsl-002bubuntu-002d22-002e04.vscode-resource.vscode-cdn.net\/home\/noodle\/Transformers-Tutorials\/LayoutLMv3\/~\/.local\/lib\/python3.10\/site-packages\/datasets\/load.py:2113) config_name=config_name,\r\n [2114](https:\/\/vscode-remote+wsl-002bubuntu-002d22-002e04.vscode-resource.vscode-cdn.net\/home\/noodle\/Transformers-Tutorials\/LayoutLMv3\/~\/.local\/lib\/python3.10\/site-packages\/datasets\/load.py:2114) process_id=process_id,\r\n...\r\n--> [633](https:\/\/vscode-remote+wsl-002bubuntu-002d22-002e04.vscode-resource.vscode-cdn.net\/home\/noodle\/Transformers-Tutorials\/LayoutLMv3\/~\/.local\/lib\/python3.10\/site-packages\/datasets\/utils\/file_utils.py:633) raise ConnectionError(f\"Couldn't reach {url} ({repr(head_error)})\")\r\n [634](https:\/\/vscode-remote+wsl-002bubuntu-002d22-002e04.vscode-resource.vscode-cdn.net\/home\/noodle\/Transformers-Tutorials\/LayoutLMv3\/~\/.local\/lib\/python3.10\/site-packages\/datasets\/utils\/file_utils.py:634) elif response is not None:\r\n [635](https:\/\/vscode-remote+wsl-002bubuntu-002d22-002e04.vscode-resource.vscode-cdn.net\/home\/noodle\/Transformers-Tutorials\/LayoutLMv3\/~\/.local\/lib\/python3.10\/site-packages\/datasets\/utils\/file_utils.py:635) raise ConnectionError(f\"Couldn't reach {url} (error {response.status_code})\")\r\n\r\nConnectionError: Couldn't reach https:\/\/raw.githubusercontent.com\/huggingface\/datasets\/2.19.1\/metrics\/seqeval\/seqeval.py (SSLError(MaxRetryError(\"HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: \/huggingface\/datasets\/2.19.1\/metrics\/seqeval\/seqeval.py (Caused by SSLError(SSLEOFError(8, '[SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1007)')))\")))\n\n### Environment info\n\n- `datasets` version: 2.19.1\r\n- Platform: Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.35\r\n- Python version: 3.10.12\r\n- `huggingface_hub` version: 0.23.0\r\n- PyArrow version: 16.0.0\r\n- Pandas version: 2.2.2\r\n- `fsspec` version: 2024.2.0","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6882\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6882\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6881","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6881\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6881\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6881\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6881","id":2284794009,"node_id":"I_kwDODunzps6ILzCZ","number":6881,"title":"AttributeError: module 'PIL.Image' has no attribute 'ExifTags'","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892857,"node_id":"MDU6TGFiZWwxOTM1ODkyODU3","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/bug","name":"bug","color":"d73a4a","default":true,"description":"Something isn't working"}],"state":"closed","locked":false,"assignee":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":3,"created_at":"2024-05-08T06:33:57Z","updated_at":"2024-07-18T06:49:30Z","closed_at":"2024-05-16T14:34:03Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"When trying to load an image dataset in an old Python environment (with Pillow-8.4.0), an error is raised:\r\n```Python traceback\r\nAttributeError: module 'PIL.Image' has no attribute 'ExifTags'\r\n```\r\nThe error traceback:\r\n```Python traceback\r\n~\/huggingface\/datasets\/src\/datasets\/iterable_dataset.py in __iter__(self)\r\n 1391 # `IterableDataset` automatically fills missing columns with None.\r\n 1392 # This is done with `_apply_feature_types_on_example`.\r\n-> 1393 example = _apply_feature_types_on_example(\r\n 1394 example, self.features, token_per_repo_id=self._token_per_repo_id\r\n 1395 )\r\n\r\n~\/huggingface\/datasets\/src\/datasets\/iterable_dataset.py in _apply_feature_types_on_example(example, features, token_per_repo_id)\r\n 1080 encoded_example = features.encode_example(example)\r\n 1081 # Decode example for Audio feature, e.g.\r\n-> 1082 decoded_example = features.decode_example(encoded_example, token_per_repo_id=token_per_repo_id)\r\n 1083 return decoded_example\r\n 1084 \r\n\r\n~\/huggingface\/datasets\/src\/datasets\/features\/features.py in decode_example(self, example, token_per_repo_id)\r\n 1974 \r\n-> 1975 return {\r\n 1976 column_name: decode_nested_example(feature, value, token_per_repo_id=token_per_repo_id)\r\n 1977 if self._column_requires_decoding[column_name]\r\n\r\n~\/huggingface\/datasets\/src\/datasets\/features\/features.py in (.0)\r\n 1974 \r\n 1975 return {\r\n-> 1976 column_name: decode_nested_example(feature, value, token_per_repo_id=token_per_repo_id)\r\n 1977 if self._column_requires_decoding[column_name]\r\n 1978 else value\r\n\r\n~\/huggingface\/datasets\/src\/datasets\/features\/features.py in decode_nested_example(schema, obj, token_per_repo_id)\r\n 1339 # we pass the token to read and decode files from private repositories in streaming mode\r\n 1340 if obj is not None and schema.decode:\r\n-> 1341 return schema.decode_example(obj, token_per_repo_id=token_per_repo_id)\r\n 1342 return obj\r\n 1343 \r\n\r\n~\/huggingface\/datasets\/src\/datasets\/features\/image.py in decode_example(self, value, token_per_repo_id)\r\n 187 image = PIL.Image.open(BytesIO(bytes_))\r\n 188 image.load() # to avoid \"Too many open files\" errors\r\n--> 189 if image.getexif().get(PIL.Image.ExifTags.Base.Orientation) is not None:\r\n 190 image = PIL.ImageOps.exif_transpose(image)\r\n 191 if self.mode and self.mode != image.mode:\r\n\r\n~\/huggingface\/datasets\/venv\/lib\/python3.9\/site-packages\/PIL\/Image.py in __getattr__(name)\r\n 75 )\r\n 76 return categories[name]\r\n---> 77 raise AttributeError(f\"module '{__name__}' has no attribute '{name}'\")\r\n 78 \r\n 79 \r\n\r\nAttributeError: module 'PIL.Image' has no attribute 'ExifTags'\r\n```\r\n\r\n### Environment info\r\n\r\nSince datasets 2.19.0","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6881\/reactions","total_count":3,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":1,"heart":0,"rocket":0,"eyes":2},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6881\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6880","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6880\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6880\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6880\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6880","id":2283278337,"node_id":"I_kwDODunzps6IGBAB","number":6880,"title":"Webdataset: KeyError: 'png' on some datasets when streaming","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":5,"created_at":"2024-05-07T13:09:02Z","updated_at":"2024-05-14T20:34:05Z","closed_at":null,"author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"reported at https:\/\/huggingface.co\/datasets\/tbone5563\/tar_images\/discussions\/1\r\n\r\n```python\r\n>>> from datasets import load_dataset\r\n>>> ds = load_dataset(\"tbone5563\/tar_images\")\r\nDownloading\u2007data:\u2007100%\r\n\u20071.41G\/1.41G\u2007[00:48<00:00,\u200717.2MB\/s]\r\nDownloading\u2007data:\u2007100%\r\n\u2007619M\/619M\u2007[00:11<00:00,\u200757.4MB\/s]\r\nGenerating\u2007train\u2007split:\u2007\r\n\u2007970\/0\u2007[00:02<00:00,\u2007534.94\u2007examples\/s]\r\n---------------------------------------------------------------------------\r\nKeyError Traceback (most recent call last)\r\n[\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/builder.py](https:\/\/localhost:8080\/#) in _prepare_split_single(self, gen_kwargs, fpath, file_format, max_shard_size, split_info, check_duplicate_keys, job_id)\r\n 1747 _time = time.time()\r\n-> 1748 for key, record in generator:\r\n 1749 if max_shard_size is not None and writer._num_bytes > max_shard_size:\r\n\r\n7 frames\r\n[\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/packaged_modules\/webdataset\/webdataset.py](https:\/\/localhost:8080\/#) in _generate_examples(self, tar_paths, tar_iterators)\r\n 108 for field_name in image_field_names + audio_field_names:\r\n--> 109 example[field_name] = {\"path\": example[\"__key__\"] + \".\" + field_name, \"bytes\": example[field_name]}\r\n 110 yield f\"{tar_idx}_{example_idx}\", example\r\n\r\nKeyError: 'png'\r\n\r\nThe above exception was the direct cause of the following exception:\r\n\r\nDatasetGenerationError Traceback (most recent call last)\r\n[](https:\/\/localhost:8080\/#) in ()\r\n 1 from datasets import load_dataset\r\n 2 \r\n----> 3 ds = load_dataset(\"tbone5563\/tar_images\")\r\n\r\n[\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/load.py](https:\/\/localhost:8080\/#) in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, verification_mode, ignore_verifications, keep_in_memory, save_infos, revision, token, use_auth_token, task, streaming, num_proc, storage_options, trust_remote_code, **config_kwargs)\r\n 2607 \r\n 2608 # Download and prepare data\r\n-> 2609 builder_instance.download_and_prepare(\r\n 2610 download_config=download_config,\r\n 2611 download_mode=download_mode,\r\n\r\n[\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/builder.py](https:\/\/localhost:8080\/#) in download_and_prepare(self, output_dir, download_config, download_mode, verification_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, file_format, max_shard_size, num_proc, storage_options, **download_and_prepare_kwargs)\r\n 1025 if num_proc is not None:\r\n 1026 prepare_split_kwargs[\"num_proc\"] = num_proc\r\n-> 1027 self._download_and_prepare(\r\n 1028 dl_manager=dl_manager,\r\n 1029 verification_mode=verification_mode,\r\n\r\n[\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/builder.py](https:\/\/localhost:8080\/#) in _download_and_prepare(self, dl_manager, verification_mode, **prepare_splits_kwargs)\r\n 1787 \r\n 1788 def _download_and_prepare(self, dl_manager, verification_mode, **prepare_splits_kwargs):\r\n-> 1789 super()._download_and_prepare(\r\n 1790 dl_manager,\r\n 1791 verification_mode,\r\n\r\n[\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/builder.py](https:\/\/localhost:8080\/#) in _download_and_prepare(self, dl_manager, verification_mode, **prepare_split_kwargs)\r\n 1120 try:\r\n 1121 # Prepare split will record examples associated to the split\r\n-> 1122 self._prepare_split(split_generator, **prepare_split_kwargs)\r\n 1123 except OSError as e:\r\n 1124 raise OSError(\r\n\r\n[\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/builder.py](https:\/\/localhost:8080\/#) in _prepare_split(self, split_generator, check_duplicate_keys, file_format, num_proc, max_shard_size)\r\n 1625 job_id = 0\r\n 1626 with pbar:\r\n-> 1627 for job_id, done, content in self._prepare_split_single(\r\n 1628 gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args\r\n 1629 ):\r\n\r\n[\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/builder.py](https:\/\/localhost:8080\/#) in _prepare_split_single(self, gen_kwargs, fpath, file_format, max_shard_size, split_info, check_duplicate_keys, job_id)\r\n 1782 if isinstance(e, SchemaInferenceError) and e.__context__ is not None:\r\n 1783 e = e.__context__\r\n-> 1784 raise DatasetGenerationError(\"An error occurred while generating the dataset\") from e\r\n 1785 \r\n 1786 yield job_id, True, (total_num_examples, total_num_bytes, writer._features, num_shards, shard_lengths)\r\n\r\nDatasetGenerationError: An error occurred while generating the dataset\r\n```","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6880\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6880\/timeline","performed_via_github_app":null,"state_reason":"reopened","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6879","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6879\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6879\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6879\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6879","id":2282968259,"node_id":"I_kwDODunzps6IE1TD","number":6879,"title":"Batched mapping does not raise an error if values for an existing column are empty","user":{"login":"felix-schneider","id":208336,"node_id":"MDQ6VXNlcjIwODMzNg==","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/208336?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/felix-schneider","html_url":"https:\/\/github.com\/felix-schneider","followers_url":"https:\/\/api.github.com\/users\/felix-schneider\/followers","following_url":"https:\/\/api.github.com\/users\/felix-schneider\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/felix-schneider\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/felix-schneider\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/felix-schneider\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/felix-schneider\/orgs","repos_url":"https:\/\/api.github.com\/users\/felix-schneider\/repos","events_url":"https:\/\/api.github.com\/users\/felix-schneider\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/felix-schneider\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-05-07T11:02:40Z","updated_at":"2024-05-07T11:02:40Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nUsing `Dataset.map(fn, batched=True)` allows resizing the dataset by returning a dict of lists, all of which must be the same size. If they are not the same size, an error like `pyarrow.lib.ArrowInvalid: Column 1 named x expected length 1 but got length 0` is raised.\r\n\r\nThis is not the case if the function returns an empty list for an existing column in the dataset. In that case, the dataset is silently resized to 0 rows.\n\n### Steps to reproduce the bug\n\nMWE:\r\n\r\n```\r\nimport datasets\r\ndata = datasets.Dataset.from_dict({\"test\": [1]})\r\n\r\ndef mapping_fn(examples):\r\n return {\"test\": [], \"y\": [1]}\r\n\r\ndata = data.map(mapping_fn, batched=True)\r\nprint(len(data))\r\n```\r\n\r\nNote that when returning `\"x\": []`, the error is raised correctly, also when returning `\"test\": [1,2]`.\n\n### Expected behavior\n\nExpected an exception: `pyarrow.lib.ArrowInvalid: Column 1 named test expected length 1 but got length 0` or `pyarrow.lib.ArrowInvalid: Column 2 named y expected length 0 but got length 1`.\r\n\r\nAny exception would be acceptable.\n\n### Environment info\n\n- `datasets` version: 2.19.1\r\n- Platform: Linux-5.4.0-153-generic-x86_64-with-glibc2.31\r\n- Python version: 3.11.8\r\n- `huggingface_hub` version: 0.22.2\r\n- PyArrow version: 15.0.2\r\n- Pandas version: 2.2.1\r\n- `fsspec` version: 2024.2.0","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6879\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6879\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6878","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6878\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6878\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6878\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6878","id":2282879491,"node_id":"PR_kwDODunzps5uviBh","number":6878,"title":"Create function to convert to parquet","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-05-07T10:27:07Z","updated_at":"2024-05-16T14:46:44Z","closed_at":"2024-05-16T14:38:23Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6878","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6878","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6878.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6878.patch","merged_at":"2024-05-16T14:38:22Z"},"body":"Analogously with `delete_from_hub`, this PR:\r\n- creates the Python function `convert_to_parquet`\r\n- makes the corresponding CLI command use that function.\r\n\r\nThis way, the functionality can be used both from a terminal and from a Python console.\r\n\r\nThis PR also implements a test for convert_to_parquet function.","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6878\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6878\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6877","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6877\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6877\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6877\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6877","id":2282068337,"node_id":"I_kwDODunzps6IBZlx","number":6877,"title":"OSError: [Errno 24] Too many open files","user":{"login":"loicmagne","id":53355258,"node_id":"MDQ6VXNlcjUzMzU1MjU4","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/53355258?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/loicmagne","html_url":"https:\/\/github.com\/loicmagne","followers_url":"https:\/\/api.github.com\/users\/loicmagne\/followers","following_url":"https:\/\/api.github.com\/users\/loicmagne\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/loicmagne\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/loicmagne\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/loicmagne\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/loicmagne\/orgs","repos_url":"https:\/\/api.github.com\/users\/loicmagne\/repos","events_url":"https:\/\/api.github.com\/users\/loicmagne\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/loicmagne\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892857,"node_id":"MDU6TGFiZWwxOTM1ODkyODU3","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/bug","name":"bug","color":"d73a4a","default":true,"description":"Something isn't working"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2024-05-07T01:15:09Z","updated_at":"2024-06-02T14:22:23Z","closed_at":"2024-05-13T13:01:55Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI am trying to load the 'default' subset of the following dataset which contains lots of files (828 per split): [https:\/\/huggingface.co\/datasets\/mteb\/biblenlp-corpus-mmteb](https:\/\/huggingface.co\/datasets\/mteb\/biblenlp-corpus-mmteb)\r\n\r\nWhen trying to load it using the `load_dataset` function I get the following error\r\n\r\n```python\r\n>>> from datasets import load_dataset\r\n>>> d = load_dataset('mteb\/biblenlp-corpus-mmteb')\r\nDownloading readme: 100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 201k\/201k [00:00<00:00, 1.07MB\/s]\r\nResolving data files: 100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 828\/828 [00:00<00:00, 1069.15it\/s]\r\nResolving data files: 100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 828\/828 [00:00<00:00, 436182.33it\/s]\r\nResolving data files: 100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 828\/828 [00:00<00:00, 2228.75it\/s]\r\nResolving data files: 100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 828\/828 [00:00<00:00, 646478.73it\/s]\r\nResolving data files: 100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 828\/828 [00:00<00:00, 831032.24it\/s]\r\nResolving data files: 100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 828\/828 [00:00<00:00, 517645.51it\/s]\r\nDownloading data: 100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 828\/828 [00:33<00:00, 24.87files\/s]\r\nDownloading data: 100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 828\/828 [00:30<00:00, 27.48files\/s]\r\nDownloading data: 100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 828\/828 [00:30<00:00, 26.94files\/s]\r\nGenerating train split: 1571592 examples [00:03, 461438.97 examples\/s]\r\nGenerating test split: 11163 examples [00:00, 118190.72 examples\/s]\r\nTraceback (most recent call last):\r\n File \".env\/lib\/python3.12\/site-packages\/datasets\/builder.py\", line 1995, in _prepare_split_single\r\n for _, table in generator:\r\n File \".env\/lib\/python3.12\/site-packages\/datasets\/packaged_modules\/json\/json.py\", line 99, in _generate_tables\r\n with open(file, \"rb\") as f:\r\n ^^^^^^^^^^^^^^^^\r\n File \".env\/lib\/python3.12\/site-packages\/datasets\/streaming.py\", line 75, in wrapper\r\n return function(*args, download_config=download_config, **kwargs)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \".env\/lib\/python3.12\/site-packages\/datasets\/utils\/file_utils.py\", line 1224, in xopen\r\n file_obj = fsspec.open(file, mode=mode, *args, **kwargs).open()\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \".env\/lib\/python3.12\/site-packages\/fsspec\/core.py\", line 135, in open\r\n return self.__enter__()\r\n ^^^^^^^^^^^^^^^^\r\n File \".env\/lib\/python3.12\/site-packages\/fsspec\/core.py\", line 103, in __enter__\r\n f = self.fs.open(self.path, mode=mode)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \".env\/lib\/python3.12\/site-packages\/fsspec\/spec.py\", line 1293, in open\r\n f = self._open(\r\n ^^^^^^^^^^^\r\n File \".env\/lib\/python3.12\/site-packages\/datasets\/filesystems\/compression.py\", line 81, in _open\r\n return self.file.open()\r\n ^^^^^^^^^^^^^^^^\r\n File \".env\/lib\/python3.12\/site-packages\/fsspec\/core.py\", line 135, in open\r\n return self.__enter__()\r\n ^^^^^^^^^^^^^^^^\r\n File \".env\/lib\/python3.12\/site-packages\/fsspec\/core.py\", line 103, in __enter__\r\n f = self.fs.open(self.path, mode=mode)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \".env\/lib\/python3.12\/site-packages\/fsspec\/spec.py\", line 1293, in open\r\n f = self._open(\r\n ^^^^^^^^^^^\r\n File \".env\/lib\/python3.12\/site-packages\/fsspec\/implementations\/local.py\", line 197, in _open\r\n return LocalFileOpener(path, mode, fs=self, **kwargs)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \".env\/lib\/python3.12\/site-packages\/fsspec\/implementations\/local.py\", line 322, in __init__\r\n self._open()\r\n File \".env\/lib\/python3.12\/site-packages\/fsspec\/implementations\/local.py\", line 327, in _open\r\n self.f = open(self.path, mode=self.mode)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\nOSError: [Errno 24] Too many open files: '.cache\/huggingface\/datasets\/downloads\/3a347186abfc0f9c924dde0221d246db758c7232c0101523f04a87c17d696618'\r\n\r\nThe above exception was the direct cause of the following exception:\r\n\r\nTraceback (most recent call last):\r\n File \".env\/lib\/python3.12\/site-packages\/datasets\/builder.py\", line 981, in incomplete_dir\r\n yield tmp_dir\r\n File \".env\/lib\/python3.12\/site-packages\/datasets\/builder.py\", line 1027, in download_and_prepare\r\n self._download_and_prepare(\r\n File \".env\/lib\/python3.12\/site-packages\/datasets\/builder.py\", line 1122, in _download_and_prepare\r\n self._prepare_split(split_generator, **prepare_split_kwargs)\r\n File \".env\/lib\/python3.12\/site-packages\/datasets\/builder.py\", line 1882, in _prepare_split\r\n for job_id, done, content in self._prepare_split_single(\r\n File \".env\/lib\/python3.12\/site-packages\/datasets\/builder.py\", line 2038, in _prepare_split_single\r\n raise DatasetGenerationError(\"An error occurred while generating the dataset\") from e\r\ndatasets.exceptions.DatasetGenerationError: An error occurred while generating the dataset\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n File \"\", line 1, in \r\n File \".env\/lib\/python3.12\/site-packages\/datasets\/load.py\", line 2609, in load_dataset\r\n builder_instance.download_and_prepare(\r\n File \".env\/lib\/python3.12\/site-packages\/datasets\/builder.py\", line 1007, in download_and_prepare\r\n with incomplete_dir(self._output_dir) as tmp_output_dir:\r\n File \"\/usr\/lib\/python3.12\/contextlib.py\", line 158, in __exit__\r\n self.gen.throw(value)\r\n File \".env\/lib\/python3.12\/site-packages\/datasets\/builder.py\", line 988, in incomplete_dir\r\n shutil.rmtree(tmp_dir)\r\n File \"\/usr\/lib\/python3.12\/shutil.py\", line 785, in rmtree\r\n _rmtree_safe_fd(fd, path, onexc)\r\n File \"\/usr\/lib\/python3.12\/shutil.py\", line 661, in _rmtree_safe_fd\r\n onexc(os.scandir, path, err)\r\n File \"\/usr\/lib\/python3.12\/shutil.py\", line 657, in _rmtree_safe_fd\r\n with os.scandir(topfd) as scandir_it:\r\n ^^^^^^^^^^^^^^^^^\r\nOSError: [Errno 24] Too many open files: '.cache\/huggingface\/datasets\/mteb___biblenlp-corpus-mmteb\/default\/0.0.0\/3912ed967b0834547f35b2da9470c4976b357c9a.incomplete'\r\n\r\n\r\n```\r\n\r\nI looked for the maximum number of open files on my machine (Ubuntu 24.04) and it seems to be 1024, but even when I try to load a single split (`load_dataset('mteb\/biblenlp-corpus-mmteb', split='train')`) I get the same error\n\n### Steps to reproduce the bug\n\n```python\r\nfrom datasets import load_dataset\r\nd = load_dataset('mteb\/biblenlp-corpus-mmteb')\r\n```\n\n### Expected behavior\n\nLoad the dataset without error\n\n### Environment info\n\n- `datasets` version: 2.19.0\r\n- Platform: Linux-6.8.0-31-generic-x86_64-with-glibc2.39\r\n- Python version: 3.12.3\r\n- `huggingface_hub` version: 0.23.0\r\n- PyArrow version: 16.0.0\r\n- Pandas version: 2.2.2\r\n- `fsspec` version: 2024.3.1\r\n","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6877\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6877\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6876","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6876\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6876\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6876\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6876","id":2281450743,"node_id":"PR_kwDODunzps5uqs46","number":6876,"title":"Unpin hfh","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2024-05-06T18:10:49Z","updated_at":"2024-05-27T10:20:42Z","closed_at":"2024-05-27T10:14:40Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6876","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6876","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6876.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6876.patch","merged_at":"2024-05-27T10:14:40Z"},"body":"Needed to use those in dataset-viewer:\r\n\r\n- dev version of hfh https:\/\/github.com\/huggingface\/dataset-viewer\/pull\/2781: don't span the hub with \/paths-info requests\r\n- dev version of datasets at https:\/\/github.com\/huggingface\/datasets\/pull\/6875: don't write too big logs in the viewer\r\n\r\nclose https:\/\/github.com\/huggingface\/datasets\/issues\/6863","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6876\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6876\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6875","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6875\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6875\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6875\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6875","id":2281428826,"node_id":"PR_kwDODunzps5uqoJ_","number":6875,"title":"Shorten long logs","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-05-06T17:57:07Z","updated_at":"2024-05-07T12:31:46Z","closed_at":"2024-05-07T12:25:45Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6875","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6875","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6875.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6875.patch","merged_at":"2024-05-07T12:25:45Z"},"body":"Some datasets may have unexpectedly long features\/types (e.g. if the files are not formatted correctly).\r\n\r\nIn that case we should still be able to log something readable","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6875\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6875\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6874","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6874\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6874\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6874\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6874","id":2280717233,"node_id":"PR_kwDODunzps5uoOk-","number":6874,"title":"Use pandas ujson in JSON loader to improve performance","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2024-05-06T12:01:27Z","updated_at":"2024-05-17T16:28:29Z","closed_at":"2024-05-17T16:22:27Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6874","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6874","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6874.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6874.patch","merged_at":"2024-05-17T16:22:27Z"},"body":"Use pandas ujson in JSON loader to improve performance.\r\n\r\nNote that `datasets` has `pandas` as required dependency. And `pandas` includes `ujson` in `pd.io.json.ujson_loads`.\r\n\r\nFix #6867.\r\n\r\nCC: @natolambert","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6874\/reactions","total_count":1,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6874\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6873","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6873\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6873\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6873\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6873","id":2280463182,"node_id":"PR_kwDODunzps5unXnq","number":6873,"title":"Set dev version","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-05-06T09:43:18Z","updated_at":"2024-05-06T10:03:19Z","closed_at":"2024-05-06T09:57:12Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6873","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6873","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6873.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6873.patch","merged_at":"2024-05-06T09:57:12Z"},"body":null,"closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6873\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6873\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6872","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6872\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6872\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6872\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6872","id":2280438432,"node_id":"PR_kwDODunzps5unSPA","number":6872,"title":"Release 2.19.1","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-05-06T09:29:15Z","updated_at":"2024-05-06T09:35:33Z","closed_at":"2024-05-06T09:35:32Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6872","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6872","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6872.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6872.patch","merged_at":"2024-05-06T09:35:32Z"},"body":null,"closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6872\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6872\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6871","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6871\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6871\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6871\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6871","id":2280102869,"node_id":"PR_kwDODunzps5umJS6","number":6871,"title":"Fix download for dict of dicts of URLs","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2024-05-06T06:06:52Z","updated_at":"2024-05-06T09:32:03Z","closed_at":"2024-05-06T09:25:52Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6871","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6871","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6871.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6871.patch","merged_at":"2024-05-06T09:25:52Z"},"body":"Fix download for a dict of dicts of URLs when batched (default), introduced by:\r\n- #6794\r\n\r\nThis PR also implements regression tests.\r\n\r\nFix #6869, fix #6850.","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6871\/reactions","total_count":1,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6871\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6870","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6870\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6870\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6870\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6870","id":2280084008,"node_id":"PR_kwDODunzps5umFOL","number":6870,"title":"Update tqdm >= 4.66.3 to fix vulnerability","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-05-06T05:49:36Z","updated_at":"2024-05-06T06:08:06Z","closed_at":"2024-05-06T06:02:00Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6870","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6870","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6870.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6870.patch","merged_at":"2024-05-06T06:02:00Z"},"body":"Update tqdm >= 4.66.3 to fix vulnerability,","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6870\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6870\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6869","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6869\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6869\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6869\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6869","id":2280048297,"node_id":"I_kwDODunzps6H5sap","number":6869,"title":"Download is broken for dict of dicts: FileNotFoundError","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892857,"node_id":"MDU6TGFiZWwxOTM1ODkyODU3","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/bug","name":"bug","color":"d73a4a","default":true,"description":"Something isn't working"}],"state":"closed","locked":false,"assignee":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":0,"created_at":"2024-05-06T05:13:36Z","updated_at":"2024-05-06T09:25:53Z","closed_at":"2024-05-06T09:25:53Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"It seems there is a bug when downloading a dict of dicts of URLs introduced by:\r\n- #6794\r\n\r\n## Steps to reproduce the bug:\r\n```python\r\nfrom datasets import DownloadManager\r\n\r\ndl_manager = DownloadManager()\r\npaths = dl_manager.download({\"train\": {\"frr\": \"hf:\/\/datasets\/wikimedia\/wikipedia\/20231101.frr\/train-00000-of-00001.parquet\"}})\r\n```\r\n\r\nStack trace:\r\n```\r\n---------------------------------------------------------------------------\r\nFileNotFoundError Traceback (most recent call last)\r\n in \r\n----> 1 paths = dl_manager.download({\"train\": {\"frr\": \"hf:\/\/datasets\/wikimedia\/wikipedia\/20231101.frr\/train-00000-of-00001.parquet\"}})\r\n\r\n...\/huggingface\/datasets\/src\/datasets\/download\/download_manager.py in download(self, url_or_urls)\r\n 255 start_time = datetime.now()\r\n 256 with stack_multiprocessing_download_progress_bars():\r\n--> 257 downloaded_path_or_paths = map_nested(\r\n 258 download_func,\r\n 259 url_or_urls,\r\n\r\n...\/huggingface\/datasets\/src\/datasets\/utils\/py_utils.py in map_nested(function, data_struct, dict_only, map_list, map_tuple, map_numpy, num_proc, parallel_min_length, batched, batch_size, types, disable_tqdm, desc)\r\n 506 batch_size = max(len(iterable) \/\/ num_proc + int(len(iterable) % num_proc > 0), 1)\r\n 507 iterable = list(iter_batched(iterable, batch_size))\r\n--> 508 mapped = [\r\n 509 _single_map_nested((function, obj, batched, batch_size, types, None, True, None))\r\n 510 for obj in hf_tqdm(iterable, disable=disable_tqdm, desc=desc)\r\n\r\n...\/huggingface\/datasets\/src\/datasets\/utils\/py_utils.py in (.0)\r\n 507 iterable = list(iter_batched(iterable, batch_size))\r\n 508 mapped = [\r\n--> 509 _single_map_nested((function, obj, batched, batch_size, types, None, True, None))\r\n 510 for obj in hf_tqdm(iterable, disable=disable_tqdm, desc=desc)\r\n 511 ]\r\n\r\n...\/huggingface\/datasets\/src\/datasets\/utils\/py_utils.py in _single_map_nested(args)\r\n 375 and all(not isinstance(v, types) for v in data_struct)\r\n 376 ):\r\n--> 377 return [mapped_item for batch in iter_batched(data_struct, batch_size) for mapped_item in function(batch)]\r\n 378 \r\n 379 # Reduce logging to keep things readable in multiprocessing with tqdm\r\n\r\n...\/huggingface\/datasets\/src\/datasets\/utils\/py_utils.py in (.0)\r\n 375 and all(not isinstance(v, types) for v in data_struct)\r\n 376 ):\r\n--> 377 return [mapped_item for batch in iter_batched(data_struct, batch_size) for mapped_item in function(batch)]\r\n 378 \r\n 379 # Reduce logging to keep things readable in multiprocessing with tqdm\r\n\r\n...\/huggingface\/datasets\/src\/datasets\/download\/download_manager.py in _download_batched(self, url_or_filenames, download_config)\r\n 311 )\r\n 312 else:\r\n--> 313 return [\r\n 314 self._download_single(url_or_filename, download_config=download_config)\r\n 315 for url_or_filename in url_or_filenames\r\n\r\n...\/huggingface\/datasets\/src\/datasets\/download\/download_manager.py in (.0)\r\n 312 else:\r\n 313 return [\r\n--> 314 self._download_single(url_or_filename, download_config=download_config)\r\n 315 for url_or_filename in url_or_filenames\r\n 316 ]\r\n\r\n...\/huggingface\/datasets\/src\/datasets\/download\/download_manager.py in _download_single(self, url_or_filename, download_config)\r\n 321 # append the relative path to the base_path\r\n 322 url_or_filename = url_or_path_join(self._base_path, url_or_filename)\r\n--> 323 out = cached_path(url_or_filename, download_config=download_config)\r\n 324 out = tracked_str(out)\r\n 325 out.set_origin(url_or_filename)\r\n\r\n...\/huggingface\/datasets\/src\/datasets\/utils\/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)\r\n 220 elif is_local_path(url_or_filename):\r\n 221 # File, but it doesn't exist.\r\n--> 222 raise FileNotFoundError(f\"Local file {url_or_filename} doesn't exist\")\r\n 223 else:\r\n 224 # Something unknown\r\n\r\nFileNotFoundError: Local file ...\/huggingface\/datasets\/{'frr': 'hf:\/datasets\/wikimedia\/wikipedia\/20231101.frr\/train-00000-of-00001.parquet'} doesn't exist\r\n```\r\n\r\nRelated to:\r\n- #6850\r\n","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6869\/reactions","total_count":1,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6869\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6868","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6868\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6868\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6868\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6868","id":2279385159,"node_id":"I_kwDODunzps6H3KhH","number":6868,"title":"datasets.BuilderConfig does not work.","user":{"login":"jdm4pku","id":148830652,"node_id":"U_kgDOCN75vA","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/148830652?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/jdm4pku","html_url":"https:\/\/github.com\/jdm4pku","followers_url":"https:\/\/api.github.com\/users\/jdm4pku\/followers","following_url":"https:\/\/api.github.com\/users\/jdm4pku\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/jdm4pku\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/jdm4pku\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/jdm4pku\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/jdm4pku\/orgs","repos_url":"https:\/\/api.github.com\/users\/jdm4pku\/repos","events_url":"https:\/\/api.github.com\/users\/jdm4pku\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/jdm4pku\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-05-05T08:08:55Z","updated_at":"2024-05-05T12:15:02Z","closed_at":"2024-05-05T12:15:01Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI custom a BuilderConfig and GeneratorBasedBuilder.\r\nHere is the code for BuilderConfig\r\n```\r\nclass UIEConfig(datasets.BuilderConfig):\r\n\r\n def __init__(\r\n self,\r\n *args,\r\n data_dir=None,\r\n instruction_file=None,\r\n instruction_strategy=None,\r\n task_config_dir=None,\r\n num_examples=None,\r\n max_num_instances_per_task=None,\r\n max_num_instances_per_eval_task=None,\r\n over_sampling=None,\r\n **kwargs\r\n ):\r\n super().__init__(*args, **kwargs)\r\n self.data_dir = data_dir\r\n self.num_examples = num_examples\r\n self.over_sampling = over_sampling\r\n self.instructions = self._parse_instruction(instruction_file)\r\n self.task_configs = self._parse_task_config(task_config_dir)\r\n self.instruction_strategy = instruction_strategy\r\n self.max_num_instances_per_task = max_num_instances_per_task\r\n self.max_num_instances_per_eval_task = max_num_instances_per_eval_task\r\n```\r\nBesides, here is the code for GeneratorBasedBuilder.\r\n```\r\nclass UIEInstructions(datasets.GeneratorBasedBuilder):\r\n VERSION = datasets.Version(\"2.0.0\")\r\n BUILDER_CONFIG_CLASS = UIEConfig\r\n BUILDER_CONFIGS = [\r\n UIEConfig(name=\"default\", description=\"Default config for NaturalInstructions\")\r\n ]\r\n DEFAULT_CONFIG_NAME = \"default\"\r\n```\r\n\r\nHere is the load_dataset\r\n```\r\nraw_datasets = load_dataset(\r\n os.path.join(CURRENT_DIR, \"uie_dataset.py\"),\r\n data_dir=data_args.data_dir,\r\n task_config_dir=data_args.task_config_dir,\r\n instruction_file=data_args.instruction_file,\r\n instruction_strategy=data_args.instruction_strategy,\r\n cache_dir=data_cache_dir, # for debug, change dataset size, otherwise open it\r\n max_num_instances_per_task=data_args.max_num_instances_per_task,\r\n max_num_instances_per_eval_task=data_args.max_num_instances_per_eval_task,\r\n num_examples=data_args.num_examples,\r\n over_sampling=data_args.over_sampling\r\n )\r\n```\r\nFinally, I met the error.\r\n```\r\nBuilderConfig UIEConfig(name='default', version=0.0.0, data_dir=None, data_files=None, description='Default config for NaturalInstructions') doesn't have a 'task_config_dir' key.\r\n```\r\n\r\nI debugged the code, but I find the parameters added by me may not work.\n\n### Steps to reproduce the bug\n\nhttps:\/\/github.com\/BeyonderXX\/InstructUIE\/blob\/master\/src\/uie_dataset.py\n\n### Expected behavior\n\n```\r\nBuilderConfig UIEConfig(name='default', version=0.0.0, data_dir=None, data_files=None, description='Default config for NaturalInstructions') doesn't have a 'task_config_dir' key.\r\n```\n\n### Environment info\n\ntorch 2.3.0+cu118\r\ntransformers 4.40.1\r\npython 3.8","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6868\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6868\/timeline","performed_via_github_app":null,"state_reason":"not_planned","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6867","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6867\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6867\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6867\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6867","id":2279059787,"node_id":"I_kwDODunzps6H17FL","number":6867,"title":"Improve performance of JSON loader","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"closed","locked":false,"assignee":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":5,"created_at":"2024-05-04T15:04:16Z","updated_at":"2024-05-17T16:22:28Z","closed_at":"2024-05-17T16:22:28Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"As reported by @natolambert, loading regular JSON files with `datasets` shows poor performance.\r\n\r\nThe cause is that we use the `json` Python standard library instead of other faster libraries. See my old comment: https:\/\/github.com\/huggingface\/datasets\/pull\/2638#pullrequestreview-706983714\r\n> There are benchmarks that compare different JSON packages, with the Standard Library one among the worst performant: \r\n> - https:\/\/github.com\/ultrajson\/ultrajson#benchmarks\r\n> - https:\/\/github.com\/ijl\/orjson#performance\r\n\r\nI remember having a discussion about this and it was decided that it was better not to include an additional dependency on a 3rd-party library.\r\n\r\nHowever:\r\n- We already depend on `pandas` and `pandas` depends on `ujson`: so we have an indirect dependency on `ujson`\r\n- Even if the above were not the case, we always could include `ujson` as an optional extra dependency, and check at runtime if it is installed to decide which library to use, either json or ujson","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6867\/reactions","total_count":3,"+1":3,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6867\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6866","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6866\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6866\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6866\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6866","id":2278736221,"node_id":"I_kwDODunzps6H0sFd","number":6866,"title":"DataFilesNotFoundError for datasets in the open-llm-leaderboard","user":{"login":"jerome-white","id":6140840,"node_id":"MDQ6VXNlcjYxNDA4NDA=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/6140840?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/jerome-white","html_url":"https:\/\/github.com\/jerome-white","followers_url":"https:\/\/api.github.com\/users\/jerome-white\/followers","following_url":"https:\/\/api.github.com\/users\/jerome-white\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/jerome-white\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/jerome-white\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/jerome-white\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/jerome-white\/orgs","repos_url":"https:\/\/api.github.com\/users\/jerome-white\/repos","events_url":"https:\/\/api.github.com\/users\/jerome-white\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/jerome-white\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":3,"created_at":"2024-05-04T04:59:00Z","updated_at":"2024-05-14T08:09:56Z","closed_at":"2024-05-14T08:09:56Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nWhen trying to get config names or load any dataset within the open-llm-leaderboard ecosystem (`open-llm-leaderboard\/details_`) I receive the DataFilesNotFoundError. For the last month or so I've been loading datasets from the leaderboard almost everyday; yesterday was the first time I started seeing this.\n\n### Steps to reproduce the bug\n\nThis snippet has three cells:\r\n1. Loads the modules\r\n2. Tries to get config names\r\n3. Tries to load the dataset\r\n\r\nI've chosen \"davidkim205\"'s Rhea-72b-v0.5 model because it is one of the best performers on the leaderboard should likely have no dataset issues:\r\n\r\n```python\r\nIn [1]: from datasets import load_dataset, get_dataset_config_names\r\n\r\nIn [2]: get_dataset_config_names(\"open-llm-leaderboard\/details_davidkim205__Rhea\r\n ...: -72b-v0.5\")\r\n---------------------------------------------------------------------------\r\nDataFilesNotFoundError Traceback (most recent call last)\r\nCell In[2], line 1\r\n----> 1 get_dataset_config_names(\"open-llm-leaderboard\/details_davidkim205__Rhea-72b-v0.5\")\r\n\r\nFile ~\/open-llm-bda\/venv\/lib\/python3.11\/site-packages\/datasets\/inspect.py:347, in get_dataset_config_names(path, revision, download_config, download_mode, dynamic_modules_path, data_files, **download_kwargs)\r\n 291 def get_dataset_config_names(\r\n 292 path: str,\r\n 293 revision: Optional[Union[str, Version]] = None,\r\n (...)\r\n 298 **download_kwargs,\r\n 299 ):\r\n 300 \"\"\"Get the list of available config names for a particular dataset.\r\n 301 \r\n 302 Args:\r\n (...)\r\n 345 ```\r\n 346 \"\"\"\r\n--> 347 dataset_module = dataset_module_factory(\r\n 348 path,\r\n 349 revision=revision,\r\n 350 download_config=download_config,\r\n 351 download_mode=download_mode,\r\n 352 dynamic_modules_path=dynamic_modules_path,\r\n 353 data_files=data_files,\r\n 354 **download_kwargs,\r\n 355 )\r\n 356 builder_cls = get_dataset_builder_class(dataset_module, dataset_name=os.path.basename(path))\r\n 357 return list(builder_cls.builder_configs.keys()) or [\r\n 358 dataset_module.builder_kwargs.get(\"config_name\", builder_cls.DEFAULT_CONFIG_NAME or \"default\")\r\n 359 ]\r\n\r\nFile ~\/open-llm-bda\/venv\/lib\/python3.11\/site-packages\/datasets\/load.py:1821, in dataset_module_factory(path, revision, download_config, download_mode, dynamic_modules_path, data_dir, data_files, cache_dir, trust_remote_code, _require_default_config_name, _require_custom_configs, **download_kwargs)\r\n 1812 return LocalDatasetModuleFactoryWithScript(\r\n 1813 combined_path,\r\n 1814 download_mode=download_mode,\r\n 1815 dynamic_modules_path=dynamic_modules_path,\r\n 1816 trust_remote_code=trust_remote_code,\r\n 1817 ).get_module()\r\n 1818 elif os.path.isdir(path):\r\n 1819 return LocalDatasetModuleFactoryWithoutScript(\r\n 1820 path, data_dir=data_dir, data_files=data_files, download_mode=download_mode\r\n-> 1821 ).get_module()\r\n 1822 # Try remotely\r\n 1823 elif is_relative_path(path) and path.count(\"\/\") <= 1:\r\n\r\nFile ~\/open-llm-bda\/venv\/lib\/python3.11\/site-packages\/datasets\/load.py:1039, in LocalDatasetModuleFactoryWithoutScript.get_module(self)\r\n 1033 patterns = get_data_patterns(base_path)\r\n 1034 data_files = DataFilesDict.from_patterns(\r\n 1035 patterns,\r\n 1036 base_path=base_path,\r\n 1037 allowed_extensions=ALL_ALLOWED_EXTENSIONS,\r\n 1038 )\r\n-> 1039 module_name, default_builder_kwargs = infer_module_for_data_files(\r\n 1040 data_files=data_files,\r\n 1041 path=self.path,\r\n 1042 )\r\n 1043 data_files = data_files.filter_extensions(_MODULE_TO_EXTENSIONS[module_name])\r\n 1044 # Collect metadata files if the module supports them\r\n\r\nFile ~\/open-llm-bda\/venv\/lib\/python3.11\/site-packages\/datasets\/load.py:597, in infer_module_for_data_files(data_files, path, download_config)\r\n 595 raise ValueError(f\"Couldn't infer the same data file format for all splits. Got {split_modules}\")\r\n 596 if not module_name:\r\n--> 597 raise DataFilesNotFoundError(\"No (supported) data files found\" + (f\" in {path}\" if path else \"\"))\r\n 598 return module_name, default_builder_kwargs\r\n\r\nDataFilesNotFoundError: No (supported) data files found in open-llm-leaderboard\/details_davidkim205__Rhea-72b-v0.5\r\n\r\nIn [3]: data = load_dataset(\"open-llm-leaderboard\/details_davidkim205__Rhea-72b-\r\n ...: v0.5\", \"harness_winogrande_5\")\r\n---------------------------------------------------------------------------\r\nDataFilesNotFoundError Traceback (most recent call last)\r\nCell In[3], line 1\r\n----> 1 data = load_dataset(\"open-llm-leaderboard\/details_davidkim205__Rhea-72b-v0.5\", \"harness_winogrande_5\")\r\n\r\nFile ~\/open-llm-bda\/venv\/lib\/python3.11\/site-packages\/datasets\/load.py:2587, in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, verification_mode, ignore_verifications, keep_in_memory, save_infos, revision, token, use_auth_token, task, streaming, num_proc, storage_options, trust_remote_code, **config_kwargs)\r\n 2582 verification_mode = VerificationMode(\r\n 2583 (verification_mode or VerificationMode.BASIC_CHECKS) if not save_infos else VerificationMode.ALL_CHECKS\r\n 2584 )\r\n 2586 # Create a dataset builder\r\n-> 2587 builder_instance = load_dataset_builder(\r\n 2588 path=path,\r\n 2589 name=name,\r\n 2590 data_dir=data_dir,\r\n 2591 data_files=data_files,\r\n 2592 cache_dir=cache_dir,\r\n 2593 features=features,\r\n 2594 download_config=download_config,\r\n 2595 download_mode=download_mode,\r\n 2596 revision=revision,\r\n 2597 token=token,\r\n 2598 storage_options=storage_options,\r\n 2599 trust_remote_code=trust_remote_code,\r\n 2600 _require_default_config_name=name is None,\r\n 2601 **config_kwargs,\r\n 2602 )\r\n 2604 # Return iterable dataset in case of streaming\r\n 2605 if streaming:\r\n\r\nFile ~\/open-llm-bda\/venv\/lib\/python3.11\/site-packages\/datasets\/load.py:2259, in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, token, use_auth_token, storage_options, trust_remote_code, _require_default_config_name, **config_kwargs)\r\n 2257 download_config = download_config.copy() if download_config else DownloadConfig()\r\n 2258 download_config.storage_options.update(storage_options)\r\n-> 2259 dataset_module = dataset_module_factory(\r\n 2260 path,\r\n 2261 revision=revision,\r\n 2262 download_config=download_config,\r\n 2263 download_mode=download_mode,\r\n 2264 data_dir=data_dir,\r\n 2265 data_files=data_files,\r\n 2266 cache_dir=cache_dir,\r\n 2267 trust_remote_code=trust_remote_code,\r\n 2268 _require_default_config_name=_require_default_config_name,\r\n 2269 _require_custom_configs=bool(config_kwargs),\r\n 2270 )\r\n 2271 # Get dataset builder class from the processing script\r\n 2272 builder_kwargs = dataset_module.builder_kwargs\r\n\r\nFile ~\/open-llm-bda\/venv\/lib\/python3.11\/site-packages\/datasets\/load.py:1821, in dataset_module_factory(path, revision, download_config, download_mode, dynamic_modules_path, data_dir, data_files, cache_dir, trust_remote_code, _require_default_config_name, _require_custom_configs, **download_kwargs)\r\n 1812 return LocalDatasetModuleFactoryWithScript(\r\n 1813 combined_path,\r\n 1814 download_mode=download_mode,\r\n 1815 dynamic_modules_path=dynamic_modules_path,\r\n 1816 trust_remote_code=trust_remote_code,\r\n 1817 ).get_module()\r\n 1818 elif os.path.isdir(path):\r\n 1819 return LocalDatasetModuleFactoryWithoutScript(\r\n 1820 path, data_dir=data_dir, data_files=data_files, download_mode=download_mode\r\n-> 1821 ).get_module()\r\n 1822 # Try remotely\r\n 1823 elif is_relative_path(path) and path.count(\"\/\") <= 1:\r\n\r\nFile ~\/open-llm-bda\/venv\/lib\/python3.11\/site-packages\/datasets\/load.py:1039, in LocalDatasetModuleFactoryWithoutScript.get_module(self)\r\n 1033 patterns = get_data_patterns(base_path)\r\n 1034 data_files = DataFilesDict.from_patterns(\r\n 1035 patterns,\r\n 1036 base_path=base_path,\r\n 1037 allowed_extensions=ALL_ALLOWED_EXTENSIONS,\r\n 1038 )\r\n-> 1039 module_name, default_builder_kwargs = infer_module_for_data_files(\r\n 1040 data_files=data_files,\r\n 1041 path=self.path,\r\n 1042 )\r\n 1043 data_files = data_files.filter_extensions(_MODULE_TO_EXTENSIONS[module_name])\r\n 1044 # Collect metadata files if the module supports them\r\n\r\nFile ~\/open-llm-bda\/venv\/lib\/python3.11\/site-packages\/datasets\/load.py:597, in infer_module_for_data_files(data_files, path, download_config)\r\n 595 raise ValueError(f\"Couldn't infer the same data file format for all splits. Got {split_modules}\")\r\n 596 if not module_name:\r\n--> 597 raise DataFilesNotFoundError(\"No (supported) data files found\" + (f\" in {path}\" if path else \"\"))\r\n 598 return module_name, default_builder_kwargs\r\n\r\nDataFilesNotFoundError: No (supported) data files found in open-llm-leaderboard\/details_davidkim205__Rhea-72b-v0.5\r\n```\n\n### Expected behavior\n\nNo exceptions from `get_dataset_config_names` or `load_dataset`\n\n### Environment info\n\n- `datasets` version: 2.19.0\r\n- Platform: Linux-6.5.0-1018-aws-aarch64-with-glibc2.35\r\n- Python version: 3.11.8\r\n- `huggingface_hub` version: 0.23.0\r\n- PyArrow version: 16.0.0\r\n- Pandas version: 2.2.2\r\n- `fsspec` version: 2024.3.1","closed_by":{"login":"jerome-white","id":6140840,"node_id":"MDQ6VXNlcjYxNDA4NDA=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/6140840?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/jerome-white","html_url":"https:\/\/github.com\/jerome-white","followers_url":"https:\/\/api.github.com\/users\/jerome-white\/followers","following_url":"https:\/\/api.github.com\/users\/jerome-white\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/jerome-white\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/jerome-white\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/jerome-white\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/jerome-white\/orgs","repos_url":"https:\/\/api.github.com\/users\/jerome-white\/repos","events_url":"https:\/\/api.github.com\/users\/jerome-white\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/jerome-white\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6866\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6866\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6865","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6865\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6865\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6865\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6865","id":2277304832,"node_id":"I_kwDODunzps6HvOoA","number":6865,"title":"Example on Semantic segmentation contains bug","user":{"login":"ducha-aiki","id":4803565,"node_id":"MDQ6VXNlcjQ4MDM1NjU=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/4803565?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ducha-aiki","html_url":"https:\/\/github.com\/ducha-aiki","followers_url":"https:\/\/api.github.com\/users\/ducha-aiki\/followers","following_url":"https:\/\/api.github.com\/users\/ducha-aiki\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ducha-aiki\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ducha-aiki\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ducha-aiki\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ducha-aiki\/orgs","repos_url":"https:\/\/api.github.com\/users\/ducha-aiki\/repos","events_url":"https:\/\/api.github.com\/users\/ducha-aiki\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ducha-aiki\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-05-03T09:40:12Z","updated_at":"2024-05-03T09:40:12Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nhttps:\/\/huggingface.co\/docs\/datasets\/en\/semantic_segmentation shows wrong example with torchvision transforms.\r\nSpecifically, as one can see in screenshot below, the object boundaries have weird colors. \r\n\r\n\"image\"\r\n\r\n\r\nOriginal example with `albumentations` is correct \r\n\"image\"\r\n\r\n\r\nThat is because `torch vision.transforms.Resize` interpolates with bilinear everything which is wrong when used for segmentation labels - you just cannot mix them. Overall, `torchvision.transforms` is designed for classification only and cannot be used to images and masks together, unless you write two separate branches of augmentations.\r\n\r\n\r\nThe correct way would be to use `v2` version of transforms and convert the segmentation labels to https:\/\/pytorch.org\/vision\/main\/generated\/torchvision.tv_tensors.Mask.html#torchvision.tv_tensors.Mask object\r\n\r\n\r\n\n\n### Steps to reproduce the bug\n\nGo to the website.\r\n\"image\"\r\n\r\nhttps:\/\/huggingface.co\/docs\/datasets\/en\/semantic_segmentation\n\n### Expected behavior\n\nResults, similar to `albumentation`. Or remove the torch vision part altogether. Or use `kornia` instead.\n\n### Environment info\n\nIrrelevant","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6865\/reactions","total_count":2,"+1":2,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6865\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6864","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6864\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6864\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6864\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6864","id":2276986981,"node_id":"I_kwDODunzps6HuBBl","number":6864,"title":"Dataset 'rewardsignal\/reddit_writing_prompts' doesn't exist on the Hub","user":{"login":"vinodrajendran001","id":5783246,"node_id":"MDQ6VXNlcjU3ODMyNDY=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/5783246?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/vinodrajendran001","html_url":"https:\/\/github.com\/vinodrajendran001","followers_url":"https:\/\/api.github.com\/users\/vinodrajendran001\/followers","following_url":"https:\/\/api.github.com\/users\/vinodrajendran001\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/vinodrajendran001\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/vinodrajendran001\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/vinodrajendran001\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/vinodrajendran001\/orgs","repos_url":"https:\/\/api.github.com\/users\/vinodrajendran001\/repos","events_url":"https:\/\/api.github.com\/users\/vinodrajendran001\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/vinodrajendran001\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":1,"created_at":"2024-05-03T06:03:30Z","updated_at":"2024-05-06T06:36:42Z","closed_at":"2024-05-06T06:36:41Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\r\n\r\nThe dataset `rewardsignal\/reddit_writing_prompts` is missing in Huggingface Hub.\r\n\r\n### Steps to reproduce the bug\r\n\r\n```\r\nfrom datasets import load_dataset\r\n\r\nprompt_response_dataset = load_dataset(\"rewardsignal\/reddit_writing_prompts\", data_files=\"prompt_responses_full.csv\", split='train[:80%]')\r\n```\r\n\r\n### Expected behavior\r\n\r\nDatasetNotFoundError: Dataset 'rewardsignal\/reddit_writing_prompts' doesn't exist on the Hub or cannot be accessed\r\n\r\n### Environment info\r\n\r\nNothing to do with versions","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6864\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6864\/timeline","performed_via_github_app":null,"state_reason":"not_planned","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6863","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6863\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6863\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6863\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6863","id":2276977534,"node_id":"I_kwDODunzps6Ht-t-","number":6863,"title":"Revert temporary pin huggingface-hub < 0.23.0","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":0,"created_at":"2024-05-03T05:53:55Z","updated_at":"2024-05-27T10:14:41Z","closed_at":"2024-05-27T10:14:41Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"Revert temporary pin huggingface-hub < 0.23.0 introduced by\r\n- #6861\r\n\r\nonce the following issue is fixed and released:\r\n- huggingface\/transformers#30618","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6863\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6863\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6862","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6862\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6862\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6862\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6862","id":2276763745,"node_id":"PR_kwDODunzps5ubOoL","number":6862,"title":"Fix load_dataset for data_files with protocols other than HF","user":{"login":"matstrand","id":544843,"node_id":"MDQ6VXNlcjU0NDg0Mw==","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/544843?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/matstrand","html_url":"https:\/\/github.com\/matstrand","followers_url":"https:\/\/api.github.com\/users\/matstrand\/followers","following_url":"https:\/\/api.github.com\/users\/matstrand\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/matstrand\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/matstrand\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/matstrand\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/matstrand\/orgs","repos_url":"https:\/\/api.github.com\/users\/matstrand\/repos","events_url":"https:\/\/api.github.com\/users\/matstrand\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/matstrand\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-05-03T01:43:47Z","updated_at":"2024-07-23T14:37:08Z","closed_at":"2024-07-23T14:30:09Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6862","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6862","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6862.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6862.patch","merged_at":"2024-07-23T14:30:09Z"},"body":"Fixes huggingface\/datasets\/issues\/6598\r\n\r\nI've added a new test case and a solution. Before applying the solution the test case was failing with the same error described in the linked issue.\r\n\r\nMRE:\r\n```\r\npip install \"datasets[s3]\"\r\npython -c \"from datasets import load_dataset; load_dataset('csv', data_files={'train': 's3:\/\/noaa-gsod-pds\/2024\/A5125600451.csv'})\"\r\n```","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6862\/reactions","total_count":1,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6862\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6861","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6861\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6861\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6861\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6861","id":2275988990,"node_id":"PR_kwDODunzps5uYkMy","number":6861,"title":"Fix CI by temporarily pinning huggingface-hub < 0.23.0","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-05-02T16:40:04Z","updated_at":"2024-05-02T16:59:42Z","closed_at":"2024-05-02T16:53:42Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6861","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6861","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6861.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6861.patch","merged_at":"2024-05-02T16:53:42Z"},"body":"As a hotfix for CI, temporarily pin `huggingface-hub` upper version\r\n\r\nFix #6860.\r\n\r\nRevert once root cause is fixed, see:\r\n- https:\/\/github.com\/huggingface\/transformers\/issues\/30618","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6861\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6861\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6860","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6860\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6860\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6860\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6860","id":2275537137,"node_id":"I_kwDODunzps6HofDx","number":6860,"title":"CI fails after huggingface_hub-0.23.0 release: FutureWarning: \"resume_download\"","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892857,"node_id":"MDU6TGFiZWwxOTM1ODkyODU3","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/bug","name":"bug","color":"d73a4a","default":true,"description":"Something isn't working"}],"state":"closed","locked":false,"assignee":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":3,"created_at":"2024-05-02T13:24:17Z","updated_at":"2024-05-02T16:53:45Z","closed_at":"2024-05-02T16:53:45Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"CI fails after latest huggingface_hub-0.23.0 release: https:\/\/github.com\/huggingface\/huggingface_hub\/releases\/tag\/v0.23.0\r\n\r\n```\r\nFAILED tests\/test_metric_common.py::LocalMetricTest::test_load_metric_bertscore - FutureWarning: `resume_download` is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use `force_download=True`.\r\nFAILED tests\/test_metric_common.py::LocalMetricTest::test_load_metric_frugalscore - FutureWarning: `resume_download` is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use `force_download=True`.\r\nFAILED tests\/test_metric_common.py::LocalMetricTest::test_load_metric_perplexity - FutureWarning: `resume_download` is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use `force_download=True`.\r\nFAILED tests\/test_fingerprint.py::TokenizersHashTest::test_hash_tokenizer - FutureWarning: `resume_download` is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use `force_download=True`.\r\nFAILED tests\/test_fingerprint.py::TokenizersHashTest::test_hash_tokenizer_with_cache - FutureWarning: `resume_download` is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use `force_download=True`.\r\nFAILED tests\/test_arrow_dataset.py::MiscellaneousDatasetTest::test_set_format_encode - FutureWarning: `resume_download` is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use `force_download=True`.\r\n```","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6860\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6860\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6859","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6859\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6859\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6859\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6859","id":2274996774,"node_id":"PR_kwDODunzps5uVIoZ","number":6859,"title":"Support folder-based datasets with large metadata.jsonl","user":{"login":"gbenson","id":580564,"node_id":"MDQ6VXNlcjU4MDU2NA==","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/580564?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/gbenson","html_url":"https:\/\/github.com\/gbenson","followers_url":"https:\/\/api.github.com\/users\/gbenson\/followers","following_url":"https:\/\/api.github.com\/users\/gbenson\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/gbenson\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/gbenson\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/gbenson\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/gbenson\/orgs","repos_url":"https:\/\/api.github.com\/users\/gbenson\/repos","events_url":"https:\/\/api.github.com\/users\/gbenson\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/gbenson\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-05-02T09:07:26Z","updated_at":"2024-05-02T09:07:26Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6859","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6859","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6859.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6859.patch","merged_at":null},"body":"I tried creating an `imagefolder` dataset with a 714MB `metadata.jsonl` but got the error below. This pull request fixes the problem by increasing the block size like the message suggests.\r\n```\r\n>>> from datasets import load_dataset\r\n>>> dataset = load_dataset(\"imagefolder\", data_dir=\"data-for-upload\")\r\nTraceback (most recent call last):\r\n File \"\", line 1, in \r\n File \"\/path\/to\/datasets\/load.py\", line 2609, in load_dataset\r\n builder_instance.download_and_prepare(\r\n ...\r\n File \"\/path\/to\/datasets\/packaged_modules\/folder_based_builder\/folder_based_builder.py\", line 245, in _read_metadata\r\n return paj.read_json(f)\r\n File \"pyarrow\/_json.pyx\", line 308, in pyarrow._json.read_json\r\n File \"pyarrow\/error.pxi\", line 154, in pyarrow.lib.pyarrow_internal_check_status\r\n File \"pyarrow\/error.pxi\", line 91, in pyarrow.lib.check_status\r\npyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)\r\n```","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6859\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6859\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6858","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6858\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6858\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6858\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6858","id":2274917185,"node_id":"I_kwDODunzps6HmHtB","number":6858,"title":"Segmentation fault","user":{"login":"scampion","id":554155,"node_id":"MDQ6VXNlcjU1NDE1NQ==","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/554155?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/scampion","html_url":"https:\/\/github.com\/scampion","followers_url":"https:\/\/api.github.com\/users\/scampion\/followers","following_url":"https:\/\/api.github.com\/users\/scampion\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/scampion\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/scampion\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/scampion\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/scampion\/orgs","repos_url":"https:\/\/api.github.com\/users\/scampion\/repos","events_url":"https:\/\/api.github.com\/users\/scampion\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/scampion\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-05-02T08:28:49Z","updated_at":"2024-05-03T08:43:21Z","closed_at":"2024-05-03T08:42:36Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nUsing various version for datasets, I'm no more longer able to load that dataset without a segmentation fault. \r\nSeveral others files are also concerned. \n\n### Steps to reproduce the bug\n\n# Create a new venv \r\npython3 -m venv venv_test \r\nsource venv_test\/bin\/activate\r\n\r\n# Install the latest version \r\npip install datasets\r\n\r\n# Load that dataset\r\npython3 -q -X faulthandler -c \"from datasets import load_dataset; load_dataset('EuropeanParliament\/Eurovoc', '1998-09')\"\n\n### Expected behavior\n\nData must be loaded \n\n### Environment info\n\ndatasets==2.19.0\r\nPython 3.11.7\r\nDarwin 22.5.0 Darwin Kernel Version 22.5.0: Mon Apr 24 20:51:50 PDT 2023; root:xnu-8796.121.2~5\/RELEASE_X86_64 x86_64","closed_by":{"login":"scampion","id":554155,"node_id":"MDQ6VXNlcjU1NDE1NQ==","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/554155?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/scampion","html_url":"https:\/\/github.com\/scampion","followers_url":"https:\/\/api.github.com\/users\/scampion\/followers","following_url":"https:\/\/api.github.com\/users\/scampion\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/scampion\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/scampion\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/scampion\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/scampion\/orgs","repos_url":"https:\/\/api.github.com\/users\/scampion\/repos","events_url":"https:\/\/api.github.com\/users\/scampion\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/scampion\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6858\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6858\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6857","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6857\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6857\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6857\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6857","id":2274849730,"node_id":"PR_kwDODunzps5uUooF","number":6857,"title":"Fix line-endings in tests on Windows","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-05-02T07:49:15Z","updated_at":"2024-05-02T11:49:35Z","closed_at":"2024-05-02T11:43:00Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6857","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6857","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6857.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6857.patch","merged_at":"2024-05-02T11:43:00Z"},"body":"EDIT:\r\n~~Fix test_delete_from_hub on Windows by passing explicit encoding.~~\r\nFix test_delete_from_hub and test_xgetsize_private by uploading the README file content directly (encoding the string), instead of writing a local file and uploading it.\r\n\r\nNote that local files created on Windows will have \"\\r\\n\" line endings, instead of \"\\n\".\r\nThese are no longer transformed to \"\\n\" by the Hub.\r\n\r\nFix #6856.","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6857\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6857\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6856","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6856\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6856\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6856\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6856","id":2274828933,"node_id":"I_kwDODunzps6HlyKF","number":6856,"title":"CI fails on Windows for test_delete_from_hub and test_xgetsize_private due to new-line character","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892857,"node_id":"MDU6TGFiZWwxOTM1ODkyODU3","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/bug","name":"bug","color":"d73a4a","default":true,"description":"Something isn't working"}],"state":"closed","locked":false,"assignee":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":1,"created_at":"2024-05-02T07:37:03Z","updated_at":"2024-05-02T11:43:01Z","closed_at":"2024-05-02T11:43:01Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"CI fails on Windows for test_delete_from_hub after the merge of:\r\n- #6820\r\n\r\nThis is weird because the CI was green in the PR branch before merging to main.\r\n\r\n```\r\nFAILED tests\/test_hub.py::test_delete_from_hub - AssertionError: assert [CommitOperat...\\r\\n---\\r\\n')] == [CommitOperat...in\/*\\n---\\n')]\r\n \r\n At index 1 diff: CommitOperationAdd(path_in_repo='README.md', path_or_fileobj=b'---\\r\\nconfigs:\\r\\n- config_name: cats\\r\\n data_files:\\r\\n - split: train\\r\\n path: cats\/train\/*\\r\\n---\\r\\n') != CommitOperationAdd(path_in_repo='README.md', path_or_fileobj=b'---\\nconfigs:\\n- config_name: cats\\n data_files:\\n - split: train\\n path: cats\/train\/*\\n---\\n')\r\n \r\n Full diff:\r\n [\r\n CommitOperationDelete(\r\n path_in_repo='dogs\/train\/0000.csv',\r\n is_folder=False,\r\n ),\r\n CommitOperationAdd(\r\n path_in_repo='README.md',\r\n - path_or_fileobj=b'---\\nconfigs:\\n- config_name: cats\\n data_files:\\n '\r\n ? --------\r\n + path_or_fileobj=b'---\\r\\nconfigs:\\r\\n- config_name: cats\\r\\n data_f'\r\n ? ++ ++ ++\r\n - b' - split: train\\n path: cats\/train\/*\\n---\\n',\r\n ? ^^^^^^ -\r\n + b'iles:\\r\\n - split: train\\r\\n path: cats\/train\/*\\r'\r\n ? ++++++++++ ++ ^\r\n + b'\\n---\\r\\n',\r\n ),\r\n ]\r\n```","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6856\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6856\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6855","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6855\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6855\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6855\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6855","id":2274777812,"node_id":"PR_kwDODunzps5uUZNT","number":6855,"title":"Fix dataset name for community Hub script-datasets","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2024-05-02T07:05:44Z","updated_at":"2024-05-03T15:58:00Z","closed_at":"2024-05-03T15:51:57Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6855","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6855","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6855.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6855.patch","merged_at":"2024-05-03T15:51:57Z"},"body":"Fix dataset name for community Hub script-datasets by passing explicit dataset_name to HubDatasetModuleFactoryWithScript.\r\n\r\nFix #6854.\r\n\r\nCC: @Wauplin ","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6855\/reactions","total_count":1,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":1,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6855\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6854","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6854\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6854\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6854\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6854","id":2274767686,"node_id":"I_kwDODunzps6HljNG","number":6854,"title":"Wrong example of usage when config name is missing for community script-datasets","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892857,"node_id":"MDU6TGFiZWwxOTM1ODkyODU3","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/bug","name":"bug","color":"d73a4a","default":true,"description":"Something isn't working"}],"state":"closed","locked":false,"assignee":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":0,"created_at":"2024-05-02T06:59:39Z","updated_at":"2024-05-03T15:51:59Z","closed_at":"2024-05-03T15:51:58Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"As reported by @Wauplin, when loading a community dataset with script, there is a bug in the example of usage of the error message if the dataset has multiple configs (and no default config) and the user does not pass any config. For example:\r\n```python\r\n>>> ds = load_dataset(\"google\/fleurs\")\r\nValueError: Config name is missing.\r\nPlease pick one among the available configs: ['af_za', 'am_et', 'ar_eg', 'as_in', 'ast_es', 'az_az', 'be_by', 'bg_bg', 'bn_in', 'bs_ba', 'ca_es', 'ceb_ph', 'ckb_iq', 'cmn_hans_cn', 'cs_cz', 'cy_gb', 'da_dk', 'de_de', 'el_gr', 'en_us', 'es_419', 'et_ee', 'fa_ir', 'ff_sn', 'fi_fi', 'fil_ph', 'fr_fr', 'ga_ie', 'gl_es', 'gu_in', 'ha_ng', 'he_il', 'hi_in', 'hr_hr', 'hu_hu', 'hy_am', 'id_id', 'ig_ng', 'is_is', 'it_it', 'ja_jp', 'jv_id', 'ka_ge', 'kam_ke', 'kea_cv', 'kk_kz', 'km_kh', 'kn_in', 'ko_kr', 'ky_kg', 'lb_lu', 'lg_ug', 'ln_cd', 'lo_la', 'lt_lt', 'luo_ke', 'lv_lv', 'mi_nz', 'mk_mk', 'ml_in', 'mn_mn', 'mr_in', 'ms_my', 'mt_mt', 'my_mm', 'nb_no', 'ne_np', 'nl_nl', 'nso_za', 'ny_mw', 'oc_fr', 'om_et', 'or_in', 'pa_in', 'pl_pl', 'ps_af', 'pt_br', 'ro_ro', 'ru_ru', 'sd_in', 'sk_sk', 'sl_si', 'sn_zw', 'so_so', 'sr_rs', 'sv_se', 'sw_ke', 'ta_in', 'te_in', 'tg_tj', 'th_th', 'tr_tr', 'uk_ua', 'umb_ao', 'ur_pk', 'uz_uz', 'vi_vn', 'wo_sn', 'xh_za', 'yo_ng', 'yue_hant_hk', 'zu_za', 'all']\r\nExample of usage:\r\n\t`load_dataset('fleurs', 'af_za')`\r\n```\r\n\r\nNote the example of usage in the error message suggests loading \"fleurs\" instead of \"google\/fleurs\".","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6854\/reactions","total_count":1,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6854\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6853","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6853\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6853\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6853\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6853","id":2272570000,"node_id":"I_kwDODunzps6HdKqQ","number":6853,"title":"Support soft links for load_datasets imagefolder","user":{"login":"billytcl","id":10386511,"node_id":"MDQ6VXNlcjEwMzg2NTEx","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/10386511?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/billytcl","html_url":"https:\/\/github.com\/billytcl","followers_url":"https:\/\/api.github.com\/users\/billytcl\/followers","following_url":"https:\/\/api.github.com\/users\/billytcl\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/billytcl\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/billytcl\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/billytcl\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/billytcl\/orgs","repos_url":"https:\/\/api.github.com\/users\/billytcl\/repos","events_url":"https:\/\/api.github.com\/users\/billytcl\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/billytcl\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-04-30T22:14:29Z","updated_at":"2024-04-30T22:14:29Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nLoad_dataset from a folder of images doesn't seem to support soft links. It would be nice if it did, especially during methods development where image folders are being curated.\n\n### Motivation\n\nImages are coming from a complex variety of sources and we'd like to be able to soft link directly from the originating folders as opposed to copying. Having a copy of the file ensures that there may be issues with image versioning as well as having double the amount of required disk space.\n\n### Your contribution\n\nN\/A","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6853\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6853\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6852","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6852\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6852\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6852\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6852","id":2272465011,"node_id":"I_kwDODunzps6HcxBz","number":6852,"title":"Write token isn't working while pushing to datasets","user":{"login":"realzai","id":130903099,"node_id":"U_kgDOB81sOw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/130903099?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/realzai","html_url":"https:\/\/github.com\/realzai","followers_url":"https:\/\/api.github.com\/users\/realzai\/followers","following_url":"https:\/\/api.github.com\/users\/realzai\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/realzai\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/realzai\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/realzai\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/realzai\/orgs","repos_url":"https:\/\/api.github.com\/users\/realzai\/repos","events_url":"https:\/\/api.github.com\/users\/realzai\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/realzai\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-04-30T21:18:20Z","updated_at":"2024-05-02T00:55:46Z","closed_at":"2024-05-02T00:55:46Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\n\"Screenshot\r\n\r\nAs you can see I logged in to my account and the write token is valid.\r\n\r\nBut I can't upload on my main account and I am getting that error. It was okay on my test account at first try.\r\n\r\n(I refreshed the token, tried a new token but still doesn't work)\n\n### Steps to reproduce the bug\n\n1. I loaded a dataset.\r\n\r\n2. I logged in using both cli and huggingface_hub\r\n\r\n3. I pushed to my down dataset\r\n(It went well without any issues on my test account)\n\n### Expected behavior\n\nIt should have gone smoothly and this is not even my first time uploading to huggingface datasets\n\n### Environment info\n\ncolab, dataset (tried multiple versions)","closed_by":{"login":"realzai","id":130903099,"node_id":"U_kgDOB81sOw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/130903099?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/realzai","html_url":"https:\/\/github.com\/realzai","followers_url":"https:\/\/api.github.com\/users\/realzai\/followers","following_url":"https:\/\/api.github.com\/users\/realzai\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/realzai\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/realzai\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/realzai\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/realzai\/orgs","repos_url":"https:\/\/api.github.com\/users\/realzai\/repos","events_url":"https:\/\/api.github.com\/users\/realzai\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/realzai\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6852\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6852\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6851","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6851\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6851\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6851\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6851","id":2270965503,"node_id":"I_kwDODunzps6HXC7_","number":6851,"title":"load_dataset('emotion') UnicodeDecodeError","user":{"login":"L-Block-C","id":32314558,"node_id":"MDQ6VXNlcjMyMzE0NTU4","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/32314558?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/L-Block-C","html_url":"https:\/\/github.com\/L-Block-C","followers_url":"https:\/\/api.github.com\/users\/L-Block-C\/followers","following_url":"https:\/\/api.github.com\/users\/L-Block-C\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/L-Block-C\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/L-Block-C\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/L-Block-C\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/L-Block-C\/orgs","repos_url":"https:\/\/api.github.com\/users\/L-Block-C\/repos","events_url":"https:\/\/api.github.com\/users\/L-Block-C\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/L-Block-C\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-04-30T09:25:01Z","updated_at":"2024-09-05T03:11:04Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\n**emotions = load_dataset('emotion')**\r\n\r\n_UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte_\n\n### Steps to reproduce the bug\n\nload_dataset('emotion') \n\n### Expected behavior\n\nsuccese\n\n### Environment info\n\npy3.10\r\ntransformers 4.41.0.dev0\r\ndatasets 2.19.0","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6851\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6851\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6850","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6850\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6850\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6850\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6850","id":2269500624,"node_id":"I_kwDODunzps6HRdTQ","number":6850,"title":"Problem loading voxpopuli dataset ","user":{"login":"Namangarg110","id":40496687,"node_id":"MDQ6VXNlcjQwNDk2Njg3","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/40496687?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Namangarg110","html_url":"https:\/\/github.com\/Namangarg110","followers_url":"https:\/\/api.github.com\/users\/Namangarg110\/followers","following_url":"https:\/\/api.github.com\/users\/Namangarg110\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Namangarg110\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Namangarg110\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Namangarg110\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Namangarg110\/orgs","repos_url":"https:\/\/api.github.com\/users\/Namangarg110\/repos","events_url":"https:\/\/api.github.com\/users\/Namangarg110\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Namangarg110\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":3,"created_at":"2024-04-29T16:46:51Z","updated_at":"2024-05-06T09:25:54Z","closed_at":"2024-05-06T09:25:54Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\n```\r\nException has occurred: FileNotFoundError\r\nCouldn't find file at https:\/\/huggingface.co\/datasets\/facebook\/voxpopuli\/resolve\/main\/{'en': 'data\/en\/asr_train.tsv'}\r\n```\r\n\r\nError in logic for link url creation. The link should be https:\/\/huggingface.co\/datasets\/facebook\/voxpopuli\/resolve\/main\/data\/en\/asr_train.tsv \r\n\r\nBasically there should be links directly under ```metadata[\"train\"]```, not under ```metadata[\"train\"][self.config.languages[0]]```\r\n\r\nsame for audio urls\n\n### Steps to reproduce the bug\n\n```\r\nfrom datasets import load_dataset\r\n\r\ndataset = load_dataset(\"facebook\/voxpopuli\",\"en\")\r\n```\n\n### Expected behavior\n\nDataset should be loaded successfully.\n\n### Environment info\n\n- `datasets` version: 2.19.0\r\n- Platform: Linux-5.15.0-1041-aws-x86_64-with-glibc2.31\r\n- Python version: 3.10.13\r\n- `huggingface_hub` version: 0.22.2\r\n- PyArrow version: 16.0.0\r\n- Pandas version: 2.2.0\r\n- `fsspec` version: 2023.12.2","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6850\/reactions","total_count":2,"+1":2,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6850\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6849","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6849\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6849\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6849\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6849","id":2268718355,"node_id":"PR_kwDODunzps5t_wnu","number":6849,"title":"fix webdataset filename split","user":{"login":"Bowser1704","id":43539191,"node_id":"MDQ6VXNlcjQzNTM5MTkx","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/43539191?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Bowser1704","html_url":"https:\/\/github.com\/Bowser1704","followers_url":"https:\/\/api.github.com\/users\/Bowser1704\/followers","following_url":"https:\/\/api.github.com\/users\/Bowser1704\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Bowser1704\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Bowser1704\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Bowser1704\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Bowser1704\/orgs","repos_url":"https:\/\/api.github.com\/users\/Bowser1704\/repos","events_url":"https:\/\/api.github.com\/users\/Bowser1704\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Bowser1704\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-04-29T10:57:18Z","updated_at":"2024-06-04T12:54:04Z","closed_at":"2024-06-04T12:54:04Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6849","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6849","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6849.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6849.patch","merged_at":null},"body":"use `os.path.splitext` to parse field_name.\r\n\r\nfix filename which has dot. like:\r\n\r\n```\r\na.b.jpeg\r\na.b.txt\r\n```","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6849\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6849\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6848","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6848\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6848\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6848\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6848","id":2268622609,"node_id":"I_kwDODunzps6HOG8R","number":6848,"title":"Cant Downlaod Common Voice 17.0 hy-AM ","user":{"login":"mheryerznkanyan","id":31586104,"node_id":"MDQ6VXNlcjMxNTg2MTA0","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/31586104?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/mheryerznkanyan","html_url":"https:\/\/github.com\/mheryerznkanyan","followers_url":"https:\/\/api.github.com\/users\/mheryerznkanyan\/followers","following_url":"https:\/\/api.github.com\/users\/mheryerznkanyan\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/mheryerznkanyan\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/mheryerznkanyan\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/mheryerznkanyan\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/mheryerznkanyan\/orgs","repos_url":"https:\/\/api.github.com\/users\/mheryerznkanyan\/repos","events_url":"https:\/\/api.github.com\/users\/mheryerznkanyan\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/mheryerznkanyan\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2024-04-29T10:06:02Z","updated_at":"2025-04-01T20:48:09Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\r\n\r\nI want to download Common Voice 17.0 hy-AM but it returns an error. \r\n```\r\n\r\nThe version_base parameter is not specified.\r\nPlease specify a compatability version level, or None.\r\nWill assume defaults for version 1.1\r\n @hydra.main(config_name='hfds_config', config_path=None)\r\n\/usr\/local\/lib\/python3.10\/dist-packages\/hydra\/_internal\/hydra.py:119: UserWarning: Future Hydra versions will no longer change working directory at job runtime by default.\r\nSee https:\/\/hydra.cc\/docs\/1.2\/upgrades\/1.1_to_1.2\/changes_to_job_working_dir\/ for more information.\r\n ret = run_job(\r\n\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/load.py:1429: FutureWarning: The repository for mozilla-foundation\/common_voice_17_0 contains custom code which must be executed to correctly load the dataset. You can inspect the repository content at https:\/\/hf.co\/datasets\/mozilla-foundation\/common_voice_17_0\r\nYou can avoid this message in future by passing the argument `trust_remote_code=True`.\r\nPassing `trust_remote_code=True` will be mandatory to load this dataset from the next major release of `datasets`.\r\n warnings.warn(\r\nReading metadata...: 6180it [00:00, 133224.37it\/s]les\/s]\r\nGenerating train split: 0 examples [00:00, ? examples\/s]\r\nHuggingFace datasets failed due to some reason (stack trace below).\r\nFor certain datasets (eg: MCV), it may be necessary to login to the huggingface-cli (via `huggingface-cli login`).\r\nOnce logged in, you need to set `use_auth_token=True` when calling this script.\r\n\r\nTraceback error for reference :\r\n\r\nTraceback (most recent call last):\r\n File \"\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/builder.py\", line 1743, in _prepare_split_single\r\n example = self.info.features.encode_example(record) if self.info.features is not None else record\r\n File \"\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/features\/features.py\", line 1878, in encode_example\r\n return encode_nested_example(self, example)\r\n File \"\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/features\/features.py\", line 1243, in encode_nested_example\r\n {\r\n File \"\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/features\/features.py\", line 1243, in \r\n {\r\n File \"\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/utils\/py_utils.py\", line 326, in zip_dict\r\n yield key, tuple(d[key] for d in dicts)\r\n File \"\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/utils\/py_utils.py\", line 326, in \r\n yield key, tuple(d[key] for d in dicts)\r\nKeyError: 'sentence_id'\r\n\r\nThe above exception was the direct cause of the following exception:\r\n\r\nTraceback (most recent call last):\r\n File \"\/workspace\/nemo\/scripts\/speech_recognition\/convert_hf_dataset_to_nemo.py\", line 358, in main\r\n dataset = load_dataset(\r\n File \"\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/load.py\", line 2549, in load_dataset\r\n builder_instance.download_and_prepare(\r\n File \"\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/builder.py\", line 1005, in download_and_prepare\r\n self._download_and_prepare(\r\n File \"\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/builder.py\", line 1767, in _download_and_prepare\r\n super()._download_and_prepare(\r\n File \"\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/builder.py\", line 1100, in _download_and_prepare\r\n self._prepare_split(split_generator, **prepare_split_kwargs)\r\n File \"\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/builder.py\", line 1605, in _prepare_split\r\n for job_id, done, content in self._prepare_split_single(\r\n File \"\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/builder.py\", line 1762, in _prepare_split_single\r\n raise DatasetGenerationError(\"An error occurred while generating the dataset\") from e\r\ndatasets.exceptions.DatasetGenerationError: An error occurred while generating the dataset\r\n```\r\n\r\n### Steps to reproduce the bug\r\n\r\n```\r\nfrom datasets import load_dataset\r\n\r\ncv_17 = load_dataset(\"mozilla-foundation\/common_voice_17_0\", \"hy-AM\")\r\n```\r\n\r\n### Expected behavior\r\n\r\nIt works fine with common_voice_16_1\r\n\r\n### Environment info\r\n\r\n- `datasets` version: 2.18.0\r\n- Platform: Linux-5.15.0-1042-nvidia-x86_64-with-glibc2.35\r\n- Python version: 3.11.6\r\n- `huggingface_hub` version: 0.22.2\r\n- PyArrow version: 15.0.2\r\n- Pandas version: 2.2.2\r\n- `fsspec` version: 2024.2.0","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6848\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6848\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6847","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6847\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6847\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6847\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6847","id":2268589177,"node_id":"I_kwDODunzps6HN-x5","number":6847,"title":"[Streaming] Only load requested splits without resolving files for the other splits","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":2,"created_at":"2024-04-29T09:49:32Z","updated_at":"2024-05-07T04:43:59Z","closed_at":null,"author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"e.g. [thangvip](https:\/\/huggingface.co\/thangvip)\/[cosmopedia_vi_math](https:\/\/huggingface.co\/datasets\/thangvip\/cosmopedia_vi_math) has 300 splits and it takes a very long time to load only one split.\r\n\r\nThis is due to `load_dataset()` resolving the files of all the splits even if only one is needed.\r\n\r\nIn `dataset-viewer` the splits are loaded in different jobs so it results in 300 jobs that resolve 300 splits -> 90k calls to `\/paths-info`","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6847\/reactions","total_count":1,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6847\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6846","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6846\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6846\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6846\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6846","id":2267352120,"node_id":"I_kwDODunzps6HJQw4","number":6846,"title":"Unimaginable super slow iteration","user":{"login":"rangehow","id":88258534,"node_id":"MDQ6VXNlcjg4MjU4NTM0","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/88258534?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/rangehow","html_url":"https:\/\/github.com\/rangehow","followers_url":"https:\/\/api.github.com\/users\/rangehow\/followers","following_url":"https:\/\/api.github.com\/users\/rangehow\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/rangehow\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/rangehow\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/rangehow\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/rangehow\/orgs","repos_url":"https:\/\/api.github.com\/users\/rangehow\/repos","events_url":"https:\/\/api.github.com\/users\/rangehow\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/rangehow\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-04-28T05:24:14Z","updated_at":"2024-05-06T08:30:03Z","closed_at":"2024-05-06T08:30:03Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\r\n\r\nAssuming there is a dataset with 52000 sentences, each with a length of 500, it takes 20 seconds to extract a sentence from the dataset\u2026\u2026\uff1fIs there something wrong with my iteration?\r\n\r\n### Steps to reproduce the bug\r\n\r\n```python\r\nimport datasets\r\nimport time\r\nimport random\r\n\r\nnum_rows = 52000\r\nnum_cols = 500\r\n\r\nrandom_input = [[random.randint(1, 100) for _ in range(num_cols)] for _ in range(num_rows)]\r\nrandom_output = [[random.randint(1, 100) for _ in range(num_cols)] for _ in range(num_rows)]\r\n\r\n\r\ns=time.time()\r\nd={'random_input':random_input,'random_output':random_output}\r\ndataset=datasets.Dataset.from_dict(d)\r\nprint('from dict',time.time()-s)\r\nprint(dataset)\r\n\r\n\r\nfor i in range(len(dataset)):\r\n aa=time.time()\r\n a,b=dataset['random_input'][i],dataset['random_output'][i]\r\n print(time.time()-aa)\r\n\r\n```\r\n\r\ncorresponding output\r\n```bash\r\nfrom dict 9.215498685836792\r\nDataset({\r\n features: ['random_input', 'random_output'],\r\n num_rows: 52000\r\n})\r\n19.129778146743774\r\n19.329464197158813\r\n19.27668261528015\r\n19.28557538986206\r\n19.247620582580566\r\n19.624247074127197\r\n19.28673791885376\r\n19.301053047180176\r\n19.290496110916138\r\n19.291821718215942\r\n19.357765197753906\r\n\r\n```\r\n\r\n### Expected behavior\r\n\r\nUnder normal circumstances, iteration should be very rapid as it does not involve the main tasks other than getting items\r\n\r\n### Environment info\r\n\r\n- `datasets` version: 2.19.0\r\n- Platform: Linux-3.10.0-1160.71.1.el7.x86_64-x86_64-with-glibc2.17\r\n- Python version: 3.10.13\r\n- `huggingface_hub` version: 0.21.4\r\n- PyArrow version: 15.0.0\r\n- Pandas version: 2.2.1\r\n- `fsspec` version: 2024.2.0","closed_by":{"login":"rangehow","id":88258534,"node_id":"MDQ6VXNlcjg4MjU4NTM0","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/88258534?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/rangehow","html_url":"https:\/\/github.com\/rangehow","followers_url":"https:\/\/api.github.com\/users\/rangehow\/followers","following_url":"https:\/\/api.github.com\/users\/rangehow\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/rangehow\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/rangehow\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/rangehow\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/rangehow\/orgs","repos_url":"https:\/\/api.github.com\/users\/rangehow\/repos","events_url":"https:\/\/api.github.com\/users\/rangehow\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/rangehow\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6846\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6846\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6845","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6845\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6845\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6845\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6845","id":2265876551,"node_id":"I_kwDODunzps6HDohH","number":6845,"title":"load_dataset doesn't support list column","user":{"login":"arthasking123","id":16257131,"node_id":"MDQ6VXNlcjE2MjU3MTMx","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/16257131?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/arthasking123","html_url":"https:\/\/github.com\/arthasking123","followers_url":"https:\/\/api.github.com\/users\/arthasking123\/followers","following_url":"https:\/\/api.github.com\/users\/arthasking123\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/arthasking123\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/arthasking123\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/arthasking123\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/arthasking123\/orgs","repos_url":"https:\/\/api.github.com\/users\/arthasking123\/repos","events_url":"https:\/\/api.github.com\/users\/arthasking123\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/arthasking123\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-04-26T14:11:44Z","updated_at":"2024-05-15T12:06:59Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\ndataset = load_dataset(\"Doraemon-AI\/text-to-neo4j-cypher-chinese\")\r\n\r\ngot exception:\r\nGenerating train split: 1834 examples [00:00, 5227.98 examples\/s]\r\nTraceback (most recent call last):\r\n File \"\/usr\/local\/lib\/python3.11\/dist-packages\/datasets\/builder.py\", line 2011, in _prepare_split_single\r\n writer.write_table(table)\r\n File \"\/usr\/local\/lib\/python3.11\/dist-packages\/datasets\/arrow_writer.py\", line 585, in write_table\r\n pa_table = table_cast(pa_table, self._schema)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"\/usr\/local\/lib\/python3.11\/dist-packages\/datasets\/table.py\", line 2295, in table_cast\r\n return cast_table_to_schema(table, schema)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"\/usr\/local\/lib\/python3.11\/dist-packages\/datasets\/table.py\", line 2254, in cast_table_to_schema\r\n arrays = [cast_array_to_feature(table[name], feature) for name, feature in features.items()]\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"\/usr\/local\/lib\/python3.11\/dist-packages\/datasets\/table.py\", line 2254, in \r\n arrays = [cast_array_to_feature(table[name], feature) for name, feature in features.items()]\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"\/usr\/local\/lib\/python3.11\/dist-packages\/datasets\/table.py\", line 1802, in wrapper\r\n return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"\/usr\/local\/lib\/python3.11\/dist-packages\/datasets\/table.py\", line 1802, in \r\n return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"\/usr\/local\/lib\/python3.11\/dist-packages\/datasets\/table.py\", line 2018, in cast_array_to_feature\r\n casted_array_values = _c(array.values, feature[0])\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"\/usr\/local\/lib\/python3.11\/dist-packages\/datasets\/table.py\", line 1804, in wrapper\r\n return func(array, *args, **kwargs)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"\/usr\/local\/lib\/python3.11\/dist-packages\/datasets\/table.py\", line 2115, in cast_array_to_feature\r\n raise TypeError(f\"Couldn't cast array of type\\n{array.type}\\nto\\n{feature}\")\r\nTypeError: Couldn't cast array of type\r\nstruct, q.name: string, rel.name: string, count(p): int64, 1: int64, p.location: string, max(n.name): null, mn.name: string, p.time: int64, min(q.name): string>\r\nto\r\n{'q.name': Value(dtype='string', id=None), 'mn.name': Value(dtype='string', id=None), 'x.name': Value(dtype='string', id=None), 'p.name': Value(dtype='string', id=None), 'n.name': Value(dtype='string', id=None), 'name': Value(dtype='string', id=None), 'm.name': Value(dtype='string', id=None), 'h.name': Value(dtype='string', id=None), 'count(p)': Value(dtype='int64', id=None), 'rel.name': Value(dtype='string', id=None), 'c': Value(dtype='int64', id=None), 'collect(r.name)': Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), '1': Value(dtype='int64', id=None), 'p.location': Value(dtype='string', id=None), 'substring(h.name,0,5)': Value(dtype='string', id=None), 'p.time': Value(dtype='int64', id=None)}\r\n\r\nThe above exception was the direct cause of the following exception:\r\n\r\nTraceback (most recent call last):\r\n File \"\/home\/ubuntu\/llm\/train-2.py\", line 150, in \r\n dataset = load_dataset(\"Doraemon-AI\/text-to-neo4j-cypher-chinese\")\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"\/usr\/local\/lib\/python3.11\/dist-packages\/datasets\/load.py\", line 2609, in load_dataset\r\n builder_instance.download_and_prepare(\r\n File \"\/usr\/local\/lib\/python3.11\/dist-packages\/datasets\/builder.py\", line 1027, in download_and_prepare\r\n self._download_and_prepare(\r\n File \"\/usr\/local\/lib\/python3.11\/dist-packages\/datasets\/builder.py\", line 1122, in _download_and_prepare\r\n self._prepare_split(split_generator, **prepare_split_kwargs)\r\n File \"\/usr\/local\/lib\/python3.11\/dist-packages\/datasets\/builder.py\", line 1882, in _prepare_split\r\n for job_id, done, content in self._prepare_split_single(\r\n File \"\/usr\/local\/lib\/python3.11\/dist-packages\/datasets\/builder.py\", line 2038, in _prepare_split_single\r\n raise DatasetGenerationError(\"An error occurred while generating the dataset\") from e\r\ndatasets.exceptions.DatasetGenerationError: An error occurred while generating the dataset\n\n### Steps to reproduce the bug\n\ndataset = load_dataset(\"Doraemon-AI\/text-to-neo4j-cypher-chinese\")\r\n\n\n### Expected behavior\n\nno exception\n\n### Environment info\n\npython 3.11\r\ndatasets 2.19.0","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6845\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6845\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6844","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6844\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6844\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6844\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6844","id":2265870546,"node_id":"PR_kwDODunzps5t2PRA","number":6844,"title":"Retry on HF Hub error when streaming","user":{"login":"mariosasko","id":47462742,"node_id":"MDQ6VXNlcjQ3NDYyNzQy","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/47462742?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/mariosasko","html_url":"https:\/\/github.com\/mariosasko","followers_url":"https:\/\/api.github.com\/users\/mariosasko\/followers","following_url":"https:\/\/api.github.com\/users\/mariosasko\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/mariosasko\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/mariosasko\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/mariosasko\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/mariosasko\/orgs","repos_url":"https:\/\/api.github.com\/users\/mariosasko\/repos","events_url":"https:\/\/api.github.com\/users\/mariosasko\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/mariosasko\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-04-26T14:09:04Z","updated_at":"2024-04-26T15:37:42Z","closed_at":"2024-04-26T15:37:42Z","author_association":"COLLABORATOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6844","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6844","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6844.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6844.patch","merged_at":null},"body":"Retry on the `huggingface_hub`'s `HfHubHTTPError` in the streaming mode.\r\n\r\nFix #6843 ","closed_by":{"login":"mariosasko","id":47462742,"node_id":"MDQ6VXNlcjQ3NDYyNzQy","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/47462742?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/mariosasko","html_url":"https:\/\/github.com\/mariosasko","followers_url":"https:\/\/api.github.com\/users\/mariosasko\/followers","following_url":"https:\/\/api.github.com\/users\/mariosasko\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/mariosasko\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/mariosasko\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/mariosasko\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/mariosasko\/orgs","repos_url":"https:\/\/api.github.com\/users\/mariosasko\/repos","events_url":"https:\/\/api.github.com\/users\/mariosasko\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/mariosasko\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6844\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6844\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6843","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6843\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6843\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6843\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6843","id":2265432897,"node_id":"I_kwDODunzps6HB8NB","number":6843,"title":"IterableDataset raises exception instead of retrying","user":{"login":"bauwenst","id":145220868,"node_id":"U_kgDOCKflBA","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/145220868?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/bauwenst","html_url":"https:\/\/github.com\/bauwenst","followers_url":"https:\/\/api.github.com\/users\/bauwenst\/followers","following_url":"https:\/\/api.github.com\/users\/bauwenst\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/bauwenst\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/bauwenst\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/bauwenst\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/bauwenst\/orgs","repos_url":"https:\/\/api.github.com\/users\/bauwenst\/repos","events_url":"https:\/\/api.github.com\/users\/bauwenst\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/bauwenst\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2024-04-26T10:00:43Z","updated_at":"2024-10-28T14:57:07Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\r\n\r\nIn light of the recent server outages, I decided to look into whether I could somehow wrap my IterableDataset streams to retry rather than error out immediately. To my surprise, `datasets` [already supports retries](https:\/\/github.com\/huggingface\/datasets\/issues\/6172#issuecomment-1794876229). Since a commit by @lhoestq [last week](https:\/\/github.com\/huggingface\/datasets\/commit\/a188022dc43a76a119d90c03832d51d6e4a94d91), that code lives here:\r\n\r\nhttps:\/\/github.com\/huggingface\/datasets\/blob\/fe2bea6a4b09b180bd23b88fe96dfd1a11191a4f\/src\/datasets\/utils\/file_utils.py#L1097C1-L1111C19\r\n\r\nIf GitHub code snippets still aren't working, here's a copy:\r\n```python\r\n def read_with_retries(*args, **kwargs):\r\n disconnect_err = None\r\n for retry in range(1, max_retries + 1):\r\n try:\r\n out = read(*args, **kwargs)\r\n break\r\n except (ClientError, TimeoutError) as err:\r\n disconnect_err = err\r\n logger.warning(\r\n f\"Got disconnected from remote data host. Retrying in {config.STREAMING_READ_RETRY_INTERVAL}sec [{retry}\/{max_retries}]\"\r\n )\r\n time.sleep(config.STREAMING_READ_RETRY_INTERVAL)\r\n else:\r\n raise ConnectionError(\"Server Disconnected\") from disconnect_err\r\n return out\r\n```\r\n\r\nWith the latest outage, the end of my stack trace looked like this:\r\n```\r\n...\r\n File \"\/miniconda3\/envs\/draft\/lib\/python3.11\/site-packages\/datasets\/download\/streaming_download_manager.py\", line 342, in read_with_retries\r\n out = read(*args, **kwargs)\r\n ^^^^^^^^^^^^^^^^^^^^^\r\n File \"\/miniconda3\/envs\/draft\/lib\/python3.11\/gzip.py\", line 301, in read\r\n return self._buffer.read(size)\r\n ^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"\/miniconda3\/envs\/draft\/lib\/python3.11\/_compression.py\", line 68, in readinto\r\n data = self.read(len(byte_view))\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"\/miniconda3\/envs\/draft\/lib\/python3.11\/gzip.py\", line 505, in read\r\n buf = self._fp.read(io.DEFAULT_BUFFER_SIZE)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"\/miniconda3\/envs\/draft\/lib\/python3.11\/gzip.py\", line 88, in read\r\n return self.file.read(size)\r\n ^^^^^^^^^^^^^^^^^^^^\r\n File \"\/miniconda3\/envs\/draft\/lib\/python3.11\/site-packages\/fsspec\/spec.py\", line 1856, in read\r\n out = self.cache._fetch(self.loc, self.loc + length)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"\/miniconda3\/envs\/draft\/lib\/python3.11\/site-packages\/fsspec\/caching.py\", line 189, in _fetch\r\n self.cache = self.fetcher(start, end) # new block replaces old\r\n ^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"\/miniconda3\/envs\/draft\/lib\/python3.11\/site-packages\/huggingface_hub\/hf_file_system.py\", line 626, in _fetch_range\r\n hf_raise_for_status(r)\r\n File \"\/miniconda3\/envs\/draft\/lib\/python3.11\/site-packages\/huggingface_hub\/utils\/_errors.py\", line 333, in hf_raise_for_status\r\n raise HfHubHTTPError(str(e), response=response) from e\r\nhuggingface_hub.utils._errors.HfHubHTTPError: 504 Server Error: Gateway Time-out for url: https:\/\/huggingface.co\/datasets\/allenai\/c4\/resolve\/1588ec454efa1a09f29cd18ddd04fe05fc8653a2\/en\/c4-train.00346-of-01024.json.gz\r\n```\r\n\r\nIndeed, the code for retries only catches `ClientError`s and `TimeoutError`s, and all other exceptions, *including HuggingFace's own custom HTTP error class*, **are not caught. Nothing is retried,** and instead the exception is propagated upwards immediately.\r\n\r\n### Steps to reproduce the bug\r\n\r\nNot sure how you reproduce this. Maybe unplug your Ethernet cable while streaming a dataset; the issue is pretty clear from the stack trace.\r\n\r\n### Expected behavior\r\n\r\nAll HTTP errors while iterating a streamable dataset should cause retries.\r\n\r\n### Environment info\r\n\r\nOutput from `datasets-cli env`:\r\n- `datasets` version: 2.18.0\r\n- Platform: Linux-4.18.0-513.24.1.el8_9.x86_64-x86_64-with-glibc2.28\r\n- Python version: 3.11.7\r\n- `huggingface_hub` version: 0.20.3\r\n- PyArrow version: 15.0.0\r\n- Pandas version: 2.2.0\r\n- `fsspec` version: 2023.10.0","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6843\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6843\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6842","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6842\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6842\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6842\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6842","id":2264692159,"node_id":"I_kwDODunzps6G_HW_","number":6842,"title":"Datasets with files with colon : in filenames cannot be used on Windows","user":{"login":"jacobjennings","id":1038927,"node_id":"MDQ6VXNlcjEwMzg5Mjc=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/1038927?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/jacobjennings","html_url":"https:\/\/github.com\/jacobjennings","followers_url":"https:\/\/api.github.com\/users\/jacobjennings\/followers","following_url":"https:\/\/api.github.com\/users\/jacobjennings\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/jacobjennings\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/jacobjennings\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/jacobjennings\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/jacobjennings\/orgs","repos_url":"https:\/\/api.github.com\/users\/jacobjennings\/repos","events_url":"https:\/\/api.github.com\/users\/jacobjennings\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/jacobjennings\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-04-26T00:14:16Z","updated_at":"2024-04-26T00:14:16Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nDatasets (such as https:\/\/huggingface.co\/datasets\/MLCommons\/peoples_speech) cannot be used on Windows due to the fact that windows does not allow colons \":\" in filenames. These should be converted into alternative strings.\r\n\r\n\n\n### Steps to reproduce the bug\n\n1. Attempt to run load_dataset on MLCommons\/peoples_speech\n\n### Expected behavior\n\nDoes not crash during extraction\n\n### Environment info\n\nWindows 11, NTFS filesystem, Python 3.12\r\n","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6842\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6842\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6841","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6841\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6841\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6841\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6841","id":2264687683,"node_id":"I_kwDODunzps6G_GRD","number":6841,"title":"Unable to load wiki_auto_asset_turk from GEM","user":{"login":"abhinavsethy","id":23074600,"node_id":"MDQ6VXNlcjIzMDc0NjAw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/23074600?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/abhinavsethy","html_url":"https:\/\/github.com\/abhinavsethy","followers_url":"https:\/\/api.github.com\/users\/abhinavsethy\/followers","following_url":"https:\/\/api.github.com\/users\/abhinavsethy\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/abhinavsethy\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/abhinavsethy\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/abhinavsethy\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/abhinavsethy\/orgs","repos_url":"https:\/\/api.github.com\/users\/abhinavsethy\/repos","events_url":"https:\/\/api.github.com\/users\/abhinavsethy\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/abhinavsethy\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2024-04-26T00:08:47Z","updated_at":"2024-05-29T13:54:03Z","closed_at":"2024-04-26T16:12:29Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI am unable to load the wiki_auto_asset_turk dataset. I get a fatal error while trying to access wiki_auto_asset_turk and load it with datasets.load_dataset. The error (TypeError: expected str, bytes or os.PathLike object, not NoneType) is from filenames_for_dataset_split in a os.path.join call \r\n\r\n\r\n>>import datasets\r\n>>print (datasets.__version__)\r\n>>dataset = datasets.load_dataset(\"GEM\/wiki_auto_asset_turk\")\r\n\r\nSystem output:\r\n\r\nGenerating train split: 100%|\u2588| 483801\/483801 [00:03<00:00, 127164.26 examples\/s\r\nGenerating validation split: 100%|\u2588| 20000\/20000 [00:00<00:00, 116052.94 example\r\nGenerating test_asset split: 100%|\u2588\u2588| 359\/359 [00:00<00:00, 76155.93 examples\/s]\r\nGenerating test_turk split: 100%|\u2588\u2588\u2588| 359\/359 [00:00<00:00, 87691.76 examples\/s]\r\nTraceback (most recent call last):\r\n File \"\/Users\/abhinav.sethy\/Code\/openai_evals\/evals\/evals\/grammarly_tasks\/gem_sari.py\", line 3, in \r\n dataset = datasets.load_dataset(\"GEM\/wiki_auto_asset_turk\")\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"\/Library\/Frameworks\/Python.framework\/Versions\/3.12\/lib\/python3.12\/site-packages\/datasets\/load.py\", line 2582, in load_dataset\r\n builder_instance.download_and_prepare(\r\n File \"\/Library\/Frameworks\/Python.framework\/Versions\/3.12\/lib\/python3.12\/site-packages\/datasets\/builder.py\", line 1005, in download_and_prepare\r\n self._download_and_prepare(\r\n File \"\/Library\/Frameworks\/Python.framework\/Versions\/3.12\/lib\/python3.12\/site-packages\/datasets\/builder.py\", line 1767, in _download_and_prepare\r\n super()._download_and_prepare(\r\n File \"\/Library\/Frameworks\/Python.framework\/Versions\/3.12\/lib\/python3.12\/site-packages\/datasets\/builder.py\", line 1100, in _download_and_prepare\r\n self._prepare_split(split_generator, **prepare_split_kwargs)\r\n File \"\/Library\/Frameworks\/Python.framework\/Versions\/3.12\/lib\/python3.12\/site-packages\/datasets\/builder.py\", line 1565, in _prepare_split\r\n split_info = self.info.splits[split_generator.name]\r\n ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^\r\n File \"\/Library\/Frameworks\/Python.framework\/Versions\/3.12\/lib\/python3.12\/site-packages\/datasets\/splits.py\", line 532, in __getitem__\r\n instructions = make_file_instructions(\r\n ^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"\/Library\/Frameworks\/Python.framework\/Versions\/3.12\/lib\/python3.12\/site-packages\/datasets\/arrow_reader.py\", line 121, in make_file_instructions\r\n info.name: filenames_for_dataset_split(\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"\/Library\/Frameworks\/Python.framework\/Versions\/3.12\/lib\/python3.12\/site-packages\/datasets\/naming.py\", line 72, in filenames_for_dataset_split\r\n prefix = os.path.join(path, prefix)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"\", line 76, in join\r\nTypeError: expected str, bytes or os.PathLike object, not NoneType\n\n### Steps to reproduce the bug\n\nimport datasets\r\nprint (datasets.__version__)\r\ndataset = datasets.load_dataset(\"GEM\/wiki_auto_asset_turk\")\r\n\n\n### Expected behavior\n\nShould be able to load the dataset without any issues\n\n### Environment info\n\ndatasets version 2.18.0 (was able to reproduce bug with older versions 2.16 and 2.14 also)\r\nPython 3.12.0","closed_by":{"login":"mariosasko","id":47462742,"node_id":"MDQ6VXNlcjQ3NDYyNzQy","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/47462742?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/mariosasko","html_url":"https:\/\/github.com\/mariosasko","followers_url":"https:\/\/api.github.com\/users\/mariosasko\/followers","following_url":"https:\/\/api.github.com\/users\/mariosasko\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/mariosasko\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/mariosasko\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/mariosasko\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/mariosasko\/orgs","repos_url":"https:\/\/api.github.com\/users\/mariosasko\/repos","events_url":"https:\/\/api.github.com\/users\/mariosasko\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/mariosasko\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6841\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6841\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6840","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6840\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6840\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6840\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6840","id":2264604766,"node_id":"I_kwDODunzps6G-yBe","number":6840,"title":"Delete uploaded files from the UI","user":{"login":"saicharan2804","id":62512681,"node_id":"MDQ6VXNlcjYyNTEyNjgx","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/62512681?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/saicharan2804","html_url":"https:\/\/github.com\/saicharan2804","followers_url":"https:\/\/api.github.com\/users\/saicharan2804\/followers","following_url":"https:\/\/api.github.com\/users\/saicharan2804\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/saicharan2804\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/saicharan2804\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/saicharan2804\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/saicharan2804\/orgs","repos_url":"https:\/\/api.github.com\/users\/saicharan2804\/repos","events_url":"https:\/\/api.github.com\/users\/saicharan2804\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/saicharan2804\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-04-25T22:33:57Z","updated_at":"2025-01-21T09:44:22Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nOnce a file is uploaded and the commit is made, I am unable to delete individual files without completely deleting the whole dataset via the website UI.\n\n### Motivation\n\nWould be a useful addition\n\n### Your contribution\n\nWould love to help out with some guidance","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6840\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6840\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6839","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6839\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6839\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6839\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6839","id":2263761062,"node_id":"PR_kwDODunzps5tvC1c","number":6839,"title":"Remove token arg from CLI examples","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-04-25T14:36:58Z","updated_at":"2024-04-26T17:03:51Z","closed_at":"2024-04-26T16:57:40Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6839","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6839","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6839.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6839.patch","merged_at":"2024-04-26T16:57:40Z"},"body":"Remove token arg from CLI examples.\r\n\r\nFix #6838.\r\n\r\nCC: @Wauplin ","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6839\/reactions","total_count":1,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":1,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6839\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6838","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6838\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6838\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6838\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6838","id":2263674843,"node_id":"I_kwDODunzps6G7O_b","number":6838,"title":"Remove token arg from CLI examples","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":0,"created_at":"2024-04-25T14:00:38Z","updated_at":"2024-04-26T16:57:41Z","closed_at":"2024-04-26T16:57:41Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"As suggested by @Wauplin, see: https:\/\/github.com\/huggingface\/datasets\/pull\/6831#discussion_r1579492603\r\n> I would not advertise the --token arg in the example as this shouldn't be the recommended way (best to login with env variable or huggingface-cli login)","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6838\/reactions","total_count":1,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6838\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6837","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6837\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6837\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6837\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6837","id":2263273983,"node_id":"I_kwDODunzps6G5tH_","number":6837,"title":"Cannot use cached dataset without Internet connection (or when servers are down)","user":{"login":"DionisMuzenitov","id":112088378,"node_id":"U_kgDOBq5VOg","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/112088378?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/DionisMuzenitov","html_url":"https:\/\/github.com\/DionisMuzenitov","followers_url":"https:\/\/api.github.com\/users\/DionisMuzenitov\/followers","following_url":"https:\/\/api.github.com\/users\/DionisMuzenitov\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/DionisMuzenitov\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/DionisMuzenitov\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/DionisMuzenitov\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/DionisMuzenitov\/orgs","repos_url":"https:\/\/api.github.com\/users\/DionisMuzenitov\/repos","events_url":"https:\/\/api.github.com\/users\/DionisMuzenitov\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/DionisMuzenitov\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2024-04-25T10:48:20Z","updated_at":"2025-01-25T16:36:41Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI want to be able to use cached dataset from HuggingFace even when I have no Internet connection (or when HuggingFace servers are down, or my company has network issues). \r\nThe problem why I can't use it:\r\n`data_files` argument from `datasets.load_dataset()` function get it updates from the server before calculating hash for caching. As a result, when I run the same code with and without Internet I get different dataset configuration directory name.\n\n### Steps to reproduce the bug\n\n```\r\nimport datasets\r\n\r\nc4_dataset = datasets.load_dataset(\r\n path=\"allenai\/c4\",\r\n data_files={\"train\": \"en\/c4-train.00000-of-01024.json.gz\"},\r\n split=\"train\",\r\n cache_dir=\"\/datesets\/cache\",\r\n download_mode=\"reuse_cache_if_exists\",\r\n token=False,\r\n)\r\n```\r\n1. Run this code with the Internet.\r\n2. Run the same code without the Internet.\n\n### Expected behavior\n\nWhen running without the Internet connection, the loader should be able to get dataset from cache\n\n### Environment info\n\n- `datasets` version: 2.19.0\r\n- Platform: Windows-10-10.0.19044-SP0\r\n- Python version: 3.10.13\r\n- `huggingface_hub` version: 0.22.2\r\n- PyArrow version: 16.0.0\r\n- Pandas version: 1.5.3\r\n- `fsspec` version: 2023.12.2","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6837\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6837\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6836","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6836\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6836\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6836\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6836","id":2262249919,"node_id":"I_kwDODunzps6G1zG_","number":6836,"title":"ExpectedMoreSplits error on load_dataset when upgrading to 2.19.0","user":{"login":"ebsmothers","id":24319399,"node_id":"MDQ6VXNlcjI0MzE5Mzk5","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/24319399?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/ebsmothers","html_url":"https:\/\/github.com\/ebsmothers","followers_url":"https:\/\/api.github.com\/users\/ebsmothers\/followers","following_url":"https:\/\/api.github.com\/users\/ebsmothers\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/ebsmothers\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/ebsmothers\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/ebsmothers\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/ebsmothers\/orgs","repos_url":"https:\/\/api.github.com\/users\/ebsmothers\/repos","events_url":"https:\/\/api.github.com\/users\/ebsmothers\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/ebsmothers\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2024-04-24T21:52:35Z","updated_at":"2024-05-14T04:08:19Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nHi there, thanks for the great library! We have been using it a lot in torchtune and it's been a huge help for us. \r\n\r\nRegarding the bug: the same call to `load_dataset` errors with `ExpectedMoreSplits` in 2.19.0 after working fine in 2.18.0. Full details given in the repro below.\n\n### Steps to reproduce the bug\n\nOn 2.18.0, things work fine:\r\n```\r\n# First clear the locally cached dataset\r\nrm -r ~\/.cache\/huggingface\/datasets\/lvwerra___stack-exchange-paired\r\npip install \"datasets==2.18.0\"\r\npython3\r\n>>> from datasets import load_dataset\r\n>>> dataset = load_dataset('lvwerra\/stack-exchange-paired', split='train', data_dir='data\/rl')\r\n```\r\n\r\nOn 2.19.0, they do not:\r\n```\r\n# First clear the locally cached dataset\r\nrm -r ~\/.cache\/huggingface\/datasets\/lvwerra___stack-exchange-paired\r\npip install \"datasets==2.19.0\"\r\npython3\r\n>>> from datasets import load_dataset\r\n>>> dataset = load_dataset('lvwerra\/stack-exchange-paired', split='train', data_dir='data\/rl')\r\n```\r\n\r\nThe stack trace I see from the 2.19.0 version of load_dataset can be seen [here](https:\/\/gist.github.com\/ebsmothers\/f9b1f1949bee7030a8d7bb8a491550d2).\r\n\r\n(Maybe unsurprising but) notably if I do not delete the cache first I am able to load the dataset successfully. So based on this I suspect the cause is somewhere in the download logic.\n\n### Expected behavior\n\nDownload the dataset successfully :)\n\n### Environment info\n\n- `datasets` version: 2.19.0\r\n- Platform: Linux-5.12.0-0_fbk16_zion_7661_geb00762ce6d2-x86_64-with-glibc2.34\r\n- Python version: 3.11.9\r\n- `huggingface_hub` version: 0.22.2\r\n- PyArrow version: 16.0.0\r\n- Pandas version: 2.2.2\r\n- `fsspec` version: 2024.3.1","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6836\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6836\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6835","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6835\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6835\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6835\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6835","id":2261079263,"node_id":"PR_kwDODunzps5tl2fc","number":6835,"title":"Support pyarrow LargeListType","user":{"login":"Modexus","id":37351874,"node_id":"MDQ6VXNlcjM3MzUxODc0","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/37351874?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Modexus","html_url":"https:\/\/github.com\/Modexus","followers_url":"https:\/\/api.github.com\/users\/Modexus\/followers","following_url":"https:\/\/api.github.com\/users\/Modexus\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Modexus\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Modexus\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Modexus\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Modexus\/orgs","repos_url":"https:\/\/api.github.com\/users\/Modexus\/repos","events_url":"https:\/\/api.github.com\/users\/Modexus\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Modexus\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2024-04-24T11:34:24Z","updated_at":"2024-08-12T14:43:47Z","closed_at":"2024-08-12T14:43:47Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6835","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6835","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6835.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6835.patch","merged_at":null},"body":"Fixes #6834 ","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6835\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6835\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6834","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6834\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6834\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6834\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6834","id":2261078104,"node_id":"I_kwDODunzps6GxVBY","number":6834,"title":"largelisttype not supported (.from_polars())","user":{"login":"Modexus","id":37351874,"node_id":"MDQ6VXNlcjM3MzUxODc0","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/37351874?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Modexus","html_url":"https:\/\/github.com\/Modexus","followers_url":"https:\/\/api.github.com\/users\/Modexus\/followers","following_url":"https:\/\/api.github.com\/users\/Modexus\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Modexus\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Modexus\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Modexus\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Modexus\/orgs","repos_url":"https:\/\/api.github.com\/users\/Modexus\/repos","events_url":"https:\/\/api.github.com\/users\/Modexus\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Modexus\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":0,"created_at":"2024-04-24T11:33:43Z","updated_at":"2024-08-12T14:43:46Z","closed_at":"2024-08-12T14:43:46Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\r\n\r\nThe following code fails because LargeListType is not supported.\r\nThis is especially a problem for .from_polars since polars uses LargeListType.\r\n\r\n\r\n### Steps to reproduce the bug\r\n\r\n```python\r\nimport datasets\r\nimport polars as pl\r\n\r\ndf = pl.DataFrame({\"list\": [[]]})\r\ndatasets.Dataset.from_polars(df)\r\n```\r\n\r\n### Expected behavior\r\n\r\nConvert LargeListType to list.\r\n\r\n### Environment info\r\n\r\n- `datasets` version: 2.19.1.dev0\r\n- Platform: Linux-6.8.7-200.fc39.x86_64-x86_64-with-glibc2.38\r\n- Python version: 3.12.2\r\n- `huggingface_hub` version: 0.22.2\r\n- PyArrow version: 16.0.0\r\n- Pandas version: 2.1.4\r\n- `fsspec` version: 2024.3.1","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6834\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6834\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6833","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6833\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6833\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6833\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6833","id":2259731274,"node_id":"I_kwDODunzps6GsMNK","number":6833,"title":"Super slow iteration with trivial custom transform","user":{"login":"xslittlegrass","id":2780075,"node_id":"MDQ6VXNlcjI3ODAwNzU=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/2780075?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/xslittlegrass","html_url":"https:\/\/github.com\/xslittlegrass","followers_url":"https:\/\/api.github.com\/users\/xslittlegrass\/followers","following_url":"https:\/\/api.github.com\/users\/xslittlegrass\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/xslittlegrass\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/xslittlegrass\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/xslittlegrass\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/xslittlegrass\/orgs","repos_url":"https:\/\/api.github.com\/users\/xslittlegrass\/repos","events_url":"https:\/\/api.github.com\/users\/xslittlegrass\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/xslittlegrass\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2024-04-23T20:40:59Z","updated_at":"2024-10-08T15:41:18Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nDataset is 10X slower when applying trivial transforms:\r\n\r\n```\r\nimport time\r\nimport numpy as np\r\nfrom datasets import Dataset, Features, Array2D\r\n\r\na = np.zeros((800, 800))\r\na = np.stack([a] * 1000)\r\nfeatures = Features({\"a\": Array2D(shape=(800, 800), dtype=\"uint8\")})\r\n\r\nds1 = Dataset.from_dict({\"a\": a}, features=features).with_format('numpy')\r\n\r\ndef transform(batch):\r\n\treturn batch\r\n\r\nds2 = ds1.with_transform(transform)\r\n\r\n%time sum(1 for _ in ds1)\r\n%time sum(1 for _ in ds2)\r\n```\r\n\r\n```\r\nCPU times: user 472 ms, sys: 319 ms, total: 791 ms\r\nWall time: 794 ms\r\nCPU times: user 9.32 s, sys: 443 ms, total: 9.76 s\r\nWall time: 9.78 s\r\n```\r\n\r\nIn my real code I'm using set_transform to apply some post-processing on-the-fly for the 2d array, but it significantly slows down the dataset even if the transform itself is trivial.\r\n\r\nRelated issue: https:\/\/github.com\/huggingface\/datasets\/issues\/5841\n\n### Steps to reproduce the bug\n\nUse code in the description to reproduce.\n\n### Expected behavior\n\nTrivial custom transform in the example should not slowdown the dataset iteration.\n\n### Environment info\n\n- `datasets` version: 2.18.0\r\n- Platform: Linux-5.15.0-79-generic-x86_64-with-glibc2.35\r\n- Python version: 3.11.4\r\n- `huggingface_hub` version: 0.20.2\r\n- PyArrow version: 15.0.0\r\n- Pandas version: 1.5.3\r\n- `fsspec` version: 2023.12.2","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6833\/reactions","total_count":3,"+1":3,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6833\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6832","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6832\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6832\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6832\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6832","id":2258761447,"node_id":"PR_kwDODunzps5teFoJ","number":6832,"title":"Support downloading specific splits in `load_dataset`","user":{"login":"mariosasko","id":47462742,"node_id":"MDQ6VXNlcjQ3NDYyNzQy","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/47462742?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/mariosasko","html_url":"https:\/\/github.com\/mariosasko","followers_url":"https:\/\/api.github.com\/users\/mariosasko\/followers","following_url":"https:\/\/api.github.com\/users\/mariosasko\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/mariosasko\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/mariosasko\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/mariosasko\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/mariosasko\/orgs","repos_url":"https:\/\/api.github.com\/users\/mariosasko\/repos","events_url":"https:\/\/api.github.com\/users\/mariosasko\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/mariosasko\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2024-04-23T12:32:27Z","updated_at":"2025-07-28T18:30:25Z","closed_at":null,"author_association":"COLLABORATOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6832","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6832","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6832.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6832.patch","merged_at":null},"body":"This PR builds on https:\/\/github.com\/huggingface\/datasets\/pull\/6639 to support downloading only the specified splits in `load_dataset`. For this to work, a builder's `_split_generators` need to be able to accept the requested splits (as a list) via a `splits` argument to avoid processing the non-requested ones. Also, the builder has to define a `_available_splits` method that lists all the possible `splits` values.\r\n\r\nClose https:\/\/github.com\/huggingface\/datasets\/issues\/4101, close https:\/\/github.com\/huggingface\/datasets\/issues\/2538 (I'm probably missing some)\r\n\r\nShould also make it possible to address https:\/\/github.com\/huggingface\/datasets\/issues\/6793","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6832\/reactions","total_count":2,"+1":2,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6832\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6831","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6831\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6831\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6831\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6831","id":2258537405,"node_id":"PR_kwDODunzps5tdTy_","number":6831,"title":"Add docs about the CLI","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2024-04-23T10:41:03Z","updated_at":"2024-04-26T16:51:09Z","closed_at":"2024-04-25T10:44:10Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6831","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6831","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6831.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6831.patch","merged_at":"2024-04-25T10:44:10Z"},"body":"Add docs about the CLI.\r\n\r\nClose #6830.\r\n\r\nCC: @severo ","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6831\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6831\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6830","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6830\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6830\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6830\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6830","id":2258433178,"node_id":"I_kwDODunzps6GnPSa","number":6830,"title":"Add a doc page for the convert_to_parquet CLI","user":{"login":"severo","id":1676121,"node_id":"MDQ6VXNlcjE2NzYxMjE=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/1676121?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/severo","html_url":"https:\/\/github.com\/severo","followers_url":"https:\/\/api.github.com\/users\/severo\/followers","following_url":"https:\/\/api.github.com\/users\/severo\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/severo\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/severo\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/severo\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/severo\/orgs","repos_url":"https:\/\/api.github.com\/users\/severo\/repos","events_url":"https:\/\/api.github.com\/users\/severo\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/severo\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892861,"node_id":"MDU6TGFiZWwxOTM1ODkyODYx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/documentation","name":"documentation","color":"0075ca","default":true,"description":"Improvements or additions to documentation"}],"state":"closed","locked":false,"assignee":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":0,"created_at":"2024-04-23T09:49:04Z","updated_at":"2024-04-25T10:44:11Z","closed_at":"2024-04-25T10:44:11Z","author_association":"COLLABORATOR","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"Follow-up to https:\/\/github.com\/huggingface\/datasets\/pull\/6795. Useful for https:\/\/github.com\/huggingface\/dataset-viewer\/issues\/2742. cc @albertvillanova ","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6830\/reactions","total_count":1,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":1,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6830\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6829","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6829\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6829\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6829\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6829","id":2258424577,"node_id":"I_kwDODunzps6GnNMB","number":6829,"title":"Load and save from\/to disk no longer accept pathlib.Path","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892857,"node_id":"MDU6TGFiZWwxOTM1ODkyODU3","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/bug","name":"bug","color":"d73a4a","default":true,"description":"Something isn't working"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-04-23T09:44:45Z","updated_at":"2024-04-23T09:44:46Z","closed_at":null,"author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"Reported by @vttrifonov at https:\/\/github.com\/huggingface\/datasets\/pull\/6704#issuecomment-2071168296:\r\n> This change is breaking in \r\n> https:\/\/github.com\/huggingface\/datasets\/blob\/f96e74d5c633cd5435dd526adb4a74631eb05c43\/src\/datasets\/arrow_dataset.py#L1515\r\n> when the input is `pathlib.Path`. The issue is that `url_to_fs` expects a `str` and cannot deal with `Path`. `get_fs_token_paths` converts to `str` so it is not a problem\r\n\r\nThis change was introduced in:\r\n- #6704 ","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6829\/reactions","total_count":1,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6829\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6828","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6828\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6828\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6828\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6828","id":2258420421,"node_id":"PR_kwDODunzps5tc55y","number":6828,"title":"Support PathLike input in save_to_disk \/ load_from_disk","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-04-23T09:42:38Z","updated_at":"2024-04-23T11:05:52Z","closed_at":null,"author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6828","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6828","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6828.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6828.patch","merged_at":null},"body":null,"closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6828\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6828\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6827","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6827\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6827\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6827\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6827","id":2254011833,"node_id":"I_kwDODunzps6GWX25","number":6827,"title":"Loading a remote dataset fails in the last release (v2.19.0)","user":{"login":"zrthxn","id":35369637,"node_id":"MDQ6VXNlcjM1MzY5NjM3","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/35369637?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/zrthxn","html_url":"https:\/\/github.com\/zrthxn","followers_url":"https:\/\/api.github.com\/users\/zrthxn\/followers","following_url":"https:\/\/api.github.com\/users\/zrthxn\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/zrthxn\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/zrthxn\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/zrthxn\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/zrthxn\/orgs","repos_url":"https:\/\/api.github.com\/users\/zrthxn\/repos","events_url":"https:\/\/api.github.com\/users\/zrthxn\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/zrthxn\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-04-19T21:11:58Z","updated_at":"2024-04-19T21:13:42Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"While loading a dataset with multiple splits I get an error saying `Couldn't find file at `\r\n\r\nI am loading the dataset like so, nothing out of the ordinary.\r\nThis dataset needs a token to access it.\r\n```\r\ntoken=\"hf_myhftoken-sdhbdsjgkhbd\"\r\nload_dataset(\"speechcolab\/gigaspeech\", \"test\", cache_dir=f\"gigaspeech\/test\", token=token)\r\n```\r\n\r\nI get the following error\r\n![Screenshot 2024-04-19 at 11 03 07\u202fPM](https:\/\/github.com\/huggingface\/datasets\/assets\/35369637\/8dce757f-08ff-45dd-85b5-890fced7c5bc)\r\n\r\nNow you can see that the URL that it is trying to reach has the JSON object of the dataset split appended to the base URL. I think this may be due to a newly introduced issue.\r\n\r\nI did not have this issue with the previous version of the datasets. Everything was fine for me yesterday and after the release 12 hours ago, this seems to have broken. Also, the dataset in question runs custom code and I checked and there have been no commits to the dataset on Huggingface in 6 months.\r\n\r\n### Steps to reproduce the bug\r\n\r\nSince this happened with one particular dataset for me, I am listing steps to use that dataset.\r\n1. Open https:\/\/huggingface.co\/datasets\/speechcolab\/gigaspeech and fill the form to get access.\r\n2. Create a token on your huggingface account with read access.\r\n3. Run the following line, substituing `` with your token.\r\n```\r\nload_dataset(\"speechcolab\/gigaspeech\", \"test\", cache_dir=f\"gigaspeech\/test\", token=\"\")\r\n```\r\n\r\n### Expected behavior\r\n\r\nBe able to load the dataset in question.\r\n\r\n### Environment info\r\n\r\ndatasets == 2.19.0\r\npython == 3.10\r\nkernel == Linux 6.1.58+","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6827\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6827\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6826","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6826\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6826\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6826\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6826","id":2252445242,"node_id":"PR_kwDODunzps5tJMZh","number":6826,"title":"Set dev version","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-04-19T08:51:42Z","updated_at":"2024-04-19T09:05:25Z","closed_at":"2024-04-19T08:52:14Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6826","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6826","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6826.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6826.patch","merged_at":"2024-04-19T08:52:13Z"},"body":null,"closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6826\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6826\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6825","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6825\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6825\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6825\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6825","id":2252404599,"node_id":"PR_kwDODunzps5tJEMw","number":6825,"title":"Release: 2.19.0","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-04-19T08:29:02Z","updated_at":"2024-05-04T12:23:26Z","closed_at":"2024-04-19T08:44:57Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6825","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6825","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6825.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6825.patch","merged_at":"2024-04-19T08:44:57Z"},"body":null,"closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6825\/reactions","total_count":1,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":1},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6825\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6824","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6824\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6824\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6824\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6824","id":2251076197,"node_id":"I_kwDODunzps6GLLJl","number":6824,"title":"Winogrande does not seem to be compatible with datasets version of 1.18.0","user":{"login":"spliew","id":7878204,"node_id":"MDQ6VXNlcjc4NzgyMDQ=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/7878204?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/spliew","html_url":"https:\/\/github.com\/spliew","followers_url":"https:\/\/api.github.com\/users\/spliew\/followers","following_url":"https:\/\/api.github.com\/users\/spliew\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/spliew\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/spliew\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/spliew\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/spliew\/orgs","repos_url":"https:\/\/api.github.com\/users\/spliew\/repos","events_url":"https:\/\/api.github.com\/users\/spliew\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/spliew\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-04-18T16:11:04Z","updated_at":"2024-04-19T09:53:15Z","closed_at":"2024-04-19T09:52:33Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nI get the following error when simply running `load_dataset('winogrande','winogrande_xl')`.\r\n\r\nI do not have such an issue in the 1.17.0 version.\r\n\r\n```Traceback (most recent call last):\r\n File \"\", line 1, in \r\n File \"\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/load.py\", line 2556, in load_dataset\r\n builder_instance = load_dataset_builder(\r\n File \"\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/load.py\", line 2265, in load_dataset_builder\r\n builder_instance: DatasetBuilder = builder_cls(\r\n File \"\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/builder.py\", line 371, in __init__\r\n self.config, self.config_id = self._create_builder_config(\r\n File \"\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/builder.py\", line 620, in _create_builder_config\r\n builder_config._resolve_data_files(\r\n File \"\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/builder.py\", line 211, in _resolve_data_files\r\n self.data_files = self.data_files.resolve(base_path, download_config)\r\n File \"\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/data_files.py\", line 799, in resolve\r\n out[key] = data_files_patterns_list.resolve(base_path, download_config)\r\n File \"\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/data_files.py\", line 752, in resolve\r\n resolve_pattern(\r\n File \"\/usr\/local\/lib\/python3.10\/dist-packages\/datasets\/data_files.py\", line 393, in resolve_pattern\r\n raise FileNotFoundError(error_msg)\r\nFileNotFoundError: Unable to find 'hf:\/\/datasets\/winogrande@ebf71e3c7b5880d019ecf6099c0b09311b1084f5\/winogrande_xl\/train\/0000.parquet' with any supported extension ['.csv', '.tsv', '.json', '.jsonl', '.parquet', '.geoparquet', '.gpq', '.arrow', '.txt', '.tar', '.blp', '.bmp', '.dib', '.bufr', '.cur', '.pcx', '.dcx', '.dds', '.ps', '.eps', '.fit', '.fits', '.fli', '.flc', '.ftc', '.ftu', '.gbr', '.gif', '.grib', '.h5', '.hdf', '.png', '.apng', '.jp2', '.j2k', '.jpc', '.jpf', '.jpx', '.j2c', '.icns', '.ico', '.im', '.iim', '.tif', '.tiff', '.jfif', '.jpe', '.jpg', '.jpeg', '.mpg', '.mpeg', '.msp', '.pcd', '.pxr', '.pbm', '.pgm', '.ppm', '.pnm', '.psd', '.bw', '.rgb', '.rgba', '.sgi', '.ras', '.tga', '.icb', '.vda', '.vst', '.webp', '.wmf', '.emf', '.xbm', '.xpm', '.BLP', '.BMP', '.DIB', '.BUFR', '.CUR', '.PCX', '.DCX', '.DDS', '.PS', '.EPS', '.FIT', '.FITS', '.FLI', '.FLC', '.FTC', '.FTU', '.GBR', '.GIF', '.GRIB', '.H5', '.HDF', '.PNG', '.APNG', '.JP2', '.J2K', '.JPC', '.JPF', '.JPX', '.J2C', '.ICNS', '.ICO', '.IM', '.IIM', '.TIF', '.TIFF', '.JFIF', '.JPE', '.JPG', '.JPEG', '.MPG', '.MPEG', '.MSP', '.PCD', '.PXR', '.PBM', '.PGM', '.PPM', '.PNM', '.PSD', '.BW', '.RGB', '.RGBA', '.SGI', '.RAS', '.TGA', '.ICB', '.VDA', '.VST', '.WEBP', '.WMF', '.EMF', '.XBM', '.XPM', '.aiff', '.au', '.avr', '.caf', '.flac', '.htk', '.svx', '.mat4', '.mat5', '.mpc2k', '.ogg', '.paf', '.pvf', '.raw', '.rf64', '.sd2', '.sds', '.ircam', '.voc', '.w64', '.wav', '.nist', '.wavex', '.wve', '.xi', '.mp3', '.opus', '.AIFF', '.AU', '.AVR', '.CAF', '.FLAC', '.HTK', '.SVX', '.MAT4', '.MAT5', '.MPC2K', '.OGG', '.PAF', '.PVF', '.RAW', '.RF64', '.SD2', '.SDS', '.IRCAM', '.VOC', '.W64', '.WAV', '.NIST', '.WAVEX', '.WVE', '.XI', '.MP3', '.OPUS', '.zip']```\n\n### Steps to reproduce the bug\n\nfrom datasets import load_dataset\r\ndatasets = load_dataset('winogrande','winogrande_xl')\n\n### Expected behavior\n\n```Downloading data: 100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 2.06M\/2.06M [00:00<00:00, 5.16MB\/s]\r\nDownloading data: 100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 118k\/118k [00:00<00:00, 360kB\/s]\r\nDownloading data: 100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 85.9k\/85.9k [00:00<00:00, 242kB\/s]\r\nGenerating train split: 100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 40398\/40398 [00:00<00:00, 845491.12 examples\/s]\r\nGenerating test split: 100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 1767\/1767 [00:00<00:00, 362501.11 examples\/s]\r\nGenerating validation split: 100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 1267\/1267 [00:00<00:00, 318768.11 examples\/s]```\n\n### Environment info\n\ndatasets version: 1.18.0\r\n","closed_by":{"login":"spliew","id":7878204,"node_id":"MDQ6VXNlcjc4NzgyMDQ=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/7878204?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/spliew","html_url":"https:\/\/github.com\/spliew","followers_url":"https:\/\/api.github.com\/users\/spliew\/followers","following_url":"https:\/\/api.github.com\/users\/spliew\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/spliew\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/spliew\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/spliew\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/spliew\/orgs","repos_url":"https:\/\/api.github.com\/users\/spliew\/repos","events_url":"https:\/\/api.github.com\/users\/spliew\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/spliew\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6824\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6824\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6823","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6823\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6823\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6823\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6823","id":2250775569,"node_id":"I_kwDODunzps6GKBwR","number":6823,"title":"Loading problems of Datasets with a single shard","user":{"login":"andjoer","id":60151338,"node_id":"MDQ6VXNlcjYwMTUxMzM4","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/60151338?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/andjoer","html_url":"https:\/\/github.com\/andjoer","followers_url":"https:\/\/api.github.com\/users\/andjoer\/followers","following_url":"https:\/\/api.github.com\/users\/andjoer\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/andjoer\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/andjoer\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/andjoer\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/andjoer\/orgs","repos_url":"https:\/\/api.github.com\/users\/andjoer\/repos","events_url":"https:\/\/api.github.com\/users\/andjoer\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/andjoer\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-04-18T13:59:00Z","updated_at":"2024-11-25T05:40:09Z","closed_at":null,"author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\r\n\r\nWhen saving a dataset on disk and it has a single shard it is not loaded as when it is saved in multiple shards. I installed the latest version of datasets via pip. \r\n\r\n### Steps to reproduce the bug\r\n\r\nThe code below reproduces the behavior. All works well when the range of the loop is 10000 but it fails when it is 1000.\r\n\r\n```\r\nfrom PIL import Image\r\nimport numpy as np\r\nfrom datasets import Dataset, DatasetDict, load_dataset\r\n\r\n\r\ndef load_image():\r\n # Generate random noise image\r\n noise = np.random.randint(0, 256, (256, 256, 3), dtype=np.uint8) \r\n return Image.fromarray(noise)\r\n\r\ndef create_dataset():\r\n input_images = []\r\n output_images = []\r\n text_prompts = []\r\n \r\n for _ in range(10000): # this is the problematic parameter\r\n input_images.append(load_image())\r\n output_images.append(load_image())\r\n text_prompts.append('test prompt')\r\n\r\n data = {'input_image': input_images, 'output_image': output_images, 'text_prompt': text_prompts}\r\n dataset = Dataset.from_dict(data)\r\n \r\n return DatasetDict({'train': dataset})\r\n\r\ndataset = create_dataset()\r\n\r\nprint('dataset before saving')\r\nprint(dataset)\r\nprint(dataset['train'].column_names)\r\ndataset.save_to_disk('test_ds')\r\nprint('dataset after loading')\r\n\r\n\r\ndataset_loaded = load_dataset('test_ds')\r\nprint(dataset_loaded)\r\nprint(dataset_loaded['train'].column_names)\r\n```\r\n\r\n\r\nThe output for 1000 iterations is: \r\n\r\n```\r\ndataset before saving\r\nDatasetDict({\r\n train: Dataset({\r\n features: ['input_image', 'output_image', 'text_prompt'],\r\n num_rows: 1000\r\n })\r\n})\r\n['input_image', 'output_image', 'text_prompt']\r\nSaving the dataset (1\/1 shards): 100%|\u2588| 1000\/1000 [00:00<00:00, 5156.00 example\r\ndataset after loading\r\nGenerating train split: 1 examples [00:00, 230.52 examples\/s]\r\nDatasetDict({\r\n train: Dataset({\r\n features: ['_data_files', '_fingerprint', '_format_columns', '_format_kwargs', '_format_type', '_output_all_columns', '_split'],\r\n num_rows: 1\r\n })\r\n})\r\n['_data_files', '_fingerprint', '_format_columns', '_format_kwargs', '_format_type', '_output_all_columns', '_split']\r\n```\r\n\r\nFor 10000 iteration (8 shards) it is correct:\r\n\r\n```\r\ndataset before saving\r\nDatasetDict({\r\n train: Dataset({\r\n features: ['input_image', 'output_image', 'text_prompt'],\r\n num_rows: 10000\r\n })\r\n})\r\n['input_image', 'output_image', 'text_prompt']\r\nSaving the dataset (8\/8 shards): 100%|\u2588| 10000\/10000 [00:01<00:00, 6237.68 examp\r\ndataset after loading\r\nGenerating train split: 10000 examples [00:00, 10773.16 examples\/s]\r\nDatasetDict({\r\n train: Dataset({\r\n features: ['input_image', 'output_image', 'text_prompt'],\r\n num_rows: 10000\r\n })\r\n})\r\n['input_image', 'output_image', 'text_prompt']\r\n```\r\n\r\n### Expected behavior\r\n\r\nThe procedure should work for a dataset with one shrad the same as for one with multiple shards\r\n\r\n### Environment info\r\n\r\n\r\n- `datasets` version: 2.18.0\r\n- Platform: macOS-14.1-arm64-arm-64bit\r\n- Python version: 3.11.8\r\n- `huggingface_hub` version: 0.22.2\r\n- PyArrow version: 15.0.2\r\n- Pandas version: 2.2.2\r\n- `fsspec` version: 2024.2.0\r\n\r\nEdit: I looked in the source code of load.py in datasets. I should have used \"load_from_disk\" and it indeed works that way. But ideally load_dataset would have raisen an error the same way as if I call a path: \r\n\r\n```\r\n if Path(path, config.DATASET_STATE_JSON_FILENAME).exists():\r\n raise ValueError(\r\n \"You are trying to load a dataset that was saved using `save_to_disk`. \"\r\n \"Please use `load_from_disk` instead.\"\r\n )\r\n```\r\nnevertheless I find it interesting that it works just well and without a warning if there are multiple shards. ","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6823\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6823\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6822","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6822\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6822\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6822\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6822","id":2250316258,"node_id":"PR_kwDODunzps5tB8aD","number":6822,"title":"Fix parquet export infos","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-04-18T10:21:41Z","updated_at":"2024-04-18T11:15:41Z","closed_at":"2024-04-18T11:09:13Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6822","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6822","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6822.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6822.patch","merged_at":"2024-04-18T11:09:13Z"},"body":"Don't use the parquet export infos when USE_PARQUET_EXPORT is False.\r\n\r\nOtherwise the `datasets-server` might reuse erroneous data when re-running a job\r\n\r\nthis follows https:\/\/github.com\/huggingface\/datasets\/pull\/6714","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6822\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6822\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6820","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6820\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6820\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6820\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6820","id":2248471673,"node_id":"PR_kwDODunzps5s7sgy","number":6820,"title":"Allow deleting a subset\/config from a no-script dataset","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2024-04-17T14:41:12Z","updated_at":"2024-05-02T07:31:03Z","closed_at":"2024-04-30T09:44:24Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6820","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6820","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6820.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6820.patch","merged_at":"2024-04-30T09:44:24Z"},"body":"TODO:\r\n- [x] Add docs\r\n- [x] Delete token arg from CLI example\r\n - See: #6839\r\n\r\nClose #6810.","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6820\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6820\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6819","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6819\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6819\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6819\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6819","id":2248043797,"node_id":"I_kwDODunzps6F_m0V","number":6819,"title":"Give more details in `DataFilesNotFoundError` when getting the config names","user":{"login":"severo","id":1676121,"node_id":"MDQ6VXNlcjE2NzYxMjE=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/1676121?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/severo","html_url":"https:\/\/github.com\/severo","followers_url":"https:\/\/api.github.com\/users\/severo\/followers","following_url":"https:\/\/api.github.com\/users\/severo\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/severo\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/severo\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/severo\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/severo\/orgs","repos_url":"https:\/\/api.github.com\/users\/severo\/repos","events_url":"https:\/\/api.github.com\/users\/severo\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/severo\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2024-04-17T11:19:47Z","updated_at":"2024-04-17T11:19:47Z","closed_at":null,"author_association":"COLLABORATOR","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Feature request\n\nAfter https:\/\/huggingface.co\/datasets\/cis-lmu\/Glot500\/commit\/39060e01272ff228cc0ce1d31ae53789cacae8c3, the dataset viewer gives the following error:\r\n\r\n```\r\n{\r\n \"error\": \"Cannot get the config names for the dataset.\",\r\n \"cause_exception\": \"DataFilesNotFoundError\",\r\n \"cause_message\": \"No (supported) data files found in cis-lmu\/Glot500\",\r\n \"cause_traceback\": [\r\n \"Traceback (most recent call last):\\n\",\r\n \" File \\\"\/src\/services\/worker\/src\/worker\/job_runners\/dataset\/config_names.py\\\", line 73, in compute_config_names_response\\n config_names = get_dataset_config_names(\\n\",\r\n \" File \\\"\/src\/services\/worker\/.venv\/lib\/python3.9\/site-packages\/datasets\/inspect.py\\\", line 347, in get_dataset_config_names\\n dataset_module = dataset_module_factory(\\n\",\r\n \" File \\\"\/src\/services\/worker\/.venv\/lib\/python3.9\/site-packages\/datasets\/load.py\\\", line 1873, in dataset_module_factory\\n raise e1 from None\\n\",\r\n \" File \\\"\/src\/services\/worker\/.venv\/lib\/python3.9\/site-packages\/datasets\/load.py\\\", line 1854, in dataset_module_factory\\n return HubDatasetModuleFactoryWithoutScript(\\n\",\r\n \" File \\\"\/src\/services\/worker\/.venv\/lib\/python3.9\/site-packages\/datasets\/load.py\\\", line 1245, in get_module\\n module_name, default_builder_kwargs = infer_module_for_data_files(\\n\",\r\n \" File \\\"\/src\/services\/worker\/.venv\/lib\/python3.9\/site-packages\/datasets\/load.py\\\", line 595, in infer_module_for_data_files\\n raise DataFilesNotFoundError(\\\"No (supported) data files found\\\" + (f\\\" in {path}\\\" if path else \\\"\\\"))\\n\",\r\n \"datasets.exceptions.DataFilesNotFoundError: No (supported) data files found in cis-lmu\/Glot500\\n\"\r\n ]\r\n}\r\n```\r\n\r\nbecause the deleted files were still listed in the README, see https:\/\/huggingface.co\/datasets\/cis-lmu\/Glot500\/discussions\/4\r\n\r\nIdeally, the error message would include the name of the first configuration with missing files, to help the user understand how to fix it. Here, it would tell that configuration `aze_Ethi` has no supported data files, instead of telling that the `cis-lmu\/Glot500` *dataset* has no supported data files (which is not true).\n\n### Motivation\n\nGiving more detail in the error would help the Datasets Hub users to debug why the dataset viewer does not work.\n\n### Your contribution\n\nNot sure how to best fix this, as there are a lot of loops on the dataset configs in the traceback methods. \"maybe\" it would be easier to handle if the code was completely isolating each config.","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6819\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6819\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6817","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6817\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6817\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6817\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6817","id":2246578480,"node_id":"PR_kwDODunzps5s1RAN","number":6817,"title":"Support indexable objects in `Dataset.__getitem__`","user":{"login":"mariosasko","id":47462742,"node_id":"MDQ6VXNlcjQ3NDYyNzQy","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/47462742?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/mariosasko","html_url":"https:\/\/github.com\/mariosasko","followers_url":"https:\/\/api.github.com\/users\/mariosasko\/followers","following_url":"https:\/\/api.github.com\/users\/mariosasko\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/mariosasko\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/mariosasko\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/mariosasko\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/mariosasko\/orgs","repos_url":"https:\/\/api.github.com\/users\/mariosasko\/repos","events_url":"https:\/\/api.github.com\/users\/mariosasko\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/mariosasko\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-04-16T17:41:27Z","updated_at":"2024-04-16T18:27:44Z","closed_at":"2024-04-16T18:17:29Z","author_association":"COLLABORATOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6817","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6817","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6817.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6817.patch","merged_at":"2024-04-16T18:17:29Z"},"body":"As discussed in https:\/\/github.com\/huggingface\/datasets\/pull\/6816, this is needed to support objects that implement `__index__` such as `np.int64` in `Dataset.__getitem__`.","closed_by":{"login":"mariosasko","id":47462742,"node_id":"MDQ6VXNlcjQ3NDYyNzQy","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/47462742?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/mariosasko","html_url":"https:\/\/github.com\/mariosasko","followers_url":"https:\/\/api.github.com\/users\/mariosasko\/followers","following_url":"https:\/\/api.github.com\/users\/mariosasko\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/mariosasko\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/mariosasko\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/mariosasko\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/mariosasko\/orgs","repos_url":"https:\/\/api.github.com\/users\/mariosasko\/repos","events_url":"https:\/\/api.github.com\/users\/mariosasko\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/mariosasko\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6817\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6817\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6816","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6816\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6816\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6816\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6816","id":2246264911,"node_id":"PR_kwDODunzps5s0MYO","number":6816,"title":"Improve typing of Dataset.search, matching definition","user":{"login":"Dref360","id":8976546,"node_id":"MDQ6VXNlcjg5NzY1NDY=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8976546?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Dref360","html_url":"https:\/\/github.com\/Dref360","followers_url":"https:\/\/api.github.com\/users\/Dref360\/followers","following_url":"https:\/\/api.github.com\/users\/Dref360\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Dref360\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Dref360\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Dref360\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Dref360\/orgs","repos_url":"https:\/\/api.github.com\/users\/Dref360\/repos","events_url":"https:\/\/api.github.com\/users\/Dref360\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Dref360\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2024-04-16T14:53:39Z","updated_at":"2024-04-16T15:54:10Z","closed_at":"2024-04-16T15:54:10Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6816","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6816","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6816.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6816.patch","merged_at":null},"body":"Previously, the output of `score, indices = Dataset.search(...)` would be numpy arrays.\r\n\r\nThe definition in `SearchResult` is a `List[int]` so this PR now matched the expected type.\r\n\r\nThe previous behavior is a bit annoying as `Dataset.__getitem__` doesn't support `numpy.int64` which forced me to convert `indices` to int eg:\r\n\r\n```python\r\nscore, indices = ds.search(...)\r\nitem = ds[int(indices[0])]\r\n```","closed_by":{"login":"Dref360","id":8976546,"node_id":"MDQ6VXNlcjg5NzY1NDY=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8976546?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Dref360","html_url":"https:\/\/github.com\/Dref360","followers_url":"https:\/\/api.github.com\/users\/Dref360\/followers","following_url":"https:\/\/api.github.com\/users\/Dref360\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Dref360\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Dref360\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Dref360\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Dref360\/orgs","repos_url":"https:\/\/api.github.com\/users\/Dref360\/repos","events_url":"https:\/\/api.github.com\/users\/Dref360\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Dref360\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6816\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6816\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6815","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6815\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6815\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6815\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6815","id":2246197070,"node_id":"PR_kwDODunzps5sz9eC","number":6815,"title":"Remove `os.path.relpath` in `resolve_patterns`","user":{"login":"mariosasko","id":47462742,"node_id":"MDQ6VXNlcjQ3NDYyNzQy","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/47462742?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/mariosasko","html_url":"https:\/\/github.com\/mariosasko","followers_url":"https:\/\/api.github.com\/users\/mariosasko\/followers","following_url":"https:\/\/api.github.com\/users\/mariosasko\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/mariosasko\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/mariosasko\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/mariosasko\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/mariosasko\/orgs","repos_url":"https:\/\/api.github.com\/users\/mariosasko\/repos","events_url":"https:\/\/api.github.com\/users\/mariosasko\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/mariosasko\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-04-16T14:23:13Z","updated_at":"2024-04-16T16:06:48Z","closed_at":"2024-04-16T15:58:22Z","author_association":"COLLABORATOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6815","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6815","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6815.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6815.patch","merged_at":"2024-04-16T15:58:22Z"},"body":"... to save a few seconds when resolving repos with many data files.","closed_by":{"login":"mariosasko","id":47462742,"node_id":"MDQ6VXNlcjQ3NDYyNzQy","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/47462742?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/mariosasko","html_url":"https:\/\/github.com\/mariosasko","followers_url":"https:\/\/api.github.com\/users\/mariosasko\/followers","following_url":"https:\/\/api.github.com\/users\/mariosasko\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/mariosasko\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/mariosasko\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/mariosasko\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/mariosasko\/orgs","repos_url":"https:\/\/api.github.com\/users\/mariosasko\/repos","events_url":"https:\/\/api.github.com\/users\/mariosasko\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/mariosasko\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6815\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6815\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6814","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6814\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6814\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6814\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6814","id":2245857902,"node_id":"I_kwDODunzps6F3RJu","number":6814,"title":"`map` with `num_proc` > 1 leads to OOM","user":{"login":"bhavitvyamalik","id":19718818,"node_id":"MDQ6VXNlcjE5NzE4ODE4","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/19718818?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/bhavitvyamalik","html_url":"https:\/\/github.com\/bhavitvyamalik","followers_url":"https:\/\/api.github.com\/users\/bhavitvyamalik\/followers","following_url":"https:\/\/api.github.com\/users\/bhavitvyamalik\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/bhavitvyamalik\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/bhavitvyamalik\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/bhavitvyamalik\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/bhavitvyamalik\/orgs","repos_url":"https:\/\/api.github.com\/users\/bhavitvyamalik\/repos","events_url":"https:\/\/api.github.com\/users\/bhavitvyamalik\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/bhavitvyamalik\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-04-16T11:56:03Z","updated_at":"2024-04-19T11:53:41Z","closed_at":null,"author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nWhen running `map` on parquet dataset loaded from local machine, the RAM usage increases linearly eventually leading to OOM. I was wondering if I should I save the `cache_file` after every n steps in order to prevent this?\n\n### Steps to reproduce the bug\n\n\r\n\r\n```\r\nds = load_dataset(\"parquet\", data_files=dataset_path, split=\"train\")\r\nds = ds.shard(num_shards=4, index=0)\r\n\r\nds = ds.cast_column(\"audio\", datasets.features.Audio(sampling_rate=16_000))\r\nds = ds.map(prepare_dataset,\r\n num_proc=32,\r\n writer_batch_size=1000,\r\n keep_in_memory=False,\r\n desc=\"preprocess dataset\")\r\n```\r\n\r\n```\r\ndef prepare_dataset(batch):\r\n # load audio\r\n sample = batch[\"audio\"]\r\n\r\n inputs = feature_extractor(sample[\"array\"], sampling_rate=16000)\r\n batch[\"input_values\"] = inputs.input_values[0]\r\n batch[\"input_length\"] = len(sample[\"array\"].squeeze())\r\n\r\n return batch\r\n```\n\n### Expected behavior\n\nIt shouldn't run into OOM problem.\n\n### Environment info\n\n- `datasets` version: 2.18.0\r\n- Platform: Linux-5.4.0-91-generic-x86_64-with-glibc2.17\r\n- Python version: 3.8.19\r\n- `huggingface_hub` version: 0.22.2\r\n- PyArrow version: 15.0.2\r\n- Pandas version: 2.0.3\r\n- `fsspec` version: 2024.2.0","closed_by":null,"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6814\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6814\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6813","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6813\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6813\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6813\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6813","id":2245626870,"node_id":"PR_kwDODunzps5sx-9V","number":6813,"title":"Add Dataset.take and Dataset.skip","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-04-16T09:53:42Z","updated_at":"2024-04-16T14:12:14Z","closed_at":"2024-04-16T14:06:07Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6813","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6813","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6813.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6813.patch","merged_at":"2024-04-16T14:06:07Z"},"body":"...to be aligned with IterableDataset.take and IterableDataset.skip","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6813\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6813\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6812","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6812\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6812\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6812\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6812","id":2244898824,"node_id":"PR_kwDODunzps5svgoq","number":6812,"title":"Run CI","user":{"login":"charliermarsh","id":1309177,"node_id":"MDQ6VXNlcjEzMDkxNzc=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/1309177?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/charliermarsh","html_url":"https:\/\/github.com\/charliermarsh","followers_url":"https:\/\/api.github.com\/users\/charliermarsh\/followers","following_url":"https:\/\/api.github.com\/users\/charliermarsh\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/charliermarsh\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/charliermarsh\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/charliermarsh\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/charliermarsh\/orgs","repos_url":"https:\/\/api.github.com\/users\/charliermarsh\/repos","events_url":"https:\/\/api.github.com\/users\/charliermarsh\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/charliermarsh\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2024-04-16T01:12:36Z","updated_at":"2024-04-16T01:14:16Z","closed_at":"2024-04-16T01:12:41Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6812","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6812","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6812.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6812.patch","merged_at":null},"body":null,"closed_by":{"login":"charliermarsh","id":1309177,"node_id":"MDQ6VXNlcjEzMDkxNzc=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/1309177?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/charliermarsh","html_url":"https:\/\/github.com\/charliermarsh","followers_url":"https:\/\/api.github.com\/users\/charliermarsh\/followers","following_url":"https:\/\/api.github.com\/users\/charliermarsh\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/charliermarsh\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/charliermarsh\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/charliermarsh\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/charliermarsh\/orgs","repos_url":"https:\/\/api.github.com\/users\/charliermarsh\/repos","events_url":"https:\/\/api.github.com\/users\/charliermarsh\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/charliermarsh\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6812\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6812\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6811","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6811\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6811\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6811\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6811","id":2243656096,"node_id":"PR_kwDODunzps5srOtR","number":6811,"title":"add allow_primitive_to_str and allow_decimal_to_str instead of allow_number_to_str","user":{"login":"Modexus","id":37351874,"node_id":"MDQ6VXNlcjM3MzUxODc0","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/37351874?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Modexus","html_url":"https:\/\/github.com\/Modexus","followers_url":"https:\/\/api.github.com\/users\/Modexus\/followers","following_url":"https:\/\/api.github.com\/users\/Modexus\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Modexus\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Modexus\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Modexus\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Modexus\/orgs","repos_url":"https:\/\/api.github.com\/users\/Modexus\/repos","events_url":"https:\/\/api.github.com\/users\/Modexus\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Modexus\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2024-04-15T13:14:38Z","updated_at":"2024-07-03T14:59:42Z","closed_at":"2024-04-16T17:03:17Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6811","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6811","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6811.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6811.patch","merged_at":"2024-04-16T17:03:17Z"},"body":"Fix #6805","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6811\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6811\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6810","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6810\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6810\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6810\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6810","id":2242968745,"node_id":"I_kwDODunzps6FsPyp","number":6810,"title":"Allow deleting a subset\/config from a no-script dataset","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"closed","locked":false,"assignee":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":3,"created_at":"2024-04-15T07:53:26Z","updated_at":"2025-01-11T18:40:40Z","closed_at":"2024-04-30T09:44:25Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"As proposed by @BramVanroy, it would be neat to have this functionality through the API.","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6810\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6810\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6809","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6809\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6809\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6809\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6809","id":2242956297,"node_id":"PR_kwDODunzps5so0e2","number":6809,"title":"Make convert_to_parquet CLI command create script branch","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2024-04-15T07:47:26Z","updated_at":"2024-04-17T08:44:26Z","closed_at":"2024-04-17T08:38:18Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6809","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6809","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6809.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6809.patch","merged_at":"2024-04-17T08:38:18Z"},"body":"Make convert_to_parquet CLI command create a \"script\" branch and keep the script file on it.\r\n\r\nThis PR proposes the simplest UX approach: whenever `--revision` is not explicitly passed (i.e., when the script is in the main branch), try to create a \"script\" branch from the \"main\" branch; if the \"script\" branch exists already, then do nothing.\r\n\r\nFollow-up of:\r\n- #6795\r\n\r\nClose #6808.\r\n\r\nCC: @severo ","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6809\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6809\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6808","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6808\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6808\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6808\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6808","id":2242843611,"node_id":"I_kwDODunzps6FrxPb","number":6808,"title":"Make convert_to_parquet CLI command create script branch","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1935892871,"node_id":"MDU6TGFiZWwxOTM1ODkyODcx","url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/labels\/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"closed","locked":false,"assignee":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"assignees":[{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":0,"created_at":"2024-04-15T06:46:07Z","updated_at":"2024-04-17T08:38:19Z","closed_at":"2024-04-17T08:38:19Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"As proposed by @severo, maybe we should add this functionality as well to the CLI command to convert a script-dataset to Parquet. See: https:\/\/github.com\/huggingface\/datasets\/pull\/6795#discussion_r1562819168\r\n> When providing support, we sometimes suggest that users store their script in a script branch. What do you think of this alternative to deleting the files?","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6808\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6808\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6806","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6806\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6806\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6806\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6806","id":2239435074,"node_id":"PR_kwDODunzps5sc8Mb","number":6806,"title":"Fix hf-internal-testing\/dataset_with_script commit SHA in CI test","user":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-04-12T08:47:50Z","updated_at":"2024-04-12T09:08:23Z","closed_at":"2024-04-12T09:02:12Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6806","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6806","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6806.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6806.patch","merged_at":"2024-04-12T09:02:12Z"},"body":"Fix test using latest commit SHA in hf-internal-testing\/dataset_with_script dataset: https:\/\/huggingface.co\/datasets\/hf-internal-testing\/dataset_with_script\/commits\/refs%2Fconvert%2Fparquet\r\n\r\nFix #6796.","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6806\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6806\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6805","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6805\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6805\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6805\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6805","id":2239034951,"node_id":"I_kwDODunzps6FdPZH","number":6805,"title":"Batched mapping of existing string column casts boolean to string","user":{"login":"starmpcc","id":46891489,"node_id":"MDQ6VXNlcjQ2ODkxNDg5","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/46891489?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/starmpcc","html_url":"https:\/\/github.com\/starmpcc","followers_url":"https:\/\/api.github.com\/users\/starmpcc\/followers","following_url":"https:\/\/api.github.com\/users\/starmpcc\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/starmpcc\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/starmpcc\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/starmpcc\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/starmpcc\/orgs","repos_url":"https:\/\/api.github.com\/users\/starmpcc\/repos","events_url":"https:\/\/api.github.com\/users\/starmpcc\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/starmpcc\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2024-04-12T04:21:41Z","updated_at":"2024-07-03T15:00:07Z","closed_at":"2024-07-03T15:00:07Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nLet the dataset contain a column named 'a', which is of the string type.\r\nIf 'a' is converted to a boolean using batched mapping, the mapper automatically casts the boolean to a string (e.g., True -> 'true').\r\nIt only happens when the original column and the mapped column name are identical.\r\n\r\nThank you!\n\n### Steps to reproduce the bug\n\n```python\r\nfrom datasets import Dataset\r\n\r\ndset = Dataset.from_dict({'a': ['11', '22']})\r\ndset = dset.map(lambda x: {'a': [True for _ in x['a']]}, batched=True)\r\nprint(dset['a'])\r\n```\r\n```\r\n> ['true', 'true']\r\n```\n\n### Expected behavior\n\n[True, True]\n\n### Environment info\n\n- `datasets` version: 2.18.0\r\n- Platform: Linux-5.4.0-148-generic-x86_64-with-glibc2.31\r\n- Python version: 3.10.13\r\n- `huggingface_hub` version: 0.21.4\r\n- PyArrow version: 15.0.2\r\n- Pandas version: 2.2.1\r\n- `fsspec` version: 2023.12.2","closed_by":{"login":"albertvillanova","id":8515462,"node_id":"MDQ6VXNlcjg1MTU0NjI=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8515462?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/albertvillanova","html_url":"https:\/\/github.com\/albertvillanova","followers_url":"https:\/\/api.github.com\/users\/albertvillanova\/followers","following_url":"https:\/\/api.github.com\/users\/albertvillanova\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/albertvillanova\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/albertvillanova\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/albertvillanova\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/albertvillanova\/orgs","repos_url":"https:\/\/api.github.com\/users\/albertvillanova\/repos","events_url":"https:\/\/api.github.com\/users\/albertvillanova\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/albertvillanova\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6805\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6805\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6804","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6804\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6804\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6804\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6804","id":2238035124,"node_id":"PR_kwDODunzps5sYJFF","number":6804,"title":"Fix --repo-type order in cli upload docs","user":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-04-11T15:39:09Z","updated_at":"2024-04-11T16:24:57Z","closed_at":"2024-04-11T16:18:47Z","author_association":"MEMBER","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6804","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6804","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6804.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6804.patch","merged_at":"2024-04-11T16:18:47Z"},"body":null,"closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6804\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6804\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6803","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6803\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6803\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6803\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6803","id":2237933090,"node_id":"PR_kwDODunzps5sXyct","number":6803,"title":"#6791 Improve type checking around FAISS","user":{"login":"Dref360","id":8976546,"node_id":"MDQ6VXNlcjg5NzY1NDY=","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/8976546?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Dref360","html_url":"https:\/\/github.com\/Dref360","followers_url":"https:\/\/api.github.com\/users\/Dref360\/followers","following_url":"https:\/\/api.github.com\/users\/Dref360\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Dref360\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Dref360\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Dref360\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Dref360\/orgs","repos_url":"https:\/\/api.github.com\/users\/Dref360\/repos","events_url":"https:\/\/api.github.com\/users\/Dref360\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Dref360\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2024-04-11T14:54:30Z","updated_at":"2024-04-11T15:44:09Z","closed_at":"2024-04-11T15:38:04Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6803","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6803","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6803.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6803.patch","merged_at":"2024-04-11T15:38:04Z"},"body":"Fixes #6791 \r\n\r\nSmall PR to raise a better error when a dataset is not embedded properly.","closed_by":{"login":"mariosasko","id":47462742,"node_id":"MDQ6VXNlcjQ3NDYyNzQy","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/47462742?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/mariosasko","html_url":"https:\/\/github.com\/mariosasko","followers_url":"https:\/\/api.github.com\/users\/mariosasko\/followers","following_url":"https:\/\/api.github.com\/users\/mariosasko\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/mariosasko\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/mariosasko\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/mariosasko\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/mariosasko\/orgs","repos_url":"https:\/\/api.github.com\/users\/mariosasko\/repos","events_url":"https:\/\/api.github.com\/users\/mariosasko\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/mariosasko\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6803\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6803\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6802","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6802\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6802\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6802\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6802","id":2237365489,"node_id":"PR_kwDODunzps5sV0m8","number":6802,"title":"Fix typo in docs (upload CLI)","user":{"login":"Wauplin","id":11801849,"node_id":"MDQ6VXNlcjExODAxODQ5","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/11801849?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/Wauplin","html_url":"https:\/\/github.com\/Wauplin","followers_url":"https:\/\/api.github.com\/users\/Wauplin\/followers","following_url":"https:\/\/api.github.com\/users\/Wauplin\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/Wauplin\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/Wauplin\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/Wauplin\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/Wauplin\/orgs","repos_url":"https:\/\/api.github.com\/users\/Wauplin\/repos","events_url":"https:\/\/api.github.com\/users\/Wauplin\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/Wauplin\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2024-04-11T10:05:05Z","updated_at":"2024-04-11T16:19:00Z","closed_at":"2024-04-11T13:19:43Z","author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/pulls\/6802","html_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6802","diff_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6802.diff","patch_url":"https:\/\/github.com\/huggingface\/datasets\/pull\/6802.patch","merged_at":"2024-04-11T13:19:43Z"},"body":"Related to https:\/\/huggingface.slack.com\/archives\/C04RG8YRVB8\/p1712643948574129 (interal)\r\n\r\nPositional args must be placed before optional args.\r\n\r\nFeel free to merge whenever it's ready.","closed_by":{"login":"lhoestq","id":42851186,"node_id":"MDQ6VXNlcjQyODUxMTg2","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/42851186?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/lhoestq","html_url":"https:\/\/github.com\/lhoestq","followers_url":"https:\/\/api.github.com\/users\/lhoestq\/followers","following_url":"https:\/\/api.github.com\/users\/lhoestq\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/lhoestq\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/lhoestq\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/lhoestq\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/lhoestq\/orgs","repos_url":"https:\/\/api.github.com\/users\/lhoestq\/repos","events_url":"https:\/\/api.github.com\/users\/lhoestq\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/lhoestq\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6802\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6802\/timeline","performed_via_github_app":null,"state_reason":null,"sub_issues_summary":null} {"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6801","repository_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets","labels_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6801\/labels{\/name}","comments_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6801\/comments","events_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6801\/events","html_url":"https:\/\/github.com\/huggingface\/datasets\/issues\/6801","id":2236911556,"node_id":"I_kwDODunzps6FVI_E","number":6801,"title":"got fileNotFound","user":{"login":"laoniandisko","id":93729155,"node_id":"U_kgDOBZYxgw","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/93729155?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/laoniandisko","html_url":"https:\/\/github.com\/laoniandisko","followers_url":"https:\/\/api.github.com\/users\/laoniandisko\/followers","following_url":"https:\/\/api.github.com\/users\/laoniandisko\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/laoniandisko\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/laoniandisko\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/laoniandisko\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/laoniandisko\/orgs","repos_url":"https:\/\/api.github.com\/users\/laoniandisko\/repos","events_url":"https:\/\/api.github.com\/users\/laoniandisko\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/laoniandisko\/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2024-04-11T04:57:41Z","updated_at":"2024-04-12T16:47:43Z","closed_at":"2024-04-12T16:47:43Z","author_association":"NONE","type":null,"active_lock_reason":null,"draft":null,"pull_request":null,"body":"### Describe the bug\n\nWhen I use load_dataset to load the nyanko7\/danbooru2023 data set, the cache is read in the form of a symlink. There may be a problem with the arrow_dataset initialization process and I get FileNotFoundError: [Errno 2] No such file or directory: '2945000.jpg'\n\n### Steps to reproduce the bug\n\n#code show as below\r\nfrom datasets import load_dataset\r\ndata = load_dataset(\"nyanko7\/danbooru2023\",cache_dir=)\r\ndata[\"train\"][0]\n\n### Expected behavior\n\nI should get this result:\r\n{'image': , 'label': 0}\n\n### Environment info\n\ndatasets==2.12.0\r\npython==3.10.14\r\n","closed_by":{"login":"mariosasko","id":47462742,"node_id":"MDQ6VXNlcjQ3NDYyNzQy","avatar_url":"https:\/\/avatars.githubusercontent.com\/u\/47462742?v=4","gravatar_id":"","url":"https:\/\/api.github.com\/users\/mariosasko","html_url":"https:\/\/github.com\/mariosasko","followers_url":"https:\/\/api.github.com\/users\/mariosasko\/followers","following_url":"https:\/\/api.github.com\/users\/mariosasko\/following{\/other_user}","gists_url":"https:\/\/api.github.com\/users\/mariosasko\/gists{\/gist_id}","starred_url":"https:\/\/api.github.com\/users\/mariosasko\/starred{\/owner}{\/repo}","subscriptions_url":"https:\/\/api.github.com\/users\/mariosasko\/subscriptions","organizations_url":"https:\/\/api.github.com\/users\/mariosasko\/orgs","repos_url":"https:\/\/api.github.com\/users\/mariosasko\/repos","events_url":"https:\/\/api.github.com\/users\/mariosasko\/events{\/privacy}","received_events_url":"https:\/\/api.github.com\/users\/mariosasko\/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6801\/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https:\/\/api.github.com\/repos\/huggingface\/datasets\/issues\/6801\/timeline","performed_via_github_app":null,"state_reason":"completed","sub_issues_summary":{"total":0,"completed":0,"percent_completed":0}}