huggingface_hub
New git-aware cache file layout
#801
Merged

New git-aware cache file layout #801

LysandreJik merged 47 commits into main from cache-file-layout
julien-c
julien-c julien-c changed the title [PoC] Prototype for a new cache file layout [PoC] Prototype for a new git-aware cache file layout 4 years ago
julien-c
julien-c commented on 2022-03-28
LysandreJik LysandreJik assigned LysandreJik LysandreJik 4 years ago
julien-c
Base automatically changed from hf-api-adds to main 4 years ago
julien-c julien-c force pushed from 7fe19ec6 to 1087e54f 4 years ago
julien-c
julien-c julien-c changed the title [PoC] Prototype for a new git-aware cache file layout New git-aware cache file layout 4 years ago
HuggingFaceDocBuilderDev
julien-c
patrickvonplaten
patrickvonplaten
patrickvonplaten commented on 2022-05-05
patrickvonplaten
patrickvonplaten commented on 2022-05-05
patrickvonplaten
patrickvonplaten commented on 2022-05-05
patrickvonplaten
patrickvonplaten commented on 2022-05-05
patrickvonplaten
patrickvonplaten commented on 2022-05-05
patrickvonplaten
patrickvonplaten commented on 2022-05-05
patrickvonplaten
patrickvonplaten commented on 2022-05-05
patrickvonplaten
patrickvonplaten approved these changes on 2022-05-05
sgugger
sgugger approved these changes on 2022-05-05
LysandreJik
LysandreJik commented on 2022-03-31
julien-c
julien-c
julien-c
julien-c commented on 2022-05-09
julien-c
julien-c commented on 2022-05-09
LysandreJik LysandreJik added this to the v0.7 milestone 4 years ago
LysandreJik
julien-c
julien-c commented on 2022-05-19
thomwolf
julien-c
julien-c
julien-c
thomwolf
julien-c
julien-c
julien-c commented on 2022-05-24
julien-c light typing
6fa66c49
julien-c remove this seminal comment
29a8833a
julien-c I don't understand why we don't early return here
da920225
julien-c following last commit, unnest this
e4d36861
julien-c [BIG] This should work for all repo_types not just models!
8e4ccf45
julien-c one more
5ab8b742
julien-c forgot a repo_type and reorder code
b8376f84
julien-c also rename this cache folder
4cb1d631
julien-c Use `hf_hub_download`, will be simpler later
f7cbe183
julien-c in this new version, `force_filename` does not make sense anymore
ea94d43d
julien-c Just inline everything inside `hf_hub_download` for now
7b92719a
julien-c Big prototype! it works! :tada:
d29c90ef
julien-c wip wip
02480fd0
julien-c do not touch `cached_download`
f81885d5
julien-c Prompt user to upgrade to `hf_hub_download`
7fbd7a45
julien-c Add a `legacy_cache_layout=True` to preserve old behavior, just in case
d1e47a10
julien-c Create `relative symlinks` + add some doc
fc930b62
julien-c Fix behavior when no network
f5420ed9
julien-c This test now is legacy
9f1e0f6f
julien-c Fix-ish conflict-ish
973913e0
julien-c minimize diff
e9fb4d40
julien-c refactor `repo_folder_name`
adaca46d
julien-c windows support + shortcut if user passes a commit hash
fff7e9f7
julien-c Rewrite `snapshot_download` and make it more robust
06c0ca15
julien-c OOops
e3e2485b
julien-c Create example-transformers-tf.py
70516833
julien-c Fix + add a way more complete example (running on Ubuntu)
84ff68df
julien-c Apply suggestions from code review
11974d48
julien-c Update src/huggingface_hub/file_download.py
73cdb467
julien-c Update src/huggingface_hub/file_download.py
9f8b8769
julien-c Only allow full revision hashes otherwise the `revision != commit_has…
2c5c94b2
julien-c add a little bit more doc + consistency
35fff445
LysandreJik Update src/huggingface_hub/snapshot_download.py
383022fd
LysandreJik Update snapshot download
7112146b
LysandreJik First pass on tests
8f99d226
LysandreJik Wrap up tests
01e3a61d
julien-c :wolf: Fix for bug reported by @thomwolf
2d54dd17
LysandreJik Special case for Windows
8f71ad66
LysandreJik Address comments and docs
442b5b17
LysandreJik LysandreJik force pushed from 3042731a to 442b5b17 4 years ago
LysandreJik LysandreJik marked this pull request as ready for review 4 years ago
LysandreJik
LysandreJik commented on 2022-05-24
julien-c
julien-c commented on 2022-05-25
LysandreJik Clean up with ternary cc @julien-c
e1ff4eb9
LysandreJik
LysandreJik commented on 2022-05-25
LysandreJik Add argument to `cached_download`
e69ef4fd
LysandreJik Opt-in for filename_to-url
0d06b557
LysandreJik Opt-in for filename_to-url
d6bb92e1
LysandreJik Pass the flag
42596427
sgugger
sgugger approved these changes on 2022-05-25
LysandreJik Update docs/source/package_reference/file_download.mdx
a8348ab6
LysandreJik Update src/huggingface_hub/file_download.py
8c599ee1
LysandreJik Address review comments
3dfc00c6
LysandreJik
LysandreJik LysandreJik merged f124f8be into main 4 years ago
LysandreJik LysandreJik deleted the cache-file-layout branch 4 years ago

Login to write a write a comment.

Login via GitHub

Assignees
Labels
Milestone