-
Notifications
You must be signed in to change notification settings - Fork 554
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CLI to upload arbitrary huge folder (#2254)
* still an early draft * this is better * fix * revampt/refactor download process * resume download by default + do not upload .huggingface folder * compute sha256 if necessary * fix hash * add tests + fix some stuff * fix snapshot download tests * fix test * lots of docs * add secu * as constant * dix * fix tests * remove unused code * don't use jsons * style * Apply suggestions from code review Co-authored-by: Lysandre Debut <[email protected]> * Apply suggestions from code review Co-authored-by: Lysandre Debut <[email protected]> * Warn more about resume_download * fix test * Add tests specific to .huggingface folder * remove advice to use hf_transfer when downloading from cli * fix torhc test * more test fix * feedback * First draft for large upload CLI * Fixes + CLI * verbose by default * ask for report * line * suggested changes * more robust * Apply suggestions from code review Co-authored-by: Pedro Cuenca <[email protected]> * comment * commen * robust tests * fix CI * ez * rules update * more ribust? * allow for 1s diff * don't raise on unlink * style * robustenss * tqdm while recovering * make sure upload paths are correct on windows * test get_local_upload_paths * only 1 preupload LFS at a time if hf_transfer enabled * upload one at a time if hf_transfer * Add waiting workers in report * better reporting * raise on KeyboardInterrupt + can disable bars * fix type annotation on Python3.8 * make repo_type required * dcostring * style * fix circular import * docs * docstring * init * guide * dedup * instructions * add test * styl * tips * Apply suggestions from code review Co-authored-by: Omar Sanseviero <[email protected]> * typo * remove comment * comments * move determine_task to its own method * rename to upload_large_folder * fix md * update * dont wait on exit * Fix typo in docs * Apply suggestions from code review Co-authored-by: Omar Sanseviero <[email protected]> * add PR tips * add comment * add comment about --no-bars --------- Co-authored-by: Lysandre Debut <[email protected]> Co-authored-by: Pedro Cuenca <[email protected]> Co-authored-by: Omar Sanseviero <[email protected]>
- Loading branch information
1 parent
893e889
commit ecbbeb3
Showing
11 changed files
with
1,172 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -138,3 +138,5 @@ dmypy.json | |
|
||
# Spell checker config | ||
cspell.json | ||
|
||
tmp* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.