diffusers
[Core] support saving and loading of sharded checkpoints
#7830
Merged

[Core] support saving and loading of sharded checkpoints #7830

sayakpaul merged 63 commits into main from feat-save-sharded-ckpt
sayakpaul
sayakpaul feat: support saving a model in sharded checkpoints.
b566c95b
sayakpaul feat: make loading of sharded checkpoints work.
86059090
sayakpaul add tests
885d5b68
sayakpaul cleanse the loading logic a bit more.
560fe32e
sayakpaul more resilience while loading from the Hub.
fc5d837b
sayakpaul parallelize shard downloads by using snapshot_download()/
0d3b9e12
sayakpaul sayakpaul requested a review from yiyixuxu yiyixuxu 1 year ago
sayakpaul sayakpaul requested a review from SunMarc SunMarc 1 year ago
HuggingFaceDocBuilderDev
sayakpaul default to a shard size.
df8e9454
sayakpaul more fix
6eff632c
sayakpaul Empty-Commit
ed83244b
sayakpaul debug
642ee39a
sayakpaul fix
36de0c48
sayakpaul uality
cc5656ec
sayakpaul more debugging
88987176
sayakpaul fix more
2dfb9a11
sayakpaul Merge branch 'main' into feat-save-sharded-ckpt
179495f0
sayakpaul
sayakpaul commented on 2024-05-01
sayakpaul
sayakpaul commented on 2024-05-01
sayakpaul merge main and fix conflicts.
7e2c09b1
sayakpaul
yiyixuxu yiyixuxu requested a review from BenjaminBossan BenjaminBossan 1 year ago
BenjaminBossan
BenjaminBossan commented on 2024-05-14
SunMarc
SunMarc approved these changes on 2024-05-14
sayakpaul resolve conflicts.
35357016
sayakpaul initial comments from Benjamin
5ae8e464
sayakpaul move certain methods to loading_utils
aefd0db4
sayakpaul add test to check if the correct number of shards are present.
80005be5
sayakpaul add a test to check if loading of sharded checkpoints from the Hub is…
d144526f
sayakpaul sayakpaul requested a review from BenjaminBossan BenjaminBossan 1 year ago
sayakpaul
BenjaminBossan
BenjaminBossan approved these changes on 2024-05-15
sayakpaul clarify the unit when passed as an int.
8e52c6d1
sayakpaul Merge branch 'main' into feat-save-sharded-ckpt
9d2f19a8
sayakpaul Merge branch 'main' into feat-save-sharded-ckpt
a8f5c03f
sayakpaul
sayakpaul Merge branch 'main' into feat-save-sharded-ckpt
c917be25
Wauplin
Wauplin requested changes on 2024-05-24
sayakpaul Merge branch 'main' into feat-save-sharded-ckpt
7cf53404
sayakpaul use hf_hub for sharding.
d6f9b179
sayakpaul remove unnecessary code
1ae5987a
sayakpaul sayakpaul requested a review from Wauplin Wauplin 1 year ago
sayakpaul
sayakpaul
sayakpaul Merge branch 'main' into feat-save-sharded-ckpt
fda5d995
SunMarc
SunMarc approved these changes on 2024-05-27
sayakpaul remove unnecessary function
2ec27d50
sayakpaul Merge branch 'main' into feat-save-sharded-ckpt
c98d7790
sayakpaul
Wauplin
Wauplin commented on 2024-05-28
sayakpaul lucain's comments.
ed289c9c
sayakpaul
sayakpaul sayakpaul requested a review from Wauplin Wauplin 1 year ago
sayakpaul fixes
9acbbeaa
Wauplin
Wauplin commented on 2024-05-28
Wauplin
sayakpaul
Wauplin
sayakpaul address high-level comments.
7326e25d
sayakpaul fix test
0706cae4
sayakpaul
sayakpaul sayakpaul requested a review from Wauplin Wauplin 1 year ago
sayakpaul
sayakpaul commented on 2024-05-28
Wauplin
sayakpaul subfolder shenanigans./
711fd505
sayakpaul
sayakpaul
sayakpaul commented on 2024-05-28
Wauplin
Wauplin commented on 2024-05-28
sayakpaul Update src/diffusers/utils/hub_utils.py
32419acc
Wauplin
Wauplin commented on 2024-05-28
sayakpaul Merge branch 'main' into feat-save-sharded-ckpt
b03e13c1
sayakpaul Apply suggestions from code review
cbfd70f9
sayakpaul remove _huggingface_hub_version as not needed.
868cfb62
sayakpaul address more feedback.
13fd0635
sayakpaul Merge branch 'main' into feat-save-sharded-ckpt
0d32c45f
sayakpaul sayakpaul requested a review from Wauplin Wauplin 1 year ago
sayakpaul add a test for local_files_only=True/
bad44c0f
sayakpaul need hf hub to be at least 0.23.2
c7796188
sayakpaul style
302d59d5
sayakpaul Merge branch 'main' into feat-save-sharded-ckpt
ab3a5aab
sayakpaul Merge branch 'main' into feat-save-sharded-ckpt
7f887420
Wauplin
Wauplin approved these changes on 2024-05-29
sayakpaul final comment.
a7fc2aed
sayakpaul
yiyixuxu
yiyixuxu commented on 2024-05-31
sayakpaul Merge branch 'main' into feat-save-sharded-ckpt
f74fc674
sayakpaul clean up subfolder.
38749fc4
sayakpaul deal with suffixes in code.
edbd8de5
sayakpaul _add_variant default.
2ecd4dad
sayakpaul use weights_name_pattern
d51d0b90
sayakpaul remove add_suffix_keyword
c2a71a05
sayakpaul clean up downloading of sharded ckpts.
a70e9271
sayakpaul don't return something special when using index.json
65da7dc9
sayakpaul fix more
5599388f
sayakpaul don't use bare except
7cdf9589
sayakpaul remove comments and catch the errors better
16dcdf88
sayakpaul
sayakpaul sayakpaul requested a review from yiyixuxu yiyixuxu 1 year ago
sayakpaul fix a couple of things when using is_file()
737e6272
sayakpaul resolve conflicts
491e1e20
yiyixuxu
yiyixuxu commented on 2024-06-07
yiyixuxu
yiyixuxu approved these changes on 2024-06-07
sayakpaul empty
2a185181
sayakpaul Merge branch 'main' into feat-save-sharded-ckpt
51906c6f
sayakpaul sayakpaul merged 7d887118 into main 1 year ago
sayakpaul sayakpaul deleted the feat-save-sharded-ckpt branch 1 year ago
Wauplin

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone