Older datasets throwing safety errors with 2.21.0
NONE
I am also getting this error with this dataset: https://huggingface.co/datasets/google/IFEval
2024-09-06T16:28:25Z
https://github.com/huggingface/datasets/issues/7141#issuecomment-2334417423
https://api.github.com/repos/huggingface/datasets/issues/7141
IC_kwDODunzps6LJGIP
https://api.github.com/repos/huggingface/datasets/issues/comments/2334417423/reactions
2024-09-06T16:28:25Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2334417423
https://avatars.githubusercontent.com/u/47084919?v=4
https://api.github.com/users/adil-a/events{/privacy}
https://api.github.com/users/adil-a/followers
https://api.github.com/users/adil-a/following{/other_user}
https://api.github.com/users/adil-a/gists{/gist_id}
https://github.com/adil-a
adil-a
MDQ6VXNlcjQ3MDg0OTE5
https://api.github.com/users/adil-a/orgs
https://api.github.com/users/adil-a/received_events
https://api.github.com/users/adil-a/repos
https://api.github.com/users/adil-a/starred{/owner}{/repo}
https://api.github.com/users/adil-a/subscriptions
User
https://api.github.com/users/adil-a
public
NONE
Me too, didn't have this issue few hours ago.
2024-09-06T16:45:22Z
https://github.com/huggingface/datasets/issues/7141#issuecomment-2334444527
https://api.github.com/repos/huggingface/datasets/issues/7141
IC_kwDODunzps6LJMvv
https://api.github.com/repos/huggingface/datasets/issues/comments/2334444527/reactions
2024-09-06T16:45:22Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2334444527
https://avatars.githubusercontent.com/u/11445647?v=4
https://api.github.com/users/adrianb92/events{/privacy}
https://api.github.com/users/adrianb92/followers
https://api.github.com/users/adrianb92/following{/other_user}
https://api.github.com/users/adrianb92/gists{/gist_id}
https://github.com/adrianb92
adrianb92
MDQ6VXNlcjExNDQ1NjQ3
https://api.github.com/users/adrianb92/orgs
https://api.github.com/users/adrianb92/received_events
https://api.github.com/users/adrianb92/repos
https://api.github.com/users/adrianb92/starred{/owner}{/repo}
https://api.github.com/users/adrianb92/subscriptions
User
https://api.github.com/users/adrianb92
public
NONE
same observation. I even downgraded `datasets==2.20.0` and `huggingface_hub==0.23.5` leading me to believe it's an issue on the server.

any known workarounds?

2024-09-06T16:46:59Z
https://github.com/huggingface/datasets/issues/7141#issuecomment-2334447148
https://api.github.com/repos/huggingface/datasets/issues/7141
IC_kwDODunzps6LJNYs
https://api.github.com/repos/huggingface/datasets/issues/comments/2334447148/reactions
2024-09-06T16:46:59Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2334447148
https://avatars.githubusercontent.com/u/23384483?v=4
https://api.github.com/users/Vipitis/events{/privacy}
https://api.github.com/users/Vipitis/followers
https://api.github.com/users/Vipitis/following{/other_user}
https://api.github.com/users/Vipitis/gists{/gist_id}
https://github.com/Vipitis
Vipitis
MDQ6VXNlcjIzMzg0NDgz
https://api.github.com/users/Vipitis/orgs
https://api.github.com/users/Vipitis/received_events
https://api.github.com/users/Vipitis/repos
https://api.github.com/users/Vipitis/starred{/owner}{/repo}
https://api.github.com/users/Vipitis/subscriptions
User
https://api.github.com/users/Vipitis
public
NONE
Not a good idea, but commenting out the whole security block at `/usr/local/lib/python3.10/dist-packages/huggingface_hub/hf_api.py` is a temporary workaround:

```
        #security = kwargs.pop("security", None)
        #if security is not None:
        #    security = BlobSecurityInfo(
        #        safe=security["safe"], av_scan=security["avScan"], pickle_import_scan=security["pickleImportScan"]
        #    )
        #self.security = security
```

2024-09-06T16:47:53Z
https://github.com/huggingface/datasets/issues/7141#issuecomment-2334448490
https://api.github.com/repos/huggingface/datasets/issues/7141
IC_kwDODunzps6LJNtq
https://api.github.com/repos/huggingface/datasets/issues/comments/2334448490/reactions
2024-09-06T16:56:07Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2334448490
https://avatars.githubusercontent.com/u/1050316?v=4
https://api.github.com/users/alvations/events{/privacy}
https://api.github.com/users/alvations/followers
https://api.github.com/users/alvations/following{/other_user}
https://api.github.com/users/alvations/gists{/gist_id}
https://github.com/alvations
alvations
MDQ6VXNlcjEwNTAzMTY=
https://api.github.com/users/alvations/orgs
https://api.github.com/users/alvations/received_events
https://api.github.com/users/alvations/repos
https://api.github.com/users/alvations/starred{/owner}{/repo}
https://api.github.com/users/alvations/subscriptions
User
https://api.github.com/users/alvations
public
NONE
Uploading a dataset  to Huggingface also results in the following error in the Dataset Preview:
```
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
'safe'
Error code:   UnexpectedError
Need help to make the dataset viewer work? Make sure to review [how to configure the dataset viewer](link1), and [open a discussion](link2) for direct support.
```
I used jsonl format for the dataset in this case. Same exact dataset worked previously.
2024-09-06T16:59:13Z
https://github.com/huggingface/datasets/issues/7141#issuecomment-2334465255
https://api.github.com/repos/huggingface/datasets/issues/7141
IC_kwDODunzps6LJRzn
https://api.github.com/repos/huggingface/datasets/issues/comments/2334465255/reactions
2024-09-06T16:59:13Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2334465255
https://avatars.githubusercontent.com/u/55020394?v=4
https://api.github.com/users/omar93939/events{/privacy}
https://api.github.com/users/omar93939/followers
https://api.github.com/users/omar93939/following{/other_user}
https://api.github.com/users/omar93939/gists{/gist_id}
https://github.com/omar93939
omar93939
MDQ6VXNlcjU1MDIwMzk0
https://api.github.com/users/omar93939/orgs
https://api.github.com/users/omar93939/received_events
https://api.github.com/users/omar93939/repos
https://api.github.com/users/omar93939/starred{/owner}{/repo}
https://api.github.com/users/omar93939/subscriptions
User
https://api.github.com/users/omar93939
public
NONE
Same issue here. Even reverting to older version of `datasets` (e.g., `2.19.0`) results in same error:

```python
>>> datasets.load_dataset('allenai/ai2_arc', 'ARC-Easy')

File "/Users/lucas/miniforge3/envs/oe-eval-internal/lib/python3.10/site-packages/huggingface_hub/hf_api.py", line 3048, in <listcomp>
    RepoFile(**path_info) if path_info["type"] == "file" else RepoFolder(**path_info)
  File "/Users/lucas/miniforge3/envs/oe-eval-internal/lib/python3.10/site-packages/huggingface_hub/hf_api.py", line 534, in __init__
    safe=security["safe"], av_scan=security["avScan"], pickle_import_scan=security["pickleImportScan"]
KeyError: 'safe'
```
2024-09-06T17:08:39Z
https://github.com/huggingface/datasets/issues/7141#issuecomment-2334484245
https://api.github.com/repos/huggingface/datasets/issues/7141
IC_kwDODunzps6LJWcV
https://api.github.com/repos/huggingface/datasets/issues/comments/2334484245/reactions
2024-09-06T17:08:39Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2334484245
https://avatars.githubusercontent.com/u/3913506?v=4
https://api.github.com/users/soldni/events{/privacy}
https://api.github.com/users/soldni/followers
https://api.github.com/users/soldni/following{/other_user}
https://api.github.com/users/soldni/gists{/gist_id}
https://github.com/soldni
soldni
MDQ6VXNlcjM5MTM1MDY=
https://api.github.com/users/soldni/orgs
https://api.github.com/users/soldni/received_events
https://api.github.com/users/soldni/repos
https://api.github.com/users/soldni/starred{/owner}{/repo}
https://api.github.com/users/soldni/subscriptions
User
https://api.github.com/users/soldni
public
NONE
i just had this issue a few minutes ago, crawled the internet and found nothing. came here to open an issue and found this. it is really frustrating. anyone found a fix?
2024-09-06T17:17:55Z
https://github.com/huggingface/datasets/issues/7141#issuecomment-2334498450
https://api.github.com/repos/huggingface/datasets/issues/7141
IC_kwDODunzps6LJZ6S
https://api.github.com/repos/huggingface/datasets/issues/comments/2334498450/reactions
2024-09-06T17:29:01Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2334498450
https://avatars.githubusercontent.com/u/42372656?v=4
https://api.github.com/users/FotieMConstant/events{/privacy}
https://api.github.com/users/FotieMConstant/followers
https://api.github.com/users/FotieMConstant/following{/other_user}
https://api.github.com/users/FotieMConstant/gists{/gist_id}
https://github.com/FotieMConstant
FotieMConstant
MDQ6VXNlcjQyMzcyNjU2
https://api.github.com/users/FotieMConstant/orgs
https://api.github.com/users/FotieMConstant/received_events
https://api.github.com/users/FotieMConstant/repos
https://api.github.com/users/FotieMConstant/starred{/owner}{/repo}
https://api.github.com/users/FotieMConstant/subscriptions
User
https://api.github.com/users/FotieMConstant
public
NONE
hi, me and my team have the same problem
2024-09-06T17:26:09Z
https://github.com/huggingface/datasets/issues/7141#issuecomment-2334510953
https://api.github.com/repos/huggingface/datasets/issues/7141
IC_kwDODunzps6LJc9p
https://api.github.com/repos/huggingface/datasets/issues/comments/2334510953/reactions
2024-09-06T17:26:09Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2334510953
https://avatars.githubusercontent.com/u/70323559?v=4
https://api.github.com/users/ummagumm-a/events{/privacy}
https://api.github.com/users/ummagumm-a/followers
https://api.github.com/users/ummagumm-a/following{/other_user}
https://api.github.com/users/ummagumm-a/gists{/gist_id}
https://github.com/ummagumm-a
ummagumm-a
MDQ6VXNlcjcwMzIzNTU5
https://api.github.com/users/ummagumm-a/orgs
https://api.github.com/users/ummagumm-a/received_events
https://api.github.com/users/ummagumm-a/repos
https://api.github.com/users/ummagumm-a/starred{/owner}{/repo}
https://api.github.com/users/ummagumm-a/subscriptions
User
https://api.github.com/users/ummagumm-a
public
NONE
Yeah, this just suddenly appeared without client-side code changes, within the last hours.

Here's a patch to fix the issue temporarily:
```python
import huggingface_hub
def patched_repofolder_init(self, **kwargs):
    self.path = kwargs.pop("path")
    self.tree_id = kwargs.pop("oid")
    last_commit = kwargs.pop("lastCommit", None) or kwargs.pop("last_commit", None)
    if last_commit is not None:
        last_commit = huggingface_hub.hf_api.LastCommitInfo(
            oid=last_commit["id"],
            title=last_commit["title"],
            date=huggingface_hub.utils.parse_datetime(last_commit["date"]),
        )
    self.last_commit = last_commit


def patched_repo_file_init(self, **kwargs):
    self.path = kwargs.pop("path")
    self.size = kwargs.pop("size")
    self.blob_id = kwargs.pop("oid")
    lfs = kwargs.pop("lfs", None)
    if lfs is not None:
        lfs = huggingface_hub.hf_api.BlobLfsInfo(size=lfs["size"], sha256=lfs["oid"], pointer_size=lfs["pointerSize"])
    self.lfs = lfs
    last_commit = kwargs.pop("lastCommit", None) or kwargs.pop("last_commit", None)
    if last_commit is not None:
        last_commit = huggingface_hub.hf_api.LastCommitInfo(
            oid=last_commit["id"],
            title=last_commit["title"],
            date=huggingface_hub.utils.parse_datetime(last_commit["date"]),
        )
    self.last_commit = last_commit
    self.security = None

    # backwards compatibility
    self.rfilename = self.path
    self.lastCommit = self.last_commit


huggingface_hub.hf_api.RepoFile.__init__ = patched_repo_file_init
huggingface_hub.hf_api.RepoFolder.__init__ = patched_repofolder_init
```

2024-09-06T17:27:43Z
https://github.com/huggingface/datasets/issues/7141#issuecomment-2334513080
https://api.github.com/repos/huggingface/datasets/issues/7141
IC_kwDODunzps6LJde4
https://api.github.com/repos/huggingface/datasets/issues/comments/2334513080/reactions
2024-09-06T18:07:18Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2334513080
https://avatars.githubusercontent.com/u/22680696?v=4
https://api.github.com/users/JonasGeiping/events{/privacy}
https://api.github.com/users/JonasGeiping/followers
https://api.github.com/users/JonasGeiping/following{/other_user}
https://api.github.com/users/JonasGeiping/gists{/gist_id}
https://github.com/JonasGeiping
JonasGeiping
MDQ6VXNlcjIyNjgwNjk2
https://api.github.com/users/JonasGeiping/orgs
https://api.github.com/users/JonasGeiping/received_events
https://api.github.com/users/JonasGeiping/repos
https://api.github.com/users/JonasGeiping/starred{/owner}{/repo}
https://api.github.com/users/JonasGeiping/subscriptions
User
https://api.github.com/users/JonasGeiping
public
NONE
Also discussed here:
https://discuss.huggingface.co/t/i-keep-getting-keyerror-safe-when-loading-my-datasets/105669/1
2024-09-06T17:31:42Z
https://github.com/huggingface/datasets/issues/7141#issuecomment-2334518420
https://api.github.com/repos/huggingface/datasets/issues/7141
IC_kwDODunzps6LJeyU
https://api.github.com/repos/huggingface/datasets/issues/comments/2334518420/reactions
2024-09-06T17:31:42Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2334518420
https://avatars.githubusercontent.com/u/147971?v=4
https://api.github.com/users/neoneye/events{/privacy}
https://api.github.com/users/neoneye/followers
https://api.github.com/users/neoneye/following{/other_user}
https://api.github.com/users/neoneye/gists{/gist_id}
https://github.com/neoneye
neoneye
MDQ6VXNlcjE0Nzk3MQ==
https://api.github.com/users/neoneye/orgs
https://api.github.com/users/neoneye/received_events
https://api.github.com/users/neoneye/repos
https://api.github.com/users/neoneye/starred{/owner}{/repo}
https://api.github.com/users/neoneye/subscriptions
User
https://api.github.com/users/neoneye
public
NONE
i'm thinking this should be a server issue, i mean no client code was changed on my end. so weird!
2024-09-06T17:35:18Z
https://github.com/huggingface/datasets/issues/7141#issuecomment-2334523278
https://api.github.com/repos/huggingface/datasets/issues/7141
IC_kwDODunzps6LJf-O
https://api.github.com/repos/huggingface/datasets/issues/comments/2334523278/reactions
2024-09-06T17:35:18Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2334523278
https://avatars.githubusercontent.com/u/42372656?v=4
https://api.github.com/users/FotieMConstant/events{/privacy}
https://api.github.com/users/FotieMConstant/followers
https://api.github.com/users/FotieMConstant/following{/other_user}
https://api.github.com/users/FotieMConstant/gists{/gist_id}
https://github.com/FotieMConstant
FotieMConstant
MDQ6VXNlcjQyMzcyNjU2
https://api.github.com/users/FotieMConstant/orgs
https://api.github.com/users/FotieMConstant/received_events
https://api.github.com/users/FotieMConstant/repos
https://api.github.com/users/FotieMConstant/starred{/owner}{/repo}
https://api.github.com/users/FotieMConstant/subscriptions
User
https://api.github.com/users/FotieMConstant
public
NONE
As far as I can tell, this seems to be happening with **all** datasets that use RepoFolder (probably represents most datasets on huggingface, right?)
2024-09-06T17:37:38Z
https://github.com/huggingface/datasets/issues/7141#issuecomment-2334526789
https://api.github.com/repos/huggingface/datasets/issues/7141
IC_kwDODunzps6LJg1F
https://api.github.com/repos/huggingface/datasets/issues/comments/2334526789/reactions
2024-09-06T17:37:38Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2334526789
https://avatars.githubusercontent.com/u/13387299?v=4
https://api.github.com/users/lebrice/events{/privacy}
https://api.github.com/users/lebrice/followers
https://api.github.com/users/lebrice/following{/other_user}
https://api.github.com/users/lebrice/gists{/gist_id}
https://github.com/lebrice
lebrice
MDQ6VXNlcjEzMzg3Mjk5
https://api.github.com/users/lebrice/orgs
https://api.github.com/users/lebrice/received_events
https://api.github.com/users/lebrice/repos
https://api.github.com/users/lebrice/starred{/owner}{/repo}
https://api.github.com/users/lebrice/subscriptions
User
https://api.github.com/users/lebrice
public
NONE
> Here is a temporary fix for the problem: https://discuss.huggingface.co/t/i-keep-getting-keyerror-safe-when-loading-my-datasets/105669/12?u=mlscientist

this doesn't seem to work!
2024-09-06T17:49:44Z
https://github.com/huggingface/datasets/issues/7141#issuecomment-2334550139
https://api.github.com/repos/huggingface/datasets/issues/7141
IC_kwDODunzps6LJmh7
https://api.github.com/repos/huggingface/datasets/issues/comments/2334550139/reactions
2024-09-06T17:49:44Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2334550139
https://avatars.githubusercontent.com/u/42372656?v=4
https://api.github.com/users/FotieMConstant/events{/privacy}
https://api.github.com/users/FotieMConstant/followers
https://api.github.com/users/FotieMConstant/following{/other_user}
https://api.github.com/users/FotieMConstant/gists{/gist_id}
https://github.com/FotieMConstant
FotieMConstant
MDQ6VXNlcjQyMzcyNjU2
https://api.github.com/users/FotieMConstant/orgs
https://api.github.com/users/FotieMConstant/received_events
https://api.github.com/users/FotieMConstant/repos
https://api.github.com/users/FotieMConstant/starred{/owner}{/repo}
https://api.github.com/users/FotieMConstant/subscriptions
User
https://api.github.com/users/FotieMConstant
public
NONE
In case you are using Colab or similar, remember to restart your session after modyfing the hf_api.py file
2024-09-06T17:53:48Z
https://github.com/huggingface/datasets/issues/7141#issuecomment-2334555915
https://api.github.com/repos/huggingface/datasets/issues/7141
IC_kwDODunzps6LJn8L
https://api.github.com/repos/huggingface/datasets/issues/comments/2334555915/reactions
2024-09-06T17:53:48Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2334555915
https://avatars.githubusercontent.com/u/11445647?v=4
https://api.github.com/users/adrianb92/events{/privacy}
https://api.github.com/users/adrianb92/followers
https://api.github.com/users/adrianb92/following{/other_user}
https://api.github.com/users/adrianb92/gists{/gist_id}
https://github.com/adrianb92
adrianb92
MDQ6VXNlcjExNDQ1NjQ3
https://api.github.com/users/adrianb92/orgs
https://api.github.com/users/adrianb92/received_events
https://api.github.com/users/adrianb92/repos
https://api.github.com/users/adrianb92/starred{/owner}{/repo}
https://api.github.com/users/adrianb92/subscriptions
User
https://api.github.com/users/adrianb92
public
NONE
No need to modify the file directly, just monkey-patch.

I'm now more sure that the error appears because the backend expects the api code to look like it does on `main`. If `RepoFile` and `RepoFolder` look about like they look on main, they work again.

If not fixed like above, a secondary error that will appear is 
```
    return self.info(path, expand_info=False)["type"] == "directory"
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

    "tree_id": path_info.tree_id,
               ^^^^^^^^^^^^^^^^^
AttributeError: 'RepoFolder' object has no attribute 'tree_id'
```

2024-09-06T18:09:37Z
https://github.com/huggingface/datasets/issues/7141#issuecomment-2334579192
https://api.github.com/repos/huggingface/datasets/issues/7141
IC_kwDODunzps6LJtn4
https://api.github.com/repos/huggingface/datasets/issues/comments/2334579192/reactions
2024-09-06T18:09:37Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2334579192
https://avatars.githubusercontent.com/u/22680696?v=4
https://api.github.com/users/JonasGeiping/events{/privacy}
https://api.github.com/users/JonasGeiping/followers
https://api.github.com/users/JonasGeiping/following{/other_user}
https://api.github.com/users/JonasGeiping/gists{/gist_id}
https://github.com/JonasGeiping
JonasGeiping
MDQ6VXNlcjIyNjgwNjk2
https://api.github.com/users/JonasGeiping/orgs
https://api.github.com/users/JonasGeiping/received_events
https://api.github.com/users/JonasGeiping/repos
https://api.github.com/users/JonasGeiping/starred{/owner}{/repo}
https://api.github.com/users/JonasGeiping/subscriptions
User
https://api.github.com/users/JonasGeiping
public
NONE
We've reverted the deployment, please let us know if the issue still persists!
2024-09-06T18:32:12Z
https://github.com/huggingface/datasets/issues/7141#issuecomment-2334610303
https://api.github.com/repos/huggingface/datasets/issues/7141
IC_kwDODunzps6LJ1N_
https://api.github.com/repos/huggingface/datasets/issues/comments/2334610303/reactions
2024-09-06T18:32:12Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2334610303
https://avatars.githubusercontent.com/u/7831895?v=4
https://api.github.com/users/muellerzr/events{/privacy}
https://api.github.com/users/muellerzr/followers
https://api.github.com/users/muellerzr/following{/other_user}
https://api.github.com/users/muellerzr/gists{/gist_id}
https://github.com/muellerzr
muellerzr
MDQ6VXNlcjc4MzE4OTU=
https://api.github.com/users/muellerzr/orgs
https://api.github.com/users/muellerzr/received_events
https://api.github.com/users/muellerzr/repos
https://api.github.com/users/muellerzr/starred{/owner}{/repo}
https://api.github.com/users/muellerzr/subscriptions
User
https://api.github.com/users/muellerzr
public
NONE
thanks @muellerzr!
2024-09-06T19:07:21Z
https://github.com/huggingface/datasets/issues/7141#issuecomment-2334659321
https://api.github.com/repos/huggingface/datasets/issues/7141
IC_kwDODunzps6LKBL5
https://api.github.com/repos/huggingface/datasets/issues/comments/2334659321/reactions
2024-09-06T19:07:21Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2334659321
https://avatars.githubusercontent.com/u/3451264?v=4
https://api.github.com/users/ajstarna/events{/privacy}
https://api.github.com/users/ajstarna/followers
https://api.github.com/users/ajstarna/following{/other_user}
https://api.github.com/users/ajstarna/gists{/gist_id}
https://github.com/ajstarna
ajstarna
MDQ6VXNlcjM0NTEyNjQ=
https://api.github.com/users/ajstarna/orgs
https://api.github.com/users/ajstarna/received_events
https://api.github.com/users/ajstarna/repos
https://api.github.com/users/ajstarna/starred{/owner}{/repo}
https://api.github.com/users/ajstarna/subscriptions
User
https://api.github.com/users/ajstarna
public
### Describe the bug

The dataset loading was throwing some safety errors for this popular dataset `wmt14`. 

[in]:

```
import datasets

# train_data = datasets.load_dataset("wmt14", "de-en", split="train")
train_data = datasets.load_dataset("wmt14", "de-en", split="train")
val_data = datasets.load_dataset("wmt14", "de-en", split="validation[:10%]")
```


[out]:

```
---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
[<ipython-input-9-445f0ecc4817>](https://localhost:8080/#) in <cell line: 4>()
      2 
      3 # train_data = datasets.load_dataset("wmt14", "de-en", split="train")
----> 4 train_data = datasets.load_dataset("wmt14", "de-en", split="train")
      5 val_data = datasets.load_dataset("wmt14", "de-en", split="validation[:10%]")

12 frames
[/usr/local/lib/python3.10/dist-packages/huggingface_hub/hf_api.py](https://localhost:8080/#) in __init__(self, **kwargs)
    636         if security is not None:
    637             security = BlobSecurityInfo(
--> 638                 safe=security["safe"], av_scan=security["avScan"], pickle_import_scan=security["pickleImportScan"]
    639             )
    640         self.security = security

KeyError: 'safe'
```


### Steps to reproduce the bug

See above.

### Expected behavior

Dataset properly loaded.

### Environment info

version: 2.21.0