hfutils 0.2.6__tar.gz → 0.2.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {hfutils-0.2.6/hfutils.egg-info → hfutils-0.2.8}/PKG-INFO +4 -3
- {hfutils-0.2.6 → hfutils-0.2.8}/hfutils/config/meta.py +1 -1
- {hfutils-0.2.6 → hfutils-0.2.8}/hfutils/index/__init__.py +1 -1
- {hfutils-0.2.6 → hfutils-0.2.8}/hfutils/index/fetch.py +270 -0
- {hfutils-0.2.6 → hfutils-0.2.8}/hfutils/index/make.py +3 -0
- {hfutils-0.2.6 → hfutils-0.2.8}/hfutils/index/validate.py +10 -0
- {hfutils-0.2.6 → hfutils-0.2.8}/hfutils/operate/download.py +0 -2
- hfutils-0.2.8/hfutils/utils/irregular_repo.json +5 -0
- {hfutils-0.2.6 → hfutils-0.2.8/hfutils.egg-info}/PKG-INFO +4 -3
- {hfutils-0.2.6 → hfutils-0.2.8}/hfutils.egg-info/requires.txt +3 -2
- hfutils-0.2.8/requirements-build.txt +2 -0
- hfutils-0.2.8/requirements.txt +7 -0
- hfutils-0.2.6/hfutils/utils/irregular_repo.json +0 -662
- hfutils-0.2.6/requirements-build.txt +0 -1
- hfutils-0.2.6/requirements.txt +0 -7
- {hfutils-0.2.6 → hfutils-0.2.8}/LICENSE +0 -0
- {hfutils-0.2.6 → hfutils-0.2.8}/MANIFEST.in +0 -0
- {hfutils-0.2.6 → hfutils-0.2.8}/README.md +0 -0
- {hfutils-0.2.6 → hfutils-0.2.8}/hfutils/__init__.py +0 -0
- {hfutils-0.2.6 → hfutils-0.2.8}/hfutils/__main__.py +0 -0
- {hfutils-0.2.6 → hfutils-0.2.8}/hfutils/archive/__init__.py +0 -0
- {hfutils-0.2.6 → hfutils-0.2.8}/hfutils/archive/base.py +0 -0
- {hfutils-0.2.6 → hfutils-0.2.8}/hfutils/archive/rar.py +0 -0
- {hfutils-0.2.6 → hfutils-0.2.8}/hfutils/archive/sevenz.py +0 -0
- {hfutils-0.2.6 → hfutils-0.2.8}/hfutils/archive/tar.py +0 -0
- {hfutils-0.2.6 → hfutils-0.2.8}/hfutils/archive/zip.py +0 -0
- {hfutils-0.2.6 → hfutils-0.2.8}/hfutils/config/__init__.py +0 -0
- {hfutils-0.2.6 → hfutils-0.2.8}/hfutils/entry/__init__.py +0 -0
- {hfutils-0.2.6 → hfutils-0.2.8}/hfutils/entry/base.py +0 -0
- {hfutils-0.2.6 → hfutils-0.2.8}/hfutils/entry/cli.py +0 -0
- {hfutils-0.2.6 → hfutils-0.2.8}/hfutils/entry/dispatch.py +0 -0
- {hfutils-0.2.6 → hfutils-0.2.8}/hfutils/entry/download.py +0 -0
- {hfutils-0.2.6 → hfutils-0.2.8}/hfutils/entry/ls.py +0 -0
- {hfutils-0.2.6 → hfutils-0.2.8}/hfutils/entry/ls_repo.py +0 -0
- {hfutils-0.2.6 → hfutils-0.2.8}/hfutils/entry/upload.py +0 -0
- {hfutils-0.2.6 → hfutils-0.2.8}/hfutils/entry/whoami.py +0 -0
- {hfutils-0.2.6 → hfutils-0.2.8}/hfutils/index/hash.py +0 -0
- {hfutils-0.2.6 → hfutils-0.2.8}/hfutils/operate/__init__.py +0 -0
- {hfutils-0.2.6 → hfutils-0.2.8}/hfutils/operate/base.py +0 -0
- {hfutils-0.2.6 → hfutils-0.2.8}/hfutils/operate/upload.py +0 -0
- {hfutils-0.2.6 → hfutils-0.2.8}/hfutils/operate/validate.py +0 -0
- {hfutils-0.2.6 → hfutils-0.2.8}/hfutils/utils/__init__.py +0 -0
- {hfutils-0.2.6 → hfutils-0.2.8}/hfutils/utils/binary.py +0 -0
- {hfutils-0.2.6 → hfutils-0.2.8}/hfutils/utils/download.py +0 -0
- {hfutils-0.2.6 → hfutils-0.2.8}/hfutils/utils/path.py +0 -0
- {hfutils-0.2.6 → hfutils-0.2.8}/hfutils/utils/temp.py +0 -0
- {hfutils-0.2.6 → hfutils-0.2.8}/hfutils/utils/tqdm_.py +0 -0
- {hfutils-0.2.6 → hfutils-0.2.8}/hfutils/utils/walk.py +0 -0
- {hfutils-0.2.6 → hfutils-0.2.8}/hfutils.egg-info/SOURCES.txt +0 -0
- {hfutils-0.2.6 → hfutils-0.2.8}/hfutils.egg-info/dependency_links.txt +0 -0
- {hfutils-0.2.6 → hfutils-0.2.8}/hfutils.egg-info/entry_points.txt +0 -0
- {hfutils-0.2.6 → hfutils-0.2.8}/hfutils.egg-info/top_level.txt +0 -0
- {hfutils-0.2.6 → hfutils-0.2.8}/requirements-7z.txt +0 -0
- {hfutils-0.2.6 → hfutils-0.2.8}/requirements-doc.txt +0 -0
- {hfutils-0.2.6 → hfutils-0.2.8}/requirements-rar.txt +0 -0
- {hfutils-0.2.6 → hfutils-0.2.8}/requirements-test.txt +0 -0
- {hfutils-0.2.6 → hfutils-0.2.8}/requirements-transfer.txt +0 -0
- {hfutils-0.2.6 → hfutils-0.2.8}/setup.cfg +0 -0
- {hfutils-0.2.6 → hfutils-0.2.8}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: hfutils
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.8
|
|
4
4
|
Summary: Useful utilities for huggingface
|
|
5
5
|
Home-page: https://github.com/deepghs/hfutils
|
|
6
6
|
Author: narugo1992
|
|
@@ -20,8 +20,8 @@ Classifier: Programming Language :: Python :: 3.12
|
|
|
20
20
|
Requires-Python: >=3.8
|
|
21
21
|
Description-Content-Type: text/markdown
|
|
22
22
|
License-File: LICENSE
|
|
23
|
-
Requires-Dist: hbutils>=0.9.
|
|
24
|
-
Requires-Dist: huggingface_hub>=0.
|
|
23
|
+
Requires-Dist: hbutils>=0.9.3
|
|
24
|
+
Requires-Dist: huggingface_hub>=0.23
|
|
25
25
|
Requires-Dist: tqdm
|
|
26
26
|
Requires-Dist: requests
|
|
27
27
|
Requires-Dist: click>=7
|
|
@@ -29,6 +29,7 @@ Requires-Dist: tzlocal
|
|
|
29
29
|
Requires-Dist: natsort
|
|
30
30
|
Provides-Extra: build
|
|
31
31
|
Requires-Dist: pyinstaller<5,>=4.7; extra == "build"
|
|
32
|
+
Requires-Dist: setuptools<70; extra == "build"
|
|
32
33
|
Provides-Extra: doc
|
|
33
34
|
Requires-Dist: Jinja2>=3.0.0; extra == "doc"
|
|
34
35
|
Requires-Dist: sphinx>=3.2.0; extra == "doc"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
from .fetch import hf_tar_list_files, hf_tar_file_download, hf_tar_get_index, hf_tar_file_exists, \
|
|
2
|
-
ArchiveStandaloneFileIncompleteDownload, ArchiveStandaloneFileHashNotMatch
|
|
2
|
+
ArchiveStandaloneFileIncompleteDownload, ArchiveStandaloneFileHashNotMatch, hf_tar_file_size, hf_tar_file_info
|
|
3
3
|
from .make import tar_create_index, hf_tar_create_index, tar_get_index_info, hf_tar_create_from_directory
|
|
4
4
|
from .validate import hf_tar_item_validate, hf_tar_validate
|
|
@@ -49,6 +49,36 @@ def hf_tar_get_index(repo_id: str, archive_in_repo: str,
|
|
|
49
49
|
:type hf_token: str, optional
|
|
50
50
|
:return: The index of the tar archive file.
|
|
51
51
|
:rtype: Dict
|
|
52
|
+
|
|
53
|
+
Examples::
|
|
54
|
+
>>> from hfutils.index import hf_tar_get_index
|
|
55
|
+
>>>
|
|
56
|
+
>>> idx = hf_tar_get_index(
|
|
57
|
+
... repo_id='deepghs/danbooru_newest',
|
|
58
|
+
... archive_in_repo='images/0000.tar',
|
|
59
|
+
... )
|
|
60
|
+
>>> idx.keys()
|
|
61
|
+
dict_keys(['filesize', 'hash', 'hash_lfs', 'files'])
|
|
62
|
+
>>> idx['files'].keys()
|
|
63
|
+
dict_keys(['7507000.jpg', '7506000.jpg', '7505000.jpg', ...])
|
|
64
|
+
|
|
65
|
+
.. note::
|
|
66
|
+
|
|
67
|
+
Besides, if the tar and index files are in different repositories, you can also use this function to
|
|
68
|
+
get the index information by explicitly assigning the ``idx_repo_id`` argument.
|
|
69
|
+
|
|
70
|
+
>>> from hfutils.index import hf_tar_get_index
|
|
71
|
+
>>>
|
|
72
|
+
>>> idx = hf_tar_get_index(
|
|
73
|
+
... repo_id='nyanko7/danbooru2023',
|
|
74
|
+
... idx_repo_id='deepghs/danbooru2023_index',
|
|
75
|
+
... archive_in_repo='original/data-0000.tar',
|
|
76
|
+
... )
|
|
77
|
+
>>> idx.keys()
|
|
78
|
+
dict_keys(['filesize', 'hash', 'hash_lfs', 'files'])
|
|
79
|
+
>>> idx['files'].keys()
|
|
80
|
+
dict_keys(['./1000.png', './10000.jpg', './100000.jpg', ...])
|
|
81
|
+
|
|
52
82
|
"""
|
|
53
83
|
hf_client = get_hf_client(hf_token)
|
|
54
84
|
body, _ = os.path.splitext(archive_in_repo)
|
|
@@ -90,6 +120,30 @@ def hf_tar_list_files(repo_id: str, archive_in_repo: str,
|
|
|
90
120
|
:type hf_token: str, optional
|
|
91
121
|
:return: The list of files inside the tar archive.
|
|
92
122
|
:rtype: List[str]
|
|
123
|
+
|
|
124
|
+
Examples::
|
|
125
|
+
>>> from hfutils.index import hf_tar_list_files
|
|
126
|
+
>>>
|
|
127
|
+
>>> hf_tar_list_files(
|
|
128
|
+
... repo_id='deepghs/danbooru_newest',
|
|
129
|
+
... archive_in_repo='images/0000.tar',
|
|
130
|
+
... )
|
|
131
|
+
['7507000.jpg', '7506000.jpg', '7505000.jpg', ...]
|
|
132
|
+
|
|
133
|
+
.. note::
|
|
134
|
+
|
|
135
|
+
Besides, if the tar and index files are in different repositories, you can also use this function to
|
|
136
|
+
list all the files by explicitly assigning the ``idx_repo_id`` argument.
|
|
137
|
+
|
|
138
|
+
>>> from hfutils.index import hf_tar_list_files
|
|
139
|
+
>>>
|
|
140
|
+
>>> hf_tar_list_files(
|
|
141
|
+
... repo_id='nyanko7/danbooru2023',
|
|
142
|
+
... idx_repo_id='deepghs/danbooru2023_index',
|
|
143
|
+
... archive_in_repo='original/data-0000.tar',
|
|
144
|
+
... )
|
|
145
|
+
['./1000.png', './10000.jpg', './100000.jpg', ...]
|
|
146
|
+
|
|
93
147
|
"""
|
|
94
148
|
index_data = hf_tar_get_index(
|
|
95
149
|
repo_id=repo_id,
|
|
@@ -138,6 +192,45 @@ def hf_tar_file_exists(repo_id: str, archive_in_repo: str, file_in_archive: str,
|
|
|
138
192
|
:type hf_token: str, optional
|
|
139
193
|
:return: True if the file exists, False otherwise.
|
|
140
194
|
:rtype: bool
|
|
195
|
+
|
|
196
|
+
Examples::
|
|
197
|
+
>>> from hfutils.index import hf_tar_file_exists
|
|
198
|
+
>>>
|
|
199
|
+
>>> hf_tar_file_exists(
|
|
200
|
+
... repo_id='deepghs/danbooru_newest',
|
|
201
|
+
... archive_in_repo='images/0000.tar',
|
|
202
|
+
... file_in_archive='7506000.jpg',
|
|
203
|
+
... )
|
|
204
|
+
True
|
|
205
|
+
>>> hf_tar_file_exists(
|
|
206
|
+
... repo_id='deepghs/danbooru_newest',
|
|
207
|
+
... archive_in_repo='images/0000.tar',
|
|
208
|
+
... file_in_archive='17506000.jpg',
|
|
209
|
+
... )
|
|
210
|
+
False
|
|
211
|
+
|
|
212
|
+
.. note::
|
|
213
|
+
|
|
214
|
+
Besides, if the tar and index files are in different repositories, you can also use this function to
|
|
215
|
+
check the file existence by explicitly assigning the ``idx_repo_id`` argument.
|
|
216
|
+
|
|
217
|
+
>>> from hfutils.index import hf_tar_file_exists
|
|
218
|
+
>>>
|
|
219
|
+
>>> hf_tar_file_exists(
|
|
220
|
+
... repo_id='nyanko7/danbooru2023',
|
|
221
|
+
... idx_repo_id='deepghs/danbooru2023_index',
|
|
222
|
+
... archive_in_repo='original/data-0000.tar',
|
|
223
|
+
... file_in_archive='1000.png'
|
|
224
|
+
... )
|
|
225
|
+
True
|
|
226
|
+
>>> hf_tar_file_exists(
|
|
227
|
+
... repo_id='nyanko7/danbooru2023',
|
|
228
|
+
... idx_repo_id='deepghs/danbooru2023_index',
|
|
229
|
+
... archive_in_repo='original/data-0000.tar',
|
|
230
|
+
... file_in_archive='10000000001000.png'
|
|
231
|
+
... )
|
|
232
|
+
False
|
|
233
|
+
|
|
141
234
|
"""
|
|
142
235
|
index = hf_tar_get_index(
|
|
143
236
|
repo_id=repo_id,
|
|
@@ -180,6 +273,155 @@ def _hf_files_process(files: Dict[str, dict]):
|
|
|
180
273
|
return {_n_path(key): value for key, value in files.items()}
|
|
181
274
|
|
|
182
275
|
|
|
276
|
+
def hf_tar_file_info(repo_id: str, archive_in_repo: str, file_in_archive: str,
|
|
277
|
+
repo_type: RepoTypeTyping = 'dataset', revision: str = 'main',
|
|
278
|
+
idx_repo_id: Optional[str] = None, idx_file_in_repo: Optional[str] = None,
|
|
279
|
+
idx_repo_type: Optional[RepoTypeTyping] = None, idx_revision: Optional[str] = None,
|
|
280
|
+
hf_token: Optional[str] = None) -> dict:
|
|
281
|
+
"""
|
|
282
|
+
Get a file's detailed information in index tars, including offset, sha256 and size.
|
|
283
|
+
|
|
284
|
+
:param repo_id: The identifier of the repository.
|
|
285
|
+
:type repo_id: str
|
|
286
|
+
:param archive_in_repo: The path to the archive file in the repository.
|
|
287
|
+
:type archive_in_repo: str
|
|
288
|
+
:param file_in_archive: The path to the file inside the archive.
|
|
289
|
+
:type file_in_archive: str
|
|
290
|
+
:param repo_type: The type of the Hugging Face repository.
|
|
291
|
+
:type repo_type: RepoTypeTyping, optional
|
|
292
|
+
:param revision: The revision of the repository.
|
|
293
|
+
:type revision: str, optional
|
|
294
|
+
:param idx_repo_id: The identifier of the index repository.
|
|
295
|
+
:type idx_repo_id: str, optional
|
|
296
|
+
:param idx_file_in_repo: The path to the index file in the index repository.
|
|
297
|
+
:type idx_file_in_repo: str, optional
|
|
298
|
+
:param idx_repo_type: The type of the index repository.
|
|
299
|
+
:type idx_repo_type: RepoTypeTyping, optional
|
|
300
|
+
:param idx_revision: The revision of the index repository.
|
|
301
|
+
:type idx_revision: str, optional
|
|
302
|
+
:param hf_token: The Hugging Face access token.
|
|
303
|
+
:type hf_token: str, optional
|
|
304
|
+
:return: Return a dictionary object with meta information of this file.
|
|
305
|
+
:rtype: dict
|
|
306
|
+
:raises FileNotFoundError: Raise this when file not exist in tar archive.
|
|
307
|
+
|
|
308
|
+
Examples::
|
|
309
|
+
>>> from hfutils.index import hf_tar_file_info
|
|
310
|
+
>>>
|
|
311
|
+
>>> hf_tar_file_info(
|
|
312
|
+
... repo_id='deepghs/danbooru_newest',
|
|
313
|
+
... archive_in_repo='images/0000.tar',
|
|
314
|
+
... file_in_archive='7506000.jpg',
|
|
315
|
+
... )
|
|
316
|
+
{'offset': 265728, 'size': 435671, 'sha256': 'ef6a4e031fdffb705c8ce2c64e8cb8d993f431a887d7c1c0b1e6fa56e6107fcd'}
|
|
317
|
+
|
|
318
|
+
.. note::
|
|
319
|
+
|
|
320
|
+
Besides, if the tar and index files are in different repositories, you can also use this function to
|
|
321
|
+
get the file information by explicitly assigning the ``idx_repo_id`` argument.
|
|
322
|
+
|
|
323
|
+
>>> from hfutils.index import hf_tar_file_info
|
|
324
|
+
>>>
|
|
325
|
+
>>> hf_tar_file_info(
|
|
326
|
+
... repo_id='nyanko7/danbooru2023',
|
|
327
|
+
... idx_repo_id='deepghs/danbooru2023_index',
|
|
328
|
+
... archive_in_repo='original/data-0000.tar',
|
|
329
|
+
... file_in_archive='1000.png'
|
|
330
|
+
... )
|
|
331
|
+
{'offset': 1024, 'size': 11966, 'sha256': '478d3313860519372f6a75ede287d4a7c18a2d851bbc79b3dd65caff4c716858'}
|
|
332
|
+
"""
|
|
333
|
+
index = hf_tar_get_index(
|
|
334
|
+
repo_id=repo_id,
|
|
335
|
+
archive_in_repo=archive_in_repo,
|
|
336
|
+
repo_type=repo_type,
|
|
337
|
+
revision=revision,
|
|
338
|
+
|
|
339
|
+
idx_repo_id=idx_repo_id,
|
|
340
|
+
idx_file_in_repo=idx_file_in_repo,
|
|
341
|
+
idx_repo_type=idx_repo_type,
|
|
342
|
+
idx_revision=idx_revision,
|
|
343
|
+
|
|
344
|
+
hf_token=hf_token,
|
|
345
|
+
)
|
|
346
|
+
files = _hf_files_process(index['files'])
|
|
347
|
+
if _n_path(file_in_archive) not in files:
|
|
348
|
+
raise FileNotFoundError(f'File {file_in_archive!r} not found '
|
|
349
|
+
f'in {repo_type}s/{repo_id}@{revision}/{archive_in_repo}.')
|
|
350
|
+
else:
|
|
351
|
+
return files[_n_path(file_in_archive)]
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
def hf_tar_file_size(repo_id: str, archive_in_repo: str, file_in_archive: str,
|
|
355
|
+
repo_type: RepoTypeTyping = 'dataset', revision: str = 'main',
|
|
356
|
+
idx_repo_id: Optional[str] = None, idx_file_in_repo: Optional[str] = None,
|
|
357
|
+
idx_repo_type: Optional[RepoTypeTyping] = None, idx_revision: Optional[str] = None,
|
|
358
|
+
hf_token: Optional[str] = None) -> int:
|
|
359
|
+
"""
|
|
360
|
+
Get a file's size in index tars.
|
|
361
|
+
|
|
362
|
+
:param repo_id: The identifier of the repository.
|
|
363
|
+
:type repo_id: str
|
|
364
|
+
:param archive_in_repo: The path to the archive file in the repository.
|
|
365
|
+
:type archive_in_repo: str
|
|
366
|
+
:param file_in_archive: The path to the file inside the archive.
|
|
367
|
+
:type file_in_archive: str
|
|
368
|
+
:param repo_type: The type of the Hugging Face repository.
|
|
369
|
+
:type repo_type: RepoTypeTyping, optional
|
|
370
|
+
:param revision: The revision of the repository.
|
|
371
|
+
:type revision: str, optional
|
|
372
|
+
:param idx_repo_id: The identifier of the index repository.
|
|
373
|
+
:type idx_repo_id: str, optional
|
|
374
|
+
:param idx_file_in_repo: The path to the index file in the index repository.
|
|
375
|
+
:type idx_file_in_repo: str, optional
|
|
376
|
+
:param idx_repo_type: The type of the index repository.
|
|
377
|
+
:type idx_repo_type: RepoTypeTyping, optional
|
|
378
|
+
:param idx_revision: The revision of the index repository.
|
|
379
|
+
:type idx_revision: str, optional
|
|
380
|
+
:param hf_token: The Hugging Face access token.
|
|
381
|
+
:type hf_token: str, optional
|
|
382
|
+
:return: Return an integer which represents the size of this file.
|
|
383
|
+
:rtype: int
|
|
384
|
+
:raises FileNotFoundError: Raise this when file not exist in tar archive.
|
|
385
|
+
|
|
386
|
+
Examples::
|
|
387
|
+
>>> from hfutils.index import hf_tar_file_size
|
|
388
|
+
>>>
|
|
389
|
+
>>> hf_tar_file_size(
|
|
390
|
+
... repo_id='deepghs/danbooru_newest',
|
|
391
|
+
... archive_in_repo='images/0000.tar',
|
|
392
|
+
... file_in_archive='7506000.jpg',
|
|
393
|
+
... )
|
|
394
|
+
435671
|
|
395
|
+
|
|
396
|
+
.. note::
|
|
397
|
+
|
|
398
|
+
Besides, if the tar and index files are in different repositories, you can also use this function to
|
|
399
|
+
get the file size by explicitly assigning the ``idx_repo_id`` argument.
|
|
400
|
+
|
|
401
|
+
>>> from hfutils.index import hf_tar_file_size
|
|
402
|
+
>>>
|
|
403
|
+
>>> hf_tar_file_size(
|
|
404
|
+
... repo_id='nyanko7/danbooru2023',
|
|
405
|
+
... idx_repo_id='deepghs/danbooru2023_index',
|
|
406
|
+
... archive_in_repo='original/data-0000.tar',
|
|
407
|
+
... file_in_archive='1000.png'
|
|
408
|
+
... )
|
|
409
|
+
11966
|
|
410
|
+
"""
|
|
411
|
+
return hf_tar_file_info(
|
|
412
|
+
repo_id=repo_id,
|
|
413
|
+
archive_in_repo=archive_in_repo,
|
|
414
|
+
file_in_archive=file_in_archive,
|
|
415
|
+
repo_type=repo_type,
|
|
416
|
+
revision=revision,
|
|
417
|
+
idx_repo_id=idx_repo_id,
|
|
418
|
+
idx_file_in_repo=idx_file_in_repo,
|
|
419
|
+
idx_repo_type=idx_repo_type,
|
|
420
|
+
idx_revision=idx_revision,
|
|
421
|
+
hf_token=hf_token
|
|
422
|
+
)['size']
|
|
423
|
+
|
|
424
|
+
|
|
183
425
|
def hf_tar_file_download(repo_id: str, archive_in_repo: str, file_in_archive: str, local_file: str,
|
|
184
426
|
repo_type: RepoTypeTyping = 'dataset', revision: str = 'main',
|
|
185
427
|
idx_repo_id: Optional[str] = None, idx_file_in_repo: Optional[str] = None,
|
|
@@ -220,6 +462,34 @@ def hf_tar_file_download(repo_id: str, archive_in_repo: str, file_in_archive: st
|
|
|
220
462
|
:type endpoint: str, optional
|
|
221
463
|
:param hf_token: The Hugging Face access token.
|
|
222
464
|
:type hf_token: str, optional
|
|
465
|
+
:raises FileNotFoundError: Raise this when file not exist in tar archive.
|
|
466
|
+
:raises ArchiveStandaloneFileIncompleteDownload: Raise when download incomplete.
|
|
467
|
+
:raises ArchiveStandaloneFileHashNotMatch: Raise when download hash not match.
|
|
468
|
+
|
|
469
|
+
Examples::
|
|
470
|
+
>>> from hfutils.index import hf_tar_file_download
|
|
471
|
+
>>>
|
|
472
|
+
>>> hf_tar_file_download(
|
|
473
|
+
... repo_id='deepghs/danbooru_newest',
|
|
474
|
+
... archive_in_repo='images/0000.tar',
|
|
475
|
+
... file_in_archive='7506000.jpg',
|
|
476
|
+
... local_file='test_example.jpg' # download destination
|
|
477
|
+
... )
|
|
478
|
+
|
|
479
|
+
.. note::
|
|
480
|
+
|
|
481
|
+
Besides, if the tar and index files are in different repositories, you can also use this function to
|
|
482
|
+
download the given file by explicitly assigning the ``idx_repo_id`` argument.
|
|
483
|
+
|
|
484
|
+
>>> from hfutils.index import hf_tar_file_download
|
|
485
|
+
>>>
|
|
486
|
+
>>> hf_tar_file_download(
|
|
487
|
+
... repo_id='nyanko7/danbooru2023',
|
|
488
|
+
... idx_repo_id='deepghs/danbooru2023_index',
|
|
489
|
+
... archive_in_repo='original/data-0000.tar',
|
|
490
|
+
... file_in_archive='1000.png',
|
|
491
|
+
... local_file='test_example.png' # download destination
|
|
492
|
+
... )
|
|
223
493
|
"""
|
|
224
494
|
index = hf_tar_get_index(
|
|
225
495
|
repo_id=repo_id,
|
|
@@ -16,6 +16,9 @@ def tar_get_index_info(src_tar_file, chunk_for_hash: int = 1 << 20, with_hash: b
|
|
|
16
16
|
"""
|
|
17
17
|
Get the index information of a tar archive file.
|
|
18
18
|
|
|
19
|
+
.. note::
|
|
20
|
+
The return value of this function will be directly used as the index json file.
|
|
21
|
+
|
|
19
22
|
:param src_tar_file: The path to the source tar archive file.
|
|
20
23
|
:type src_tar_file: str
|
|
21
24
|
:param chunk_for_hash: The chunk size for hashing, defaults to 1 << 20 (1 MB).
|
|
@@ -48,6 +48,9 @@ def hf_tar_validate(repo_id: str, archive_in_repo: str, repo_type: RepoTypeTypin
|
|
|
48
48
|
|
|
49
49
|
This function validates if the tar archive in the Hugging Face repository matches the expected size and hash.
|
|
50
50
|
|
|
51
|
+
.. note::
|
|
52
|
+
This function is based on Huggingface API and hash information in index files, no tar file will be downloaded.
|
|
53
|
+
|
|
51
54
|
:param repo_id: The ID of the Hugging Face repository.
|
|
52
55
|
:type repo_id: str
|
|
53
56
|
:param archive_in_repo: The path to the tar archive in the repository.
|
|
@@ -70,6 +73,13 @@ def hf_tar_validate(repo_id: str, archive_in_repo: str, repo_type: RepoTypeTypin
|
|
|
70
73
|
:raises IsADirectoryError: If the specified entry is a directory.
|
|
71
74
|
:return: True if the tar archive is valid, False otherwise.
|
|
72
75
|
:rtype: bool
|
|
76
|
+
|
|
77
|
+
.. note::
|
|
78
|
+
|
|
79
|
+
If this function returns `False`, it means the json index is expired and need to be re-generated.
|
|
80
|
+
|
|
81
|
+
So this function and :func:`hfutils.index.make.hf_tar_create_index` can be used together to gracefully
|
|
82
|
+
refresh an indexed tar dataset.
|
|
73
83
|
"""
|
|
74
84
|
hf_client = get_hf_client(hf_token)
|
|
75
85
|
|
|
@@ -44,8 +44,6 @@ def download_file_to_file(local_file: str, repo_id: str, file_in_repo: str,
|
|
|
44
44
|
filename=hf_normpath(file_in_repo),
|
|
45
45
|
revision=revision,
|
|
46
46
|
local_dir=td,
|
|
47
|
-
force_download=True,
|
|
48
|
-
local_dir_use_symlinks=False,
|
|
49
47
|
resume_download=resume_download,
|
|
50
48
|
)
|
|
51
49
|
finally:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: hfutils
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.8
|
|
4
4
|
Summary: Useful utilities for huggingface
|
|
5
5
|
Home-page: https://github.com/deepghs/hfutils
|
|
6
6
|
Author: narugo1992
|
|
@@ -20,8 +20,8 @@ Classifier: Programming Language :: Python :: 3.12
|
|
|
20
20
|
Requires-Python: >=3.8
|
|
21
21
|
Description-Content-Type: text/markdown
|
|
22
22
|
License-File: LICENSE
|
|
23
|
-
Requires-Dist: hbutils>=0.9.
|
|
24
|
-
Requires-Dist: huggingface_hub>=0.
|
|
23
|
+
Requires-Dist: hbutils>=0.9.3
|
|
24
|
+
Requires-Dist: huggingface_hub>=0.23
|
|
25
25
|
Requires-Dist: tqdm
|
|
26
26
|
Requires-Dist: requests
|
|
27
27
|
Requires-Dist: click>=7
|
|
@@ -29,6 +29,7 @@ Requires-Dist: tzlocal
|
|
|
29
29
|
Requires-Dist: natsort
|
|
30
30
|
Provides-Extra: build
|
|
31
31
|
Requires-Dist: pyinstaller<5,>=4.7; extra == "build"
|
|
32
|
+
Requires-Dist: setuptools<70; extra == "build"
|
|
32
33
|
Provides-Extra: doc
|
|
33
34
|
Requires-Dist: Jinja2>=3.0.0; extra == "doc"
|
|
34
35
|
Requires-Dist: sphinx>=3.2.0; extra == "doc"
|
|
@@ -1,662 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"datasets": [
|
|
3
|
-
"acronym_identification",
|
|
4
|
-
"ade_corpus_v2",
|
|
5
|
-
"adv_glue",
|
|
6
|
-
"aeslc",
|
|
7
|
-
"afrikaans_ner_corpus",
|
|
8
|
-
"ag_news",
|
|
9
|
-
"air_dialogue",
|
|
10
|
-
"ajgt_twitter_ar",
|
|
11
|
-
"allegro_reviews",
|
|
12
|
-
"allocine",
|
|
13
|
-
"alt",
|
|
14
|
-
"amazon_polarity",
|
|
15
|
-
"amazon_reviews_multi",
|
|
16
|
-
"amazon_us_reviews",
|
|
17
|
-
"ambig_qa",
|
|
18
|
-
"ami",
|
|
19
|
-
"amttl",
|
|
20
|
-
"app_reviews",
|
|
21
|
-
"aqua_rat",
|
|
22
|
-
"aquamuse",
|
|
23
|
-
"ar_res_reviews",
|
|
24
|
-
"ar_sarcasm",
|
|
25
|
-
"arabic_billion_words",
|
|
26
|
-
"arabic_pos_dialect",
|
|
27
|
-
"arabic_speech_corpus",
|
|
28
|
-
"arcd",
|
|
29
|
-
"arsentd_lev",
|
|
30
|
-
"art",
|
|
31
|
-
"arxiv_dataset",
|
|
32
|
-
"ascent_kb",
|
|
33
|
-
"aslg_pc12",
|
|
34
|
-
"asnq",
|
|
35
|
-
"assin",
|
|
36
|
-
"assin2",
|
|
37
|
-
"atomic",
|
|
38
|
-
"autshumato",
|
|
39
|
-
"banking77",
|
|
40
|
-
"bbaw_egyptian",
|
|
41
|
-
"bbc_hindi_nli",
|
|
42
|
-
"bc2gm_corpus",
|
|
43
|
-
"best2009",
|
|
44
|
-
"bible_para",
|
|
45
|
-
"big_patent",
|
|
46
|
-
"bigbench",
|
|
47
|
-
"billsum",
|
|
48
|
-
"bing_coronavirus_query_set",
|
|
49
|
-
"biomrc",
|
|
50
|
-
"biosses",
|
|
51
|
-
"biwi_kinect_head_pose",
|
|
52
|
-
"blended_skill_talk",
|
|
53
|
-
"blog_authorship_corpus",
|
|
54
|
-
"bn_hate_speech",
|
|
55
|
-
"bnl_newspapers",
|
|
56
|
-
"bookcorpus",
|
|
57
|
-
"bookcorpusopen",
|
|
58
|
-
"bprec",
|
|
59
|
-
"break_data",
|
|
60
|
-
"brwac",
|
|
61
|
-
"bsd_ja_en",
|
|
62
|
-
"bswac",
|
|
63
|
-
"c3",
|
|
64
|
-
"c4",
|
|
65
|
-
"cail2018",
|
|
66
|
-
"caner",
|
|
67
|
-
"casino",
|
|
68
|
-
"catalonia_independence",
|
|
69
|
-
"cats_vs_dogs",
|
|
70
|
-
"cawac",
|
|
71
|
-
"cbt",
|
|
72
|
-
"cc100",
|
|
73
|
-
"ccaligned_multilingual",
|
|
74
|
-
"cdsc",
|
|
75
|
-
"cdt",
|
|
76
|
-
"cedr",
|
|
77
|
-
"cfq",
|
|
78
|
-
"chr_en",
|
|
79
|
-
"cifar10",
|
|
80
|
-
"cifar100",
|
|
81
|
-
"circa",
|
|
82
|
-
"clickbait_news_bg",
|
|
83
|
-
"climate_fever",
|
|
84
|
-
"clinc_oos",
|
|
85
|
-
"clue",
|
|
86
|
-
"cmrc2018",
|
|
87
|
-
"cmu_hinglish_dog",
|
|
88
|
-
"cnn_dailymail",
|
|
89
|
-
"coached_conv_pref",
|
|
90
|
-
"coarse_discourse",
|
|
91
|
-
"codah",
|
|
92
|
-
"code_search_net",
|
|
93
|
-
"code_x_glue_cc_clone_detection_big_clone_bench",
|
|
94
|
-
"code_x_glue_cc_clone_detection_poj104",
|
|
95
|
-
"code_x_glue_cc_cloze_testing_all",
|
|
96
|
-
"code_x_glue_cc_cloze_testing_maxmin",
|
|
97
|
-
"code_x_glue_cc_code_completion_line",
|
|
98
|
-
"code_x_glue_cc_code_completion_token",
|
|
99
|
-
"code_x_glue_cc_code_refinement",
|
|
100
|
-
"code_x_glue_cc_code_to_code_trans",
|
|
101
|
-
"code_x_glue_cc_defect_detection",
|
|
102
|
-
"code_x_glue_ct_code_to_text",
|
|
103
|
-
"code_x_glue_tc_nl_code_search_adv",
|
|
104
|
-
"code_x_glue_tc_text_to_code",
|
|
105
|
-
"code_x_glue_tt_text_to_text",
|
|
106
|
-
"com_qa",
|
|
107
|
-
"common_language",
|
|
108
|
-
"common_voice",
|
|
109
|
-
"compguesswhat",
|
|
110
|
-
"conceptnet5",
|
|
111
|
-
"conceptual_12m",
|
|
112
|
-
"conceptual_captions",
|
|
113
|
-
"conll2000",
|
|
114
|
-
"conll2002",
|
|
115
|
-
"conll2003",
|
|
116
|
-
"conll2012_ontonotesv5",
|
|
117
|
-
"conllpp",
|
|
118
|
-
"consumer-finance-complaints",
|
|
119
|
-
"conv_ai",
|
|
120
|
-
"conv_ai_2",
|
|
121
|
-
"conv_ai_3",
|
|
122
|
-
"conv_questions",
|
|
123
|
-
"cornell_movie_dialog",
|
|
124
|
-
"cos_e",
|
|
125
|
-
"cosmos_qa",
|
|
126
|
-
"counter",
|
|
127
|
-
"covid_qa_castorini",
|
|
128
|
-
"covid_qa_deepset",
|
|
129
|
-
"covid_qa_ucsd",
|
|
130
|
-
"covid_tweets_japanese",
|
|
131
|
-
"covost2",
|
|
132
|
-
"cppe-5",
|
|
133
|
-
"craigslist_bargains",
|
|
134
|
-
"crawl_domain",
|
|
135
|
-
"crd3",
|
|
136
|
-
"crime_and_punish",
|
|
137
|
-
"crows_pairs",
|
|
138
|
-
"cryptonite",
|
|
139
|
-
"cs_restaurants",
|
|
140
|
-
"cuad",
|
|
141
|
-
"curiosity_dialogs",
|
|
142
|
-
"daily_dialog",
|
|
143
|
-
"dane",
|
|
144
|
-
"danish_political_comments",
|
|
145
|
-
"dart",
|
|
146
|
-
"datacommons_factcheck",
|
|
147
|
-
"dbrd",
|
|
148
|
-
"deal_or_no_dialog",
|
|
149
|
-
"definite_pronoun_resolution",
|
|
150
|
-
"dengue_filipino",
|
|
151
|
-
"dialog_re",
|
|
152
|
-
"diplomacy_detection",
|
|
153
|
-
"disaster_response_messages",
|
|
154
|
-
"discofuse",
|
|
155
|
-
"discovery",
|
|
156
|
-
"disfl_qa",
|
|
157
|
-
"doc2dial",
|
|
158
|
-
"docred",
|
|
159
|
-
"doqa",
|
|
160
|
-
"dream",
|
|
161
|
-
"dutch_social",
|
|
162
|
-
"dyk",
|
|
163
|
-
"e2e_nlg",
|
|
164
|
-
"e2e_nlg_cleaned",
|
|
165
|
-
"ecb",
|
|
166
|
-
"ecthr_cases",
|
|
167
|
-
"eduge",
|
|
168
|
-
"ehealth_kd",
|
|
169
|
-
"electricity_load_diagrams",
|
|
170
|
-
"eli5",
|
|
171
|
-
"eli5_category",
|
|
172
|
-
"elkarhizketak",
|
|
173
|
-
"emea",
|
|
174
|
-
"emo",
|
|
175
|
-
"emotone_ar",
|
|
176
|
-
"empathetic_dialogues",
|
|
177
|
-
"enriched_web_nlg",
|
|
178
|
-
"enwik8",
|
|
179
|
-
"eraser_multi_rc",
|
|
180
|
-
"esnli",
|
|
181
|
-
"eth_py150_open",
|
|
182
|
-
"ethos",
|
|
183
|
-
"ett",
|
|
184
|
-
"eu_regulatory_ir",
|
|
185
|
-
"eurlex",
|
|
186
|
-
"euronews",
|
|
187
|
-
"europa_eac_tm",
|
|
188
|
-
"europa_ecdc_tm",
|
|
189
|
-
"event2Mind",
|
|
190
|
-
"evidence_infer_treatment",
|
|
191
|
-
"factckbr",
|
|
192
|
-
"fake_news_english",
|
|
193
|
-
"fake_news_filipino",
|
|
194
|
-
"farsi_news",
|
|
195
|
-
"fashion_mnist",
|
|
196
|
-
"fever",
|
|
197
|
-
"few_rel",
|
|
198
|
-
"financial_phrasebank",
|
|
199
|
-
"finer",
|
|
200
|
-
"flores",
|
|
201
|
-
"flue",
|
|
202
|
-
"food101",
|
|
203
|
-
"fquad",
|
|
204
|
-
"freebase_qa",
|
|
205
|
-
"gap",
|
|
206
|
-
"gem",
|
|
207
|
-
"generated_reviews_enth",
|
|
208
|
-
"generics_kb",
|
|
209
|
-
"german_legal_entity_recognition",
|
|
210
|
-
"germaner",
|
|
211
|
-
"germeval_14",
|
|
212
|
-
"giga_fren",
|
|
213
|
-
"gigaword",
|
|
214
|
-
"glucose",
|
|
215
|
-
"gnad10",
|
|
216
|
-
"go_emotions",
|
|
217
|
-
"gooaq",
|
|
218
|
-
"google_wellformed_query",
|
|
219
|
-
"grail_qa",
|
|
220
|
-
"great_code",
|
|
221
|
-
"gsm8k",
|
|
222
|
-
"guardian_authorship",
|
|
223
|
-
"gutenberg_time",
|
|
224
|
-
"hans",
|
|
225
|
-
"hansards",
|
|
226
|
-
"hard",
|
|
227
|
-
"harem",
|
|
228
|
-
"has_part",
|
|
229
|
-
"hate_offensive",
|
|
230
|
-
"hate_speech18",
|
|
231
|
-
"hate_speech_filipino",
|
|
232
|
-
"hate_speech_pl",
|
|
233
|
-
"hate_speech_portuguese",
|
|
234
|
-
"hatexplain",
|
|
235
|
-
"hausa_voa_ner",
|
|
236
|
-
"hausa_voa_topics",
|
|
237
|
-
"hda_nli_hindi",
|
|
238
|
-
"head_qa",
|
|
239
|
-
"health_fact",
|
|
240
|
-
"hebrew_projectbenyehuda",
|
|
241
|
-
"hebrew_sentiment",
|
|
242
|
-
"hebrew_this_world",
|
|
243
|
-
"hind_encorp",
|
|
244
|
-
"hindi_discourse",
|
|
245
|
-
"hippocorpus",
|
|
246
|
-
"hkcancor",
|
|
247
|
-
"hlgd",
|
|
248
|
-
"hope_edi",
|
|
249
|
-
"hotpot_qa",
|
|
250
|
-
"hover",
|
|
251
|
-
"hrenwac_para",
|
|
252
|
-
"hrwac",
|
|
253
|
-
"humicroedit",
|
|
254
|
-
"hybrid_qa",
|
|
255
|
-
"hyperpartisan_news_detection",
|
|
256
|
-
"iapp_wiki_qa_squad",
|
|
257
|
-
"id_clickbait",
|
|
258
|
-
"id_liputan6",
|
|
259
|
-
"id_nergrit_corpus",
|
|
260
|
-
"id_newspapers_2018",
|
|
261
|
-
"id_panl_bppt",
|
|
262
|
-
"id_puisi",
|
|
263
|
-
"igbo_english_machine_translation",
|
|
264
|
-
"igbo_monolingual",
|
|
265
|
-
"igbo_ner",
|
|
266
|
-
"ilist",
|
|
267
|
-
"imagenet-1k",
|
|
268
|
-
"imagenet_sketch",
|
|
269
|
-
"imdb_urdu_reviews",
|
|
270
|
-
"imppres",
|
|
271
|
-
"indic_glue",
|
|
272
|
-
"indonli",
|
|
273
|
-
"inquisitive_qg",
|
|
274
|
-
"interpress_news_category_tr",
|
|
275
|
-
"interpress_news_category_tr_lite",
|
|
276
|
-
"irc_disentangle",
|
|
277
|
-
"isixhosa_ner_corpus",
|
|
278
|
-
"isizulu_ner_corpus",
|
|
279
|
-
"iwslt2017",
|
|
280
|
-
"jeopardy",
|
|
281
|
-
"jnlpba",
|
|
282
|
-
"journalists_questions",
|
|
283
|
-
"kan_hope",
|
|
284
|
-
"kannada_news",
|
|
285
|
-
"kd_conv",
|
|
286
|
-
"kde4",
|
|
287
|
-
"kelm",
|
|
288
|
-
"kilt_tasks",
|
|
289
|
-
"kilt_wikipedia",
|
|
290
|
-
"kinnews_kirnews",
|
|
291
|
-
"klue",
|
|
292
|
-
"kor_3i4k",
|
|
293
|
-
"kor_hate",
|
|
294
|
-
"kor_ner",
|
|
295
|
-
"kor_nli",
|
|
296
|
-
"kor_nlu",
|
|
297
|
-
"kor_qpair",
|
|
298
|
-
"kor_sae",
|
|
299
|
-
"kor_sarcasm",
|
|
300
|
-
"labr",
|
|
301
|
-
"lama",
|
|
302
|
-
"large_spanish_corpus",
|
|
303
|
-
"laroseda",
|
|
304
|
-
"lc_quad",
|
|
305
|
-
"lccc",
|
|
306
|
-
"lener_br",
|
|
307
|
-
"liar",
|
|
308
|
-
"librispeech_asr",
|
|
309
|
-
"librispeech_lm",
|
|
310
|
-
"limit",
|
|
311
|
-
"lince",
|
|
312
|
-
"linnaeus",
|
|
313
|
-
"liveqa",
|
|
314
|
-
"lj_speech",
|
|
315
|
-
"lm1b",
|
|
316
|
-
"lst20",
|
|
317
|
-
"m_lama",
|
|
318
|
-
"mac_morpho",
|
|
319
|
-
"makhzan",
|
|
320
|
-
"masakhaner",
|
|
321
|
-
"math_dataset",
|
|
322
|
-
"math_qa",
|
|
323
|
-
"matinf",
|
|
324
|
-
"mbpp",
|
|
325
|
-
"mc4",
|
|
326
|
-
"mc_taco",
|
|
327
|
-
"md_gender_bias",
|
|
328
|
-
"mdd",
|
|
329
|
-
"med_hop",
|
|
330
|
-
"medal",
|
|
331
|
-
"medical_dialog",
|
|
332
|
-
"medical_questions_pairs",
|
|
333
|
-
"menyo20k_mt",
|
|
334
|
-
"meta_woz",
|
|
335
|
-
"metashift",
|
|
336
|
-
"metooma",
|
|
337
|
-
"metrec",
|
|
338
|
-
"miam",
|
|
339
|
-
"mkb",
|
|
340
|
-
"mkqa",
|
|
341
|
-
"mlqa",
|
|
342
|
-
"mlsum",
|
|
343
|
-
"mnist",
|
|
344
|
-
"mocha",
|
|
345
|
-
"monash_tsf",
|
|
346
|
-
"moroco",
|
|
347
|
-
"movie_rationales",
|
|
348
|
-
"mrqa",
|
|
349
|
-
"ms_marco",
|
|
350
|
-
"ms_terms",
|
|
351
|
-
"msr_genomics_kbcomp",
|
|
352
|
-
"msr_sqa",
|
|
353
|
-
"msr_text_compression",
|
|
354
|
-
"msr_zhen_translation_parity",
|
|
355
|
-
"msra_ner",
|
|
356
|
-
"mt_eng_vietnamese",
|
|
357
|
-
"muchocine",
|
|
358
|
-
"multi_booked",
|
|
359
|
-
"multi_news",
|
|
360
|
-
"multi_nli_mismatch",
|
|
361
|
-
"multi_para_crawl",
|
|
362
|
-
"multi_re_qa",
|
|
363
|
-
"multi_woz_v22",
|
|
364
|
-
"multi_x_science_sum",
|
|
365
|
-
"multidoc2dial",
|
|
366
|
-
"multilingual_librispeech",
|
|
367
|
-
"mutual_friends",
|
|
368
|
-
"mwsc",
|
|
369
|
-
"myanmar_news",
|
|
370
|
-
"narrativeqa",
|
|
371
|
-
"narrativeqa_manual",
|
|
372
|
-
"natural_questions",
|
|
373
|
-
"ncbi_disease",
|
|
374
|
-
"nchlt",
|
|
375
|
-
"ncslgr",
|
|
376
|
-
"nell",
|
|
377
|
-
"neural_code_search",
|
|
378
|
-
"newsgroup",
|
|
379
|
-
"newsph",
|
|
380
|
-
"newsph_nli",
|
|
381
|
-
"newspop",
|
|
382
|
-
"newsqa",
|
|
383
|
-
"newsroom",
|
|
384
|
-
"nkjp-ner",
|
|
385
|
-
"nli_tr",
|
|
386
|
-
"nlu_evaluation_data",
|
|
387
|
-
"norec",
|
|
388
|
-
"norne",
|
|
389
|
-
"norwegian_ner",
|
|
390
|
-
"nq_open",
|
|
391
|
-
"nsmc",
|
|
392
|
-
"numer_sense",
|
|
393
|
-
"numeric_fused_head",
|
|
394
|
-
"oclar",
|
|
395
|
-
"offcombr",
|
|
396
|
-
"offenseval2020_tr",
|
|
397
|
-
"offenseval_dravidian",
|
|
398
|
-
"ofis_publik",
|
|
399
|
-
"ohsumed",
|
|
400
|
-
"ollie",
|
|
401
|
-
"omp",
|
|
402
|
-
"onestop_english",
|
|
403
|
-
"onestop_qa",
|
|
404
|
-
"open_subtitles",
|
|
405
|
-
"openai_humaneval",
|
|
406
|
-
"openslr",
|
|
407
|
-
"opinosis",
|
|
408
|
-
"orange_sum",
|
|
409
|
-
"oscar",
|
|
410
|
-
"para_crawl",
|
|
411
|
-
"para_pat",
|
|
412
|
-
"parsinlu_reading_comprehension",
|
|
413
|
-
"pass",
|
|
414
|
-
"paws",
|
|
415
|
-
"paws-x",
|
|
416
|
-
"pec",
|
|
417
|
-
"peoples_daily_ner",
|
|
418
|
-
"per_sent",
|
|
419
|
-
"persian_ner",
|
|
420
|
-
"pg19",
|
|
421
|
-
"php",
|
|
422
|
-
"pib",
|
|
423
|
-
"piqa",
|
|
424
|
-
"pn_summary",
|
|
425
|
-
"poem_sentiment",
|
|
426
|
-
"polemo2",
|
|
427
|
-
"poleval2019_cyberbullying",
|
|
428
|
-
"poleval2019_mt",
|
|
429
|
-
"polsum",
|
|
430
|
-
"polyglot_ner",
|
|
431
|
-
"prachathai67k",
|
|
432
|
-
"pragmeval",
|
|
433
|
-
"proto_qa",
|
|
434
|
-
"psc",
|
|
435
|
-
"ptb_text_only",
|
|
436
|
-
"pubmed",
|
|
437
|
-
"py_ast",
|
|
438
|
-
"qa4mre",
|
|
439
|
-
"qa_srl",
|
|
440
|
-
"qa_zre",
|
|
441
|
-
"qangaroo",
|
|
442
|
-
"qanta",
|
|
443
|
-
"qed",
|
|
444
|
-
"qed_amara",
|
|
445
|
-
"quac",
|
|
446
|
-
"quail",
|
|
447
|
-
"quarel",
|
|
448
|
-
"quickdraw",
|
|
449
|
-
"quora",
|
|
450
|
-
"quoref",
|
|
451
|
-
"re_dial",
|
|
452
|
-
"reasoning_bg",
|
|
453
|
-
"recipe_nlg",
|
|
454
|
-
"reclor",
|
|
455
|
-
"red_caps",
|
|
456
|
-
"reddit_tifu",
|
|
457
|
-
"refresd",
|
|
458
|
-
"reuters21578",
|
|
459
|
-
"riddle_sense",
|
|
460
|
-
"ro_sent",
|
|
461
|
-
"ro_sts",
|
|
462
|
-
"ro_sts_parallel",
|
|
463
|
-
"roman_urdu",
|
|
464
|
-
"roman_urdu_hate_speech",
|
|
465
|
-
"ronec",
|
|
466
|
-
"rotten_tomatoes",
|
|
467
|
-
"samsum",
|
|
468
|
-
"sanskrit_classic",
|
|
469
|
-
"saudinewsnet",
|
|
470
|
-
"sberquad",
|
|
471
|
-
"sbu_captions",
|
|
472
|
-
"scan",
|
|
473
|
-
"scb_mt_enth_2020",
|
|
474
|
-
"scene_parse_150",
|
|
475
|
-
"schema_guided_dstc8",
|
|
476
|
-
"scielo",
|
|
477
|
-
"scientific_papers",
|
|
478
|
-
"search_qa",
|
|
479
|
-
"sede",
|
|
480
|
-
"selqa",
|
|
481
|
-
"sem_eval_2010_task_8",
|
|
482
|
-
"sem_eval_2014_task_1",
|
|
483
|
-
"sem_eval_2018_task_1",
|
|
484
|
-
"sem_eval_2020_task_11",
|
|
485
|
-
"sent_comp",
|
|
486
|
-
"senti_lex",
|
|
487
|
-
"senti_ws",
|
|
488
|
-
"sentiment140",
|
|
489
|
-
"sepedi_ner",
|
|
490
|
-
"sesotho_ner_corpus",
|
|
491
|
-
"setimes",
|
|
492
|
-
"setswana_ner_corpus",
|
|
493
|
-
"sharc_modified",
|
|
494
|
-
"sick",
|
|
495
|
-
"silicone",
|
|
496
|
-
"simple_questions_v2",
|
|
497
|
-
"siswati_ner_corpus",
|
|
498
|
-
"smartdata",
|
|
499
|
-
"sms_spam",
|
|
500
|
-
"snips_built_in_intents",
|
|
501
|
-
"snow_simplified_japanese_corpus",
|
|
502
|
-
"so_stacksample",
|
|
503
|
-
"social_bias_frames",
|
|
504
|
-
"social_i_qa",
|
|
505
|
-
"sofc_materials_articles",
|
|
506
|
-
"sogou_news",
|
|
507
|
-
"spanish_billion_words",
|
|
508
|
-
"spc",
|
|
509
|
-
"species_800",
|
|
510
|
-
"speech_commands",
|
|
511
|
-
"squad_adversarial",
|
|
512
|
-
"squad_es",
|
|
513
|
-
"squad_it",
|
|
514
|
-
"squad_kor_v1",
|
|
515
|
-
"squad_kor_v2",
|
|
516
|
-
"squad_v1_pt",
|
|
517
|
-
"squadshifts",
|
|
518
|
-
"srwac",
|
|
519
|
-
"sst",
|
|
520
|
-
"story_cloze",
|
|
521
|
-
"stsb_mt_sv",
|
|
522
|
-
"style_change_detection",
|
|
523
|
-
"subjqa",
|
|
524
|
-
"super_glue",
|
|
525
|
-
"superb",
|
|
526
|
-
"svhn",
|
|
527
|
-
"swag",
|
|
528
|
-
"swahili",
|
|
529
|
-
"swahili_news",
|
|
530
|
-
"swda",
|
|
531
|
-
"swedish_medical_ner",
|
|
532
|
-
"swedish_ner_corpus",
|
|
533
|
-
"swedish_reviews",
|
|
534
|
-
"tab_fact",
|
|
535
|
-
"tamilmixsentiment",
|
|
536
|
-
"tanzil",
|
|
537
|
-
"tapaco",
|
|
538
|
-
"tashkeela",
|
|
539
|
-
"taskmaster1",
|
|
540
|
-
"taskmaster2",
|
|
541
|
-
"taskmaster3",
|
|
542
|
-
"tatoeba",
|
|
543
|
-
"ted_hrlr",
|
|
544
|
-
"ted_iwlst2013",
|
|
545
|
-
"ted_multi",
|
|
546
|
-
"ted_talks_iwslt",
|
|
547
|
-
"telugu_books",
|
|
548
|
-
"telugu_news",
|
|
549
|
-
"tep_en_fa_para",
|
|
550
|
-
"text2log",
|
|
551
|
-
"textvqa",
|
|
552
|
-
"thai_toxicity_tweet",
|
|
553
|
-
"thainer",
|
|
554
|
-
"thaiqa_squad",
|
|
555
|
-
"thaisum",
|
|
556
|
-
"the_pile_books3",
|
|
557
|
-
"the_pile_openwebtext2",
|
|
558
|
-
"the_pile_stack_exchange",
|
|
559
|
-
"tilde_model",
|
|
560
|
-
"time_dial",
|
|
561
|
-
"times_of_india_news_headlines",
|
|
562
|
-
"timit_asr",
|
|
563
|
-
"tlc",
|
|
564
|
-
"tmu_gfm_dataset",
|
|
565
|
-
"tne",
|
|
566
|
-
"told-br",
|
|
567
|
-
"totto",
|
|
568
|
-
"trec",
|
|
569
|
-
"truthful_qa",
|
|
570
|
-
"tsac",
|
|
571
|
-
"ttc4900",
|
|
572
|
-
"tunizi",
|
|
573
|
-
"tuple_ie",
|
|
574
|
-
"turk",
|
|
575
|
-
"turkic_xwmt",
|
|
576
|
-
"turkish_movie_sentiment",
|
|
577
|
-
"turkish_ner",
|
|
578
|
-
"turkish_product_reviews",
|
|
579
|
-
"turkish_shrinked_ner",
|
|
580
|
-
"turku_ner_corpus",
|
|
581
|
-
"tweet_eval",
|
|
582
|
-
"tweet_qa",
|
|
583
|
-
"tweets_ar_en_parallel",
|
|
584
|
-
"tweets_hate_speech_detection",
|
|
585
|
-
"twi_text_c3",
|
|
586
|
-
"twi_wordsim353",
|
|
587
|
-
"tydiqa",
|
|
588
|
-
"ubuntu_dialogs_corpus",
|
|
589
|
-
"udhr",
|
|
590
|
-
"um005",
|
|
591
|
-
"universal_dependencies",
|
|
592
|
-
"universal_morphologies",
|
|
593
|
-
"urdu_fake_news",
|
|
594
|
-
"urdu_sentiment_corpus",
|
|
595
|
-
"vctk",
|
|
596
|
-
"visual_genome",
|
|
597
|
-
"vivos",
|
|
598
|
-
"web_nlg",
|
|
599
|
-
"web_of_science",
|
|
600
|
-
"web_questions",
|
|
601
|
-
"weibo_ner",
|
|
602
|
-
"wi_locness",
|
|
603
|
-
"wider_face",
|
|
604
|
-
"wiki40b",
|
|
605
|
-
"wiki_asp",
|
|
606
|
-
"wiki_atomic_edits",
|
|
607
|
-
"wiki_auto",
|
|
608
|
-
"wiki_bio",
|
|
609
|
-
"wiki_dpr",
|
|
610
|
-
"wiki_hop",
|
|
611
|
-
"wiki_lingua",
|
|
612
|
-
"wiki_movies",
|
|
613
|
-
"wiki_qa",
|
|
614
|
-
"wiki_qa_ar",
|
|
615
|
-
"wiki_snippets",
|
|
616
|
-
"wiki_source",
|
|
617
|
-
"wiki_split",
|
|
618
|
-
"wiki_summary",
|
|
619
|
-
"wikiann",
|
|
620
|
-
"wikicorpus",
|
|
621
|
-
"wikihow",
|
|
622
|
-
"wikipedia",
|
|
623
|
-
"wikisql",
|
|
624
|
-
"wikitablequestions",
|
|
625
|
-
"wikitext",
|
|
626
|
-
"wikitext_tl39",
|
|
627
|
-
"wili_2018",
|
|
628
|
-
"wino_bias",
|
|
629
|
-
"winograd_wsc",
|
|
630
|
-
"winogrande",
|
|
631
|
-
"wiqa",
|
|
632
|
-
"wisesight1000",
|
|
633
|
-
"wisesight_sentiment",
|
|
634
|
-
"wnut_17",
|
|
635
|
-
"wongnai_reviews",
|
|
636
|
-
"woz_dialogue",
|
|
637
|
-
"wrbsc",
|
|
638
|
-
"x_stance",
|
|
639
|
-
"xcopa",
|
|
640
|
-
"xcsr",
|
|
641
|
-
"xed_en_fi",
|
|
642
|
-
"xglue",
|
|
643
|
-
"xnli",
|
|
644
|
-
"xor_tydi_qa",
|
|
645
|
-
"xquad",
|
|
646
|
-
"xquad_r",
|
|
647
|
-
"xsum_factuality",
|
|
648
|
-
"xtreme",
|
|
649
|
-
"yahoo_answers_qa",
|
|
650
|
-
"yahoo_answers_topics",
|
|
651
|
-
"yelp_polarity",
|
|
652
|
-
"yelp_review_full",
|
|
653
|
-
"yoruba_bbc_topics",
|
|
654
|
-
"yoruba_gv_ner",
|
|
655
|
-
"yoruba_text_c3",
|
|
656
|
-
"yoruba_wordsim353",
|
|
657
|
-
"youtube_caption_corrections",
|
|
658
|
-
"zest"
|
|
659
|
-
],
|
|
660
|
-
"models": [],
|
|
661
|
-
"spaces": []
|
|
662
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
pyinstaller>=4.7,<5
|
hfutils-0.2.6/requirements.txt
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|