transformers
[model loading] don't `gc.collect()` if only 1 shard is used
#36721
Merged

[model loading] don't `gc.collect()` if only 1 shard is used #36721

gante
gante don't gc collect if 1 shard is used
f8834482
github-actions github-actions marked this pull request as draft 281 days ago
github-actions
gante delete state dict anyways
9dac0a4b
gante gante marked this pull request as ready for review 281 days ago
gante Merge branch 'main' into dont_gc_collect_on_single_shard
5ca357f9
github-actions github-actions requested a review from ArthurZucker ArthurZucker 281 days ago
github-actions github-actions requested a review from Rocketknight1 Rocketknight1 281 days ago
gante gante changed the title [model loading] don't `gc.collect` if 1 shard is used [model loading] don't `gc.collect` if only 1 shard is used 281 days ago
gante gante changed the title [model loading] don't `gc.collect` if only 1 shard is used [model loading] don't `gc.collect()` if only 1 shard is used 281 days ago
gante gante removed review request from Rocketknight1 Rocketknight1 281 days ago
gante gante requested a review from Cyrilvallez Cyrilvallez 281 days ago
Cyrilvallez
Cyrilvallez approved these changes on 2025-03-14
gante gante merged 3bd1a0dd into main 281 days ago
gante gante deleted the dont_gc_collect_on_single_shard branch 281 days ago
HuggingFaceDocBuilderDev

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone